148 Commits

Author SHA1 Message Date
8b5a249450 Make URL building more resilient and add tests. (#38)
Some checks failed
Run unit tests / run-unit-tests (push) Has been cancelled
Since the base URL and base path are user inputs, I'd like tkr to be resilient to any combination of leading and trailing slashes so people don't have to worry about that. This adds some helper functions to normalize URLs and adds tests to confirm that all combinations are handled correctly.

Reviewed-on: https://gitea.subcultureofone.org/greg/tkr/pulls/38
Co-authored-by: Greg Sarjeant <greg@subcultureofone.org>
Co-committed-by: Greg Sarjeant <greg@subcultureofone.org>
2025-07-31 02:39:09 +00:00
a9f610fc60 Make home page similar to feeds. Simplify tick retrieval. (#37)
Reviewed-on: https://gitea.subcultureofone.org/greg/tkr/pulls/37
Co-authored-by: Greg Sarjeant <greg@subcultureofone.org>
Co-committed-by: Greg Sarjeant <greg@subcultureofone.org>
2025-07-31 01:30:25 +00:00
dc63d70944 Refactor feeds to be more testable and to remove templates. (#36)
Some checks are pending
Run unit tests / run-unit-tests (push) Waiting to run
Move feed generation into generator classes and out of templates. Remove feed templates, since they don't have any UI elements.

Reviewed-on: https://gitea.subcultureofone.org/greg/tkr/pulls/36
Co-authored-by: Greg Sarjeant <greg@subcultureofone.org>
Co-committed-by: Greg Sarjeant <greg@subcultureofone.org>
2025-07-31 00:05:46 +00:00
bb58e09cbf add-runtime-logging (#35)
Some checks failed
Run unit tests / run-unit-tests (push) Waiting to run
Prerequisites Testing / test-php-version-requirements (7.4) (push) Has been cancelled
Prerequisites Testing / test-php-version-requirements (8.1) (push) Has been cancelled
Prerequisites Testing / test-php-version-requirements (8.2) (push) Has been cancelled
Prerequisites Testing / test-php-version-requirements (8.3) (push) Has been cancelled
Prerequisites Testing / test-extension-progression (alpine:latest, 8.2) (push) Has been cancelled
Prerequisites Testing / test-extension-progression (alpine:latest, 8.3) (push) Has been cancelled
Prerequisites Testing / test-extension-progression (debian:bookworm, 8.2) (push) Has been cancelled
Prerequisites Testing / test-extension-progression (debian:bookworm, 8.3) (push) Has been cancelled
Prerequisites Testing / test-extension-progression (fedora:39, 8.2) (push) Has been cancelled
Prerequisites Testing / test-extension-progression (fedora:39, 8.3) (push) Has been cancelled
Prerequisites Testing / test-permission-scenarios (push) Has been cancelled
Set up logging framework and add runtime logging to foundational operations (database, sessions, auth).

Reviewed-on: https://gitea.subcultureofone.org/greg/tkr/pulls/35
Co-authored-by: Greg Sarjeant <greg@subcultureofone.org>
Co-committed-by: Greg Sarjeant <greg@subcultureofone.org>
2025-07-29 22:45:17 +00:00
659808f724 Add prereq script to package build. (#32)
Some checks failed
Prerequisites Testing / test-php-version-requirements (7.4) (push) Has been cancelled
Prerequisites Testing / test-php-version-requirements (8.1) (push) Has been cancelled
Prerequisites Testing / test-php-version-requirements (8.2) (push) Has been cancelled
Prerequisites Testing / test-php-version-requirements (8.3) (push) Has been cancelled
Prerequisites Testing / test-extension-progression (alpine:latest, 8.2) (push) Has been cancelled
Prerequisites Testing / test-extension-progression (alpine:latest, 8.3) (push) Has been cancelled
Prerequisites Testing / test-extension-progression (debian:bookworm, 8.2) (push) Has been cancelled
Prerequisites Testing / test-extension-progression (debian:bookworm, 8.3) (push) Has been cancelled
Prerequisites Testing / test-extension-progression (fedora:39, 8.2) (push) Has been cancelled
Prerequisites Testing / test-extension-progression (fedora:39, 8.3) (push) Has been cancelled
Prerequisites Testing / test-permission-scenarios (push) Has been cancelled
Run unit tests / run-unit-tests (push) Has been cancelled
Reviewed-on: https://gitea.subcultureofone.org/greg/tkr/pulls/32
Co-authored-by: Greg Sarjeant <greg@subcultureofone.org>
Co-committed-by: Greg Sarjeant <greg@subcultureofone.org>
2025-07-28 01:45:39 +00:00
681f64c527 Add prereq check to README. Remove installation by cloning. Fix CI typos. (#31)
Reviewed-on: https://gitea.subcultureofone.org/greg/tkr/pulls/31
Co-authored-by: Greg Sarjeant <greg@subcultureofone.org>
Co-committed-by: Greg Sarjeant <greg@subcultureofone.org>
2025-07-28 01:04:46 +00:00
dc44d51479 Add posix_getuid detection to the right place.
Some checks are pending
Prerequisites Testing / test-php-version-requirements (7.4) (push) Waiting to run
Prerequisites Testing / test-php-version-requirements (8.1) (push) Waiting to run
Prerequisites Testing / test-php-version-requirements (8.2) (push) Waiting to run
Prerequisites Testing / test-php-version-requirements (8.3) (push) Waiting to run
Prerequisites Testing / test-extension-progression (alpine:latest, 8.2) (push) Waiting to run
Prerequisites Testing / test-extension-progression (alpine:latest, 8.3) (push) Waiting to run
Prerequisites Testing / test-extension-progression (debian:bookworm, 8.2) (push) Waiting to run
Prerequisites Testing / test-extension-progression (debian:bookworm, 8.3) (push) Waiting to run
Prerequisites Testing / test-extension-progression (fedora:39, 8.2) (push) Waiting to run
Prerequisites Testing / test-extension-progression (fedora:39, 8.3) (push) Waiting to run
Prerequisites Testing / test-permission-scenarios (push) Waiting to run
Run unit tests / run-unit-tests (push) Waiting to run
2025-07-27 15:33:15 -04:00
3c0f2a2ca5 Skip root test if POSIX PHP extension not installed (e.g. alpine) 2025-07-27 15:14:34 -04:00
64e2ff56da add instructions for setting permissions when CLI is run as root. 2025-07-27 14:50:42 -04:00
fb0b58dcbf Don't recomment curl php extension. 2025-07-27 14:20:32 -04:00
53ed66dce9 Name .yaml files consistently. 2025-07-27 12:48:49 -04:00
b53d58df8c Run prereq check on push to catch PR merge. 2025-07-27 12:45:18 -04:00
6337fa2dfb Add Prerequisite class and cli script to confirm prereqs. (#30)
Add a Prerequisite class to manage all initilaization prerequisites. Invoke before each request. Provide a CLI script to allow checking Prereqs from command line. Add CI  workflow to confirm prereq validation behavior.

Reviewed-on: https://gitea.subcultureofone.org/greg/tkr/pulls/30
Co-authored-by: Greg Sarjeant <greg@subcultureofone.org>
Co-committed-by: Greg Sarjeant <greg@subcultureofone.org>
2025-07-27 16:43:09 +00:00
4255f46fc7 Fix database migrations for first-time setup. (#29)
Some checks failed
Run unit tests / run-unit-tests (push) Has been cancelled
The database initialization had a number of bugs for the first-time setup. This PR fixes them.

Reviewed-on: https://gitea.subcultureofone.org/greg/tkr/pulls/29
Co-authored-by: Greg Sarjeant <greg@subcultureofone.org>
Co-committed-by: Greg Sarjeant <greg@subcultureofone.org>
2025-07-26 15:46:06 +00:00
edd7f6effe Closes #24 (#27)
Some checks failed
Run unit tests / run-unit-tests (push) Has been cancelled
Build and publish artifacts / build-and-publish (push) Has been cancelled
Remove all references to `storage/ticks`, including code that migrates those files.

Reviewed-on: https://gitea.subcultureofone.org/greg/tkr/pulls/27
Co-authored-by: Greg Sarjeant <greg@subcultureofone.org>
Co-committed-by: Greg Sarjeant <greg@subcultureofone.org>
v0.7.4
2025-07-24 19:53:12 +00:00
3867bc36cf Closes #25 (#26)
Some checks failed
Build and publish artifacts / build-and-publish (push) Has been cancelled
Run unit tests / run-unit-tests (push) Has been cancelled
Co-authored-by: Greg Sarjeant <1686767+gsarjeant@users.noreply.github.com>
Reviewed-on: https://gitea.subcultureofone.org/greg/tkr/pulls/26
v0.7.3
2025-07-24 18:49:32 +00:00
b40a4dce18 Remove no-longer-used settings (#23)
Some checks are pending
Run unit tests / run-unit-tests (push) Waiting to run
Simplifying the app.

The "about" profile field is somewhat redundant. There's already a site title and description.
I'm removing mood emoji from the ticks and just using the user-level mood. That toggle is no longer necessary.

Co-authored-by: Greg Sarjeant <1686767+gsarjeant@users.noreply.github.com>
Reviewed-on: https://gitea.subcultureofone.org/greg/tkr/pulls/23
2025-07-24 13:28:47 +00:00
Greg Sarjeant
c7acca6bb3 Fix validation error and bootstrap order of operations issue.
Some checks are pending
Run unit tests / run-unit-tests (push) Waiting to run
2025-07-23 23:27:02 -04:00
Greg Sarjeant
f5123e5044 Remove backup database.
Some checks are pending
Run unit tests / run-unit-tests (push) Waiting to run
2025-07-23 22:13:46 -04:00
9338332536 refactor-storage (#19)
Move ticks from filesystem into database.

I'm going to preserve the filesystem and just delete it manually. I'll add a login warning, but I'm pretty sure I'm the only person who'll ever be affected by this.

Co-authored-by: Greg Sarjeant <1686767+gsarjeant@users.noreply.github.com>
Reviewed-on: https://gitea.subcultureofone.org/greg/tkr/pulls/19
2025-07-24 02:12:31 +00:00
Greg Sarjeant
7b7f8d205d Convert test to use DataProvider. Add cleanup TODO to relativeTime 2025-07-07 08:48:29 -04:00
Greg Sarjeant
81123945f4 remove unused fuction 2025-07-04 21:42:35 -04:00
Greg Sarjeant
075155adf5 job name underscores to hyphens 2025-07-04 10:49:52 -04:00
Greg Sarjeant
3914d50dbc Fix build and publish workflow name. Add status badge for tests.
Some checks failed
Build and publish artifacts / build_and_publish (push) Has been cancelled
Run unit tests / run-unit-tests (push) Has been cancelled
v0.7.2
2025-07-02 21:30:18 -04:00
Greg Sarjeant
77dfefa794 minor indentation tweak 2025-07-02 21:04:47 -04:00
Greg Sarjeant
56f3af14a8 Fix tar command
Some checks failed
Run unit tests / build_and_publish (push) Has been cancelled
Run unit tests / run-unit-tests (push) Has been cancelled
v0.7.1
2025-07-02 20:44:32 -04:00
Greg Sarjeant
cfb8bd8f2e create tkr parent directory in tar archive 2025-07-02 20:42:38 -04:00
Greg Sarjeant
db8f3fa93e Fix curl command 2025-07-02 19:57:10 -04:00
Greg Sarjeant
b46d79653d Try adding step to push to registry 2025-07-02 19:50:33 -04:00
Greg Sarjeant
29416efdb0 Run tests on PR, add initial build action 2025-07-02 08:22:38 -04:00
Greg Sarjeant
45dd85ca8e contig -> config 2025-07-01 19:17:39 -04:00
Greg Sarjeant
4e346e4fa0 Attempt to actually run unit tests. 2025-07-01 19:16:06 -04:00
Greg Sarjeant
f4fd6a946b Add node to container image and bump version 2025-07-01 18:21:42 -04:00
Greg Sarjeant
7350cc29f9 Try checkoing out code. 2025-07-01 18:16:30 -04:00
Greg Sarjeant
e3dc9e8953 Fix token variable name 2025-07-01 17:55:30 -04:00
Greg Sarjeant
7e3f024413 use existing (wrong) label to see if action starts 2025-07-01 17:51:42 -04:00
Greg Sarjeant
9fef2b5121 First attempt at using custom container with gitea actions 2025-07-01 17:48:32 -04:00
Greg Sarjeant
fc841ac54b Improve test name 2025-07-01 08:51:38 -04:00
Greg Sarjeant
abbeca3e06 Add first unit test. 2025-06-30 20:27:55 -04:00
Greg Sarjeant
ef35c5aeba Just fail hard if autoloader can't find class. 2025-06-30 08:49:56 -04:00
Greg Sarjeant
5998e7f7d3 simplify bootstrap. move validation to classes. 2025-06-30 08:43:45 -04:00
Greg Sarjeant
cdc1153af4 Simplify autoloader 2025-06-28 23:05:14 -04:00
Greg Sarjeant
6c64b914fc Convert to autoloader. Restore unified CSS. 2025-06-28 12:03:04 -04:00
Greg Sarjeant
b26c13e8ba Trial gitea action 2025-06-25 20:04:11 -04:00
Greg Sarjeant
37c5de51a7 Split admin CSS from main page CSS. 2025-06-24 19:58:48 -04:00
Greg Sarjeant
301bf6eafc Bump version in README 2025-06-23 20:00:10 -04:00
Greg Sarjeant
8b269a22e3 Update README for 0.7.0 release 2025-06-23 18:29:56 -04:00
Greg Sarjeant
b5fdbe6eef items->ticks 2025-06-23 18:12:43 -04:00
Greg Sarjeant
672d2d0eae Move migrations to config 2025-06-23 17:13:17 -04:00
Greg Sarjeant
0e34bd3119 Fix invalid HTML on CSS page. Fix ConfigModel. 2025-06-23 14:32:41 -04:00