fix: clean up 5 QA nits from auth migration PR #55 #61
No reviewers
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!61
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "56-cleanup-qa-nits"
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?
Summary
Addresses 5 non-blocking QA nits discovered during review of PR #55 (auth migration). All cleanup -- no functional or architectural changes.
Changes
src/lib/keycloak.ts: corrected misleading JSDoc comment that referenced check-sso when no onLoad mode is actually setsrc/lib/api-client.ts: removed dead NoteLink interface (defined but never imported anywhere)src/lib/api-client.ts: replaced duplicate COLUMNS array with import from$lib/columns(canonical source, already used by 3 pages).env.example: replaced stale server-side env vars (PAL_E_DOCS_API_URL, PAL_E_DOCS_API_KEY) with current client-side VITE_* varssrc/routes/+layout.svelte: consolidated identical .nav-login-link and .nav-logout-btn CSS into a shared selectorTest Plan
npm run check-- 0 errors, 1 pre-existing warning (a11y autofocus on search page)npm run build-- clean build, adapter-static wrote site to build/Review Checklist
Related Notes
forgejo_admin/pal-e-app#52-- parent auth migration issueforgejo_admin/pal-e-app#55-- PR where nits were foundQA Review -- PR #61
Scope: 4 files, +12/-39 lines. Pure cleanup, no behavioral changes.
File-by-file review
.env.example-- Stale server-side vars (PAL_E_DOCS_API_URL,PAL_E_DOCS_API_KEY) correctly replaced withVITE_*client-side vars. Comments updated. Keycloak defaults matchkeycloak.tsfallbacks.src/lib/api-client.ts-- Two clean removals:COLUMNSarray replaced withimport { COLUMNS } from './columns'. Relative path is correct within$lib. The canonical$lib/columns.tsalready exportsCOLUMNSand is used by 3 pages.NoteLinkinterface removed. Confirmed: defined but never imported anywhere in the codebase.src/lib/keycloak.ts-- JSDoc comment corrected. Old text claimed "Uses check-sso" butkeycloak.init()has noonLoadoption set. New comment accurately describes the no-onLoad behavior.src/routes/+layout.svelte--.nav-login-linkand.nav-logout-btnCSS consolidated into shared selectors (base +:hover). Duplicate.nav-login-linkblock fully removed. No style change -- both classes had identical declarations.Checks
npm run check: 0 errors (1 pre-existing a11y warning)npm run build: clean static buildNits
None.
Discovered scope
None.
VERDICT: APPROVED