Cleanup: QA nits from PR #55 auth migration #56
Labels
No labels
domain:backend
domain:devops
domain:frontend
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
forgejo_admin/pal-e-docs-app#56
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Type
Feature
Lineage
Discovered scope from QA review of PR #55 (issue #52).
Repo
forgejo_admin/pal-e-appUser Story
As pal-e-app
I want clean code with no stale references or dead interfaces
So that the codebase stays maintainable after the auth migration
Context
QA review of PR #55 (auth migration from Auth.js to keycloak-js) found 5 non-blocking nits. These are cleanup items that don't affect functionality but should be addressed for code quality.
File Targets
src/lib/keycloak.tsline 20 — misleading "check-sso" comment (no onLoad: 'check-sso' is actually passed). Remove or correct the comment.src/lib/api-client.tsline 106 — deadNoteLinkinterface (defined but never imported). Remove it..env.example— stale references to old server-side env vars (PAL_E_DOCS_API_URL,PAL_E_DOCS_API_KEY,AUTH_*). Replace with new client-sideVITE_*vars.src/lib/api-client.ts— duplicateCOLUMNSdefinition. Remove and import from$lib/columnsinstead (canonical source, already exported and used by 3 pages).src/routes/+layout.sveltelines 171-198 — near-identical CSS for.nav-login-linkand.nav-logout-btn. Consolidate into a shared class.Acceptance Criteria
Test Expectations
npm run checkpassesnpm run buildpassesnpm run check && npm run buildConstraints
Checklist
Related
forgejo_admin/pal-e-app#52— parent migration issueforgejo_admin/pal-e-app#55— PR where nits were foundScope Review: NEEDS_REFINEMENT
Review note:
review-424-2026-03-26All 5 file targets verified against codebase -- every nit confirmed real. Template complete, traceability triangle intact, no blockers.
Two refinements needed:
api-client.tsshould import from$lib/columns(the canonical source, already used by 3 pages) rather than maintaining its own private copy.mcd-tracker-app/src/lib/keycloak.jshas the identical misleading "check-sso" comment with no actualonLoad: 'check-sso'. Needs a separate discovered-scope issue onforgejo_admin/mcd-tracker-app.Scope Review: READY
Review note:
review-424-2026-03-26Re-review passed. Both prior issues resolved: COLUMNS direction now specified ($lib/columns), mcd-tracker blast radius explicitly scoped out in Constraints.