Commit graph

8 commits

Author SHA1 Message Date
ZTatman
394e68abeb chore: just some formatting cleanup 2026-10-07 14:00:44 -04:00
ZTatman
e64315f68d fix(setup): pre-fill public base URL and require it in the wizard
An empty firebreak_public_base_url only works while the person filling in
the wizard happens to be browsing the same origin Forgejo redirects back
to, so it can look fine during local setup and still be wrong in
production. It also leaves share URLs relative, since there is no
externally resolvable origin to build them from.

The setup page already derived the request's base URL to display the OAuth
callback hint, but persisted "" instead, so the field and the hint could
disagree. Pass the derived value through as the field's value and mark the
input required, dropping the hint that told users to leave it blank on
localhost.
2026-10-05 15:58:47 -04:00
ZTatman
82d50bff59 feat(links): add repository commit listing endpoint
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.
2026-10-05 15:45:26 -04:00
ZTatman
f00c25b7a0 feat(links): add repository and branch listing with Forgejo token dependency 2026-10-01 16:51:03 -04:00
ZTatman
3c3f47d20e refactor(web): rename config module to settings, add shared Forgejo API client 2026-10-01 16:51:00 -04:00
f3a0d2dd73
feat(web): setup wizard, settings page, Firebreak rename (#15) 2026-06-08 14:56:27 -04:00
74a0d0dbb7
feat(web): OAuth CSRF protection, refactor, and cleanup (#11) 2026-05-15 15:18:52 -04:00
e27a9d7e7d
Add FastAPI web service with async SQLAlchemy and Docker (#10) 2026-04-24 16:03:54 -04:00