Commit Graph
27 Commits
Author SHA1 Message Date
James Cox 874b013f75 refactor(frontend): rename booklore-ui to frontend
- Frontend path:
  - rename the tracked Angular app tree from `booklore-ui/` to `frontend/`
  - preserve file contents during the move so this commit stays focused on the path change itself
- Frontend docs:
  - update the moved frontend README and contribution guide where they refer to the renamed folder
  - keep those edits limited to path references introduced by the directory rename
2026-04-22 17:26:39 -04:00
James Cox c99aa87877 docs(plan): add frontend grimmory migration plan
- Planning:
  - add the staged frontend migration plan under docs/plans
  - record the intended rename, Yarn 4 adoption, lint rollout, and PR replay sequence
- Cleanup ledger:
  - capture the remaining frontend Booklore-era aliases that should survive the cutover temporarily
  - document explicit triggers for removing each compatibility shim after the dust settles
2026-04-22 17:26:38 -04:00
James Cox 3f9d3e0d8a fix(ci): reduce workflow cache churn
- GitHub Actions caching:
  - replace implicit setup-java cache writes with explicit Gradle cache restore/save steps
  - only persist the shared Gradle cache from long-lived develop and release workflows
  - remove the unnecessary QEMU setup from the single-arch smoke build
  - disable QEMU image caching in multi-arch publish workflows to stop repeated binfmt cache entries
- CodeQL workflow:
  - replace the generated advanced template with a pinned repo-owned CodeQL workflow
  - add per-ref concurrency to cancel superseded CodeQL runs before they create more caches
  - restrict dependency caching to Java, using restore-only on pull requests and full caching on long-lived runs
  - disable trap caching and turn off PR overlay database caching to avoid repetitive low-value CodeQL caches
- Validation:
  - validated the edited workflow YAML with yq
  - did not execute the workflows locally
2026-04-22 17:26:38 -04:00
James Cox caa37cd64a docs(agents): add repository agent workflow guide
- Agent workflow:
  - add a root `AGENTS.md` focused on agent execution rather than general contributor onboarding
  - document the expected command surface, branch target, and staged verification order
- Repo boundaries:
  - map the backend and frontend layout with the key source, resource, test, i18n, and asset paths
  - call out ownership boundaries for deploy, packaging, tools, docs, and shared assets
- Project rules:
  - capture backend and frontend conventions that agents should follow before editing or validating work
  - include repo-specific PR expectations such as linked issues, test output, and UI evidence
2026-04-22 17:26:37 -04:00
James Cox e4fc279528 chore(docs): update Discord invite links
- Community links:
  - replace the old Discord invite code with the new `9YJ7HB4n8T` invite in the repository README
  - update the contributor guide to point at the same server
  - align the issue-template support link with the same canonical invite

- Consistency:
  - keep the public docs and issue intake flow on a single Discord destination so users and contributors land in the right community space
2026-04-22 17:26:36 -04:00
James Cox dee8cd9659 chore(docs): align Discord links with the README
- Community links:
  - update the issue-template support link to use the canonical Grimmory Discord invite from `README.md`
  - update the contributing guide to point at the same Discord server

- Consistency:
  - remove the stale invite URL so issue intake, contributor docs, and the repository landing page all reference the same community link
2026-04-22 17:26:36 -04:00
James Cox 511f84cc48 feat(issues): add typed Grimmory issue templates
- Issue intake:
  - rebrand the bug and feature request forms from Booklore to Grimmory
  - remove the old `[Bug]` and `[Feature]` title prefixes so issue titles can stay natural
  - default issue intake to `needs-triage` while relying on GitHub Issue Types for the primary classification

- New templates:
  - add a dedicated enhancement template for smaller quality-of-life and UX improvements
  - add a documentation template for doc fixes, missing guides, and confusing setup flows
  - add a performance template for runtime, UI, build, and operational performance problems

- Type alignment:
  - map the templates onto the repo's issue-type taxonomy with `Bug`, `Feature`, `Enhancement`, `Documentation`, and `Performance`
  - keep the larger feature template distinct from the smaller enhancement template so incoming requests are easier to triage
