Skip to content

chore: tidy leftovers from the API data-layer switch - #7

Merged
JasonPaff merged 1 commit into
mainfrom
chore/api-migration-cleanups
Sep 14, 2026
Merged

JasonPaff merged 1 commit into
mainfrom
chore/api-migration-cleanups

Conversation

@JasonPaff

Copy link
Copy Markdown
Collaborator

Small cleanups left over from the step 4 switch to the ATK API (#2).

  • Dead field. SessionUser.avatarUrl was mapped from GET /me but never rendered anywhere. Removed, along with the test fixtures that set it. If we want an avatar in the header later, the principal still carries it.
  • Generated client no longer points at prod. src/lib/api/client.gen.ts is now generated with baseUrl: false. It used to hardcode func-atk-prod, so any SDK call that forgot to pass client: would have silently gone to production; now it fails on a relative URL instead.
  • Lint guard. New ESLint no-restricted-imports rule blocks importing api/client.gen outside src/lib/api-client.ts, enforcing the convention the wrapper's doc comment and openapi-ts.config.ts already stated.
  • Stale doc. docs/PHASED_IMPLEMENTATION.md still describes the in-repo auth-function and an Octokit data layer. Added a "historical" banner pointing at PROJECT_OVERVIEW.md and reworded the link in docs/deployment.md.

No user-visible change. pnpm lint, pnpm typecheck, and pnpm test (29 files, 295 tests) pass. The same generator/lint change is going into the CLI repo in parallel.

🤖 Generated with Claude Code

https://claude.ai/code/session_01DeJbLw7zjGXxSnHX3pAdj1

- Drop the unused avatarUrl field from SessionUser; it was mapped from
  GET /me but never rendered.
- Generate the default API client without a base URL (baseUrl: false).
  It previously hardcoded the prod Function App, so an SDK call that
  forgot `client:` would have silently hit production.
- ESLint no-restricted-imports blocks importing api/client.gen outside
  src/lib/api-client.ts, enforcing the convention the wrapper documents.
- Mark docs/PHASED_IMPLEMENTATION.md as historical; it still describes
  the retired auth-function and Octokit data layer.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01DeJbLw7zjGXxSnHX3pAdj1
@JasonPaff
JasonPaff merged commit 3a8cbea into main Sep 14, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant