Expose GET /links/repositories/{repo}/commits, resolving {owner}
server-side from the session's linked Forgejo identity like the sibling
branches route.
Take the ref as a query parameter instead of a path segment: branch names
contain slashes (docs/readme, feature/learn-public-links), which a single
path param cannot capture without a path converter. As a query param,
`ref` may also default to main.
Dropping the path default and declaring `repo` were both required for the
module to import: FastAPI asserts that path parameters have no defaults,
and an undeclared path param raised NameError at call time.
Forgejo's commits endpoint filters on `sha`, not `branch`. Sending
`?branch=<name>` was silently ignored and the API returned the default
branch's commits for every ref, so branch resolution appeared to work
while always yielding the same list.
Rename the parameter to `ref` (a branch, tag, or sha) and send it as
`sha`, documenting that the slot name is Forgejo's choice while the value
is a caller-supplied git ref.
The flat commits payload is GitHub-shaped (`sha`, `commit.message`,
`html_url`, `created`) while the nested branch commit uses `id`,
`message`, `url`, and `timestamp`. Give each Commit field an
AliasChoices/AliasPath covering both shapes so one model serves the
/branches and /commits endpoints, then map commits through it instead of
returning raw dicts under a `list[Commit]` annotation.
Also annotate get_branches' limit/page to match get_commits.
- Set --color-danger to #d93f2d (dark theme), #b01c2a (light theme)
- Added --color-danger-hover with darkened values
- Replaced magic hex in error.html with var() references
- Updated JS glow animation to match new danger color
- Removed unused tokens: primary-foreground, primary-hover, primary-muted, border-subtle
Changes .btn-primary from dark (#17191c) to red (#c62030) background
with darker red (#a81a27) on hover. Affects Open dashboard, Sign in,
Create share link, and other primary action buttons.
The .app-header .btn-borderless override was missing background:transparent,
so the red bg-danger from the base .btn-borderless leaked into nav buttons.
Reverts header-specific .btn-borderless override so Dashboard and
Settings nav buttons remain transparent with accent hover. Only
non-header borderless buttons get the red default style.
Changes .btn-borderless from transparent to red (#c62030) background
with darker red (#a81a27) on hover. Updates header-specific overrides
to match the new default style.