2026-04-22 17:26:36 -04:00
James Cox 69d50d4fb5 feat(devex): add a unified just command surface
- Command surface:
  - add a root `Justfile` with namespaced `api`, `ui`, and `release` modules so humans and agents can use the same entrypoints from the repo root
  - add project-local Justfiles for `booklore-api`, `booklore-ui`, and `tools/release` so each area remains self-contained and can still be driven from inside its own directory
  - standardize local developer workflows around `just check`, `just test`, `just api run`, `just ui dev`, `just db-up`, and `just image-build`

- Workflow integration:
  - update the reusable test suite workflow to install `just` and run backend and frontend CI steps through the Justfiles instead of hardcoded shell commands
  - update the semantic-release workflows to install `just` and invoke release tooling via `just release install`, `just release preview`, and `just release run`
  - keep the Docker image publication workflows on the native Docker actions while moving the project-command logic into the canonical command surface

- Documentation:
  - split backend and frontend implementation guidance into `booklore-api/README.md`, `booklore-api/CONTRIBUTING.md`, `booklore-ui/README.md`, and `booklore-ui/CONTRIBUTING.md`
  - simplify the top-level `README.md` and `CONTRIBUTING.md` so they stay focused on overview, policy, and navigation while pointing to component-specific guides for deeper detail
  - align contributor-facing examples on the `just` interface instead of mixing ad hoc Gradle, npm, Docker, and Compose commands

- Developer environment:
  - add `mise.toml` to pin the expected Java and Node toolchain versions for local work
  - switch the development Compose defaults from the old Booklore database values to Grimmory-oriented defaults
  - keep the command layout ready for a future API/UI split without forcing that packaging change yet
2026-04-22 17:26:35 -04:00
James Cox 930e526228 feat(release): document develop-based stable release previews
- Release preview workflow:
  - document that the dry-run preview evaluates `develop` or another selected ref as a candidate promotion onto `main`
  - explain that the preview now reports the included `main..candidate` commit range alongside the computed semantic version
- Stable publish flow:
  - update the maintainer guide to reflect the current release-main to publish-release handoff instead of the older tag-trigger description
  - remove stale bootstrap-baseline guidance that no longer matches the live stable release history
2026-03-20 21:12:36 -05:00
James Cox afa5b818eb fix(ci): repair release preview and test result publishing
- Release preview:
  - preview stable releases by comparing a selected ref against `main` instead of rejecting refs that are ahead of `main`
  - default the preview workflow to `develop` and summarize the candidate commit range in the workflow summary
- Test result publishing:
  - download only the test report artifacts and event payload needed for PR comments/checks
  - avoid pulling the Buildx `.dockerbuild` artifact that was causing repeated workflow_run failures
- Actions runtime:
  - move `actions/download-artifact` to a Node 24-compatible release line to eliminate the Node 20 deprecation warning in the publisher job
2026-03-20 21:12:08 -05:00
James Cox 0416d48a6c style(ui): simplify the topbar logo branding
- topbar branding:
  - replace the split two-tone `Grimm` and `ory` logo text with a single `Grimmory` label
  - comment out the topbar SVG icon markup without removing it entirely from the template
- styling:
  - remove the now-unused split logo styles and keep a single text style for the app name
2026-03-20 20:48:08 -05:00
James Cox 98c9b1ae65 chore(api): remove the custom startup banner
- startup output:
  - remove the custom Spring Boot `banner.txt` resource that printed the Booklore ASCII art on application startup
  - let the API fall back to the default Spring Boot banner behavior instead of shipping fork-era branding in the logs
- cleanup:
  - drop the banner resource without changing runtime configuration or application logic
2026-03-20 20:23:20 -05:00
James Cox 55c0ac0899 chore(funding): point support links at opencollective
- GitHub funding:
  - remove the legacy BookLore Open Collective handle and Ko-fi entry
  - leave GitHub Sponsors unset so the repo does not advertise multiple support channels
  - set the sole project funding destination to https://opencollective.com/grimmory
