forge
Explore
Log in

Don't you dare go Hollow

Commits

Commits on bcaef901dbc87aecf8dc13e336bc101cfd50455eFiltered to crates/forge-web/src/pages/commit.rsClear filter

2026-10-23

⚡ feat: relative times on every page keep themselves currentAhmet Kaan Gümüş · bcaef90
⚡ feat: relative times on every page keep themselves current

Server-rendered relative times ("3 hours ago") were static text, so an open page
aged without moving. Every `<time>` that shows an age now carries data-rel, and
nav.js re-words it locally, arming one setTimeout for the next real change of
wording. No request is made.

- views: rel_words() gives the wording; the <html> element carries it as
  data-rel-words with the server clock in data-rel-now, copied on each swap.
- All relative <time> tags across pages get data-rel="true", plus the
  standalone labels (blame, tree, branches, banner, dashboard, runners,
  export, import) that now wrap a stamped <time>.
- CI run list is live on every page, not only page 1.
- Run rows and the run header show their age as a <time data-rel>.
- Tests: rel_words asserts added to relative_time_picks_the_unit; three
  asserts updated for the live list and the <time> markup.
✅ test: page tests share their fixtures and merge into tablesAhmet Kaan Gümüş · 40e7f7d
✅ test: page tests share their fixtures and merge into tables

Per-file test counts (#[test]/#[tokio::test]), main -> now:
- pages/authoring_tests.rs: 7 -> 3
- pages/blame.rs: 3 -> 2
- pages/browse_tests.rs: 9 -> 4
- pages/commit.rs: 6 -> 3
- pages/commits.rs: 7 -> 3
- pages/forgot.rs: 3 -> 1
- pages/fork.rs: 9 -> 1
- pages/import_tests.rs: 5 -> 2

Total: 44 -> 19. Scoped run: 19 passed, 0 failed.
✅ test: page a-l tests merge into tables and drop checks that cannot failAhmet Kaan Gümüş · 9b3e6a7
✅ test: page a-l tests merge into tables and drop checks that cannot fail

Test count in crates/forge-web/src/pages (a-l files) goes from 294 to 288.
Two access-check tests in ci_tests share one fixture now, the two badge
label tests share one, the df and du parser tests merge, the admin mail
stream check runs inside the admin-only test, and the signature badge
checks fold into the commit list and commit page tests.

2026-10-22

2026-10-20

2026-10-16

🎉 feat: initial commit of forgeAhmet Kaan Gümüş · 50bfaf3
🎉 feat: initial commit of forge

Self-hosted git forge in Rust: web UI, SSH and smart HTTP git,
issues, pull requests with reviews and merge rules, CI with a
sandboxed runner, webhooks, notifications, releases, LFS, mirrors,
replication and scheduled backups.