2026-03-20 19:58:03 -05:00
James Cox fea1ec6930 fix(ui): repair frontend compile after rebrand
- User payload serialization:
  - switch the Grimmory and Booklore compatibility shim to bracket access so Angular's strict index-signature checks pass
  - relax the generic payload helper to support typed request objects like user updates instead of only raw record shapes
- Reset progress typing:
  - define `ResetProgressType` as the payload value union so the Grimmory alias can safely emit the legacy `BOOKLORE` backend value
  - send the reset-progress type directly instead of re-indexing the constant map with a value-type key
- Validation:
  - fix the TypeScript compiler errors blocking the frontend test job
  - pass `tsc -p tsconfig.app.json --noEmit`
2026-03-20 19:58:03 -05:00
James Cox ecf388f7a2 refactor(build): rename frontend dist output to grimmory
- Frontend build output:
  - change the Angular application output path from `dist/booklore` to `dist/grimmory`
  - keep the workspace folder layout unchanged while aligning the emitted artifact name with Grimmory

- Packaging pipeline:
  - update the Docker frontend copy step to consume `dist/grimmory/browser`
  - update the backend Gradle default frontend dist path to the same location so local packaging and container builds stay in sync
2026-03-20 19:58:03 -05:00
James Cox d786dd8ccb refactor(ui): rebrand frontend surfaces to grimmory
- Frontend branding:
  - rename visible Booklore branding in the app shell, document title, page titles, manifest metadata, package metadata, and frontend README
  - update first-party documentation links to the Grimmory docs site
  - rename the Angular workspace project id to `grimmory` while keeping the current output path contract unchanged for now

- Compatibility shims:
  - make Grimmory-first UI state and permission names coexist with the legacy Booklore API payload names
  - add explicit `TODO(grimmory-cleanup)` markers on the temporary language-storage, KOReader, permission, and reset-progress aliases
  - keep legacy endpoint and payload fallbacks in place where the backend still speaks Booklore

- Reader and settings cleanup:
  - rename KOReader toggle state and bulk-reset permission handling in the UI to Grimmory-first identifiers
  - update progress labels and tooltips so the frontend no longer displays Booklore to end users
2026-03-20 19:58:03 -05:00
James Cox eb94afa7ad refactor(i18n): rename booklore translation keys to grimmory
- Frontend translations:
  - rename the remaining `booklore`-named translation keys across the locale JSON files to `grimmory`
  - keep the translated values intact while aligning the key namespace with the Grimmory branding pass

- Angular lookups:
  - update the affected Transloco lookups in book menus, metadata views, user-management permissions, and KOReader settings
  - preserve existing compatibility-oriented API and state names that are not translation identifiers

- Notes:
  - this commit also normalizes JSON formatting across the touched locale files because the key rename was applied structurally
  - the resulting diff is much noisier than the logical change, but the intended behavior change is the translation-key rename itself
2026-03-20 19:58:03 -05:00
James Cox 37ca101dd4 fix(ci): correct artifact download action pin
- replace the invalid actions/download-artifact SHA in the workflow_run test-results publisher\n- restore the publisher workflow so it can download CI artifacts and post PR test results\n- keep the new workflow_run-based permissions model intact while fixing the setup-time action resolution failure
2026-03-20 17:20:18 -05:00
James Cox 11a76bffe1 fix(ci): publish PR test results from workflow_run
- stop publishing unit test results directly from the pull_request test jobs\n- upload the GitHub event payload from CI so a follow-up workflow can reuse the original PR context\n- add a workflow_run publisher that downloads backend/frontend test artifacts and posts the check runs and PR comments with the permissions Dependabot PRs require\n- keep the reusable test suite focused on executing tests and producing artifacts without failing on comment permissions
2026-03-20 17:20:18 -05:00
James Cox 03f4a8e22a fix(release): publish stable images via reusable workflow
- Stable release orchestration:
  - stop relying on a bot-created tag push to trigger stable image publication
  - capture the semantic-release result directly in the main release workflow
  - invoke the stable image publisher as a reusable workflow with the computed tag and release commit SHA

- Stable publish workflow:
  - convert the publish workflow from a `push.tags` trigger to `workflow_call`
  - keep a `workflow_dispatch` entry point so existing tags can be published manually for recovery
  - remove the obsolete `v2.2.1` bootstrap skip and use the release bot token for release finalization when available

- Branch hygiene:
  - automatically cherry-pick the semantic-release changelog commit from `main` back onto `develop`
  - avoid merge commits while keeping `CHANGELOG.md` aligned across the release and integration branches
  - skip the backport if the target release commit is already present on `develop`

- Validation:
  - parse both workflow files successfully with `yq`
  - pass `git diff --check`
2026-03-20 16:23:09 -05:00
James Cox 2294a388cb docs: Adds a note for moving away from packaging everything in a jar 2026-03-20 15:51:42 -05:00
James Cox dfd7a19f5c fix(build): make frontend resources optional in test runs
- Gradle packaging:
  - stop treating the default frontend dist path as a required input during `processResources`
  - include frontend assets only when the resolved dist directory actually exists
  - keep support for the explicit `-PfrontendDistDir=...` path used by the Docker build

- CI stability:
  - restore backend-only Gradle runs in the reusable test workflow without requiring an Angular build first
  - prevent `processResources` from failing before backend tests execute when `booklore-ui/dist/...` is absent

- Validation:
  - run `processResources` successfully with no frontend dist present
  - run `processResources` with a temporary `frontendDistDir` and confirm `static/index.html` is packaged
  - pass `git diff --check`
2026-03-20 15:51:42 -05:00
James Cox c4b021f3b9 fix(build): package frontend assets through Gradle resources
- Backend packaging:
  - make `processResources` include the built frontend dist as an explicit `static/` resource input instead of relying on a manual copy into Gradle's output directory
  - keep `bootJar` as the source of truth for bundling `static/index.html` into the application jar

- Docker build:
  - pass the frontend dist location into Gradle with `-PfrontendDistDir=/tmp/frontend-dist`
  - remove the ad hoc copy into `build/resources/main/static` before `bootJar`

- Validation:
  - verify `processResources` emits `build/resources/main/static/index.html` when given a frontend dist directory
  - keep `git diff --check` clean for the touched packaging files
2026-03-20 15:51:42 -05:00
James Cox 2b2e08b193 docs: Add a note about how to make a release 2026-03-20 15:51:42 -05:00
James Cox d148a097c6 perf(ci): speed up image builds and centralize cache writes
- Image builds:
  - pin frontend and backend Docker build stages to the build platform so multi-arch packaging can reuse architecture-independent work
  - add an Angular build cache mount and move dynamic version metadata to the end of the runtime stage so static layers stay reusable across tags
  - reduce image workflow checkout depth and keep preview builds on `linux/amd64` only to avoid unnecessary QEMU and history overhead

- Cache policy:
  - make CI packaging smoke builds consume the shared image cache without writing new BuildKit cache state
  - make normal preview builds consume shared GHA and registry caches without mutating the canonical cache
  - keep nightly and stable release builds as the workflows that refresh the shared image cache in both GHA and registry backends

- Preview override:
  - add a `refresh_shared_cache` input to the preview workflow for an explicit no-cache rebuild that repopulates the shared cache when maintainers need to bust and refresh it
  - keep the default preview behavior optimized for fast disposable builds rather than cache churn

- Validation:
  - keep workflow YAML parsing clean after the cache-policy changes
  - keep `git diff --check` clean for the touched Docker and workflow files
2026-03-20 15:51:42 -05:00
James Cox e3b3e7c4d7 fix(ci): forward checks permission to reusable test jobs
- Workflow callers:
  - grant `contents: read` and `checks: write` when invoking the reusable test suite from CI validation, nightly builds, and main release automation
  - align caller permissions with the nested `backend-tests` and `frontend-tests` jobs so GitHub accepts the workflow graph

- Validation:
  - keep workflow YAML parsing clean after the permission wiring change
  - keep `git diff --check` clean for the touched workflow files
2026-03-19 18:50:00 -05:00
James Cox 6b0c4aa66c chore: Update README to use new links, and clean up formatting 2026-03-17 23:18:14 -05:00