codefloe/forgejo-codefloe
Watch
4
12
Fork
You've already forked forgejo-codefloe
0

feat(ui): polish Tide overlays, code, Actions, settings and dashboard #220

Merged
pat-s merged 1 commit from feat/tide-overlays-polish into v16.0/forgejo-codefloe 2026-10-04 12:32:45 +00:00
Owner

Follow-up to #218, covering two of the gaps listed in its description: dialogs and menus still used the page colour, and code view, diffs, Actions, settings and the dashboard had only the shell and tokens.

What it changes

  • tide/overlays.css: dropdown menus (details.dropdown, Fomantic menu dropdowns, search results, mention popups), default tippy popovers, .ui.modal and <dialog> sit on the card colour (--color-menu: white in light, gray-800 in dark). Each surface redefines --color-body for itself, so upstream's own rules (modal header and content, tippy arrow) follow without restating each one. Modal footers use --color-box-header, and the active item of a tabular menu (pull request tabs) is a card tab. The tooltip and menu tippy themes keep their own colours.
  • theme-codefloe-tide-light.css: Forgejo light builds its neutral tokens from a zinc ramp, which reads warm grey next to the slate page. The ramp is mapped step for step onto Tailwind slate, so buttons, diff hunk headers, commit SHA labels and modal footers turn slate without restating each token.
  • tide/dashboard.css: the heatmap and the activity feed as cards, matching the repository list beside them.
  • tide/actions.css: the run list as one card capped by the Actor/Status filter bar (same shape as the issue list), and a run's job list as a card.
  • tide/settings.css: settings sidebars and the Actions workflow list use rounded rows without hairlines, GitHub style. The accent bar on the active item is unchanged.
  • tide/code.css: the diff file tree uses the theme's corner radius. The rest of the code view and diff polish comes from the slate mapping above.
  • README: this PR is appended to the Tide row.

No template changes. The classic codefloe-* themes and Forgejo's themes are untouched; every rule is gated on codefloe-tide-.

Tests

  • tests/e2e/codefloe-tide-theme.test.e2e.ts: six new tests (overlay and modal colours, card tab, slate hunk header, Actions run list card, settings sidebar rows, dashboard feed card). The spec passes locally in chromium, firefox and Mobile Chrome: 61 passed, 2 skipped (hover tests on mobile).
  • web_src/js/codefloe/tide-theme.test.js: contrast pairs for text on --color-menu.
  • With codefloe-tide-auto as the instance default, the upstream style specs buttons, dropdown, overflow-menu, switch, search-on-type, commit-list, repo-wiki and actions pass. repo-code fails intermittently in firefox with ChunkLoadError: Loading chunk repo-switcher failed; it fails the same way under the default codefloe-auto theme (2 of 3 runs), so it is not caused by this change.
Follow-up to #218, covering two of the gaps listed in its description: dialogs and menus still used the page colour, and code view, diffs, Actions, settings and the dashboard had only the shell and tokens. ## What it changes - `tide/overlays.css`: dropdown menus (`details.dropdown`, Fomantic menu dropdowns, search results, mention popups), default tippy popovers, `.ui.modal` and `<dialog>` sit on the card colour (`--color-menu`: white in light, gray-800 in dark). Each surface redefines `--color-body` for itself, so upstream's own rules (modal header and content, tippy arrow) follow without restating each one. Modal footers use `--color-box-header`, and the active item of a tabular menu (pull request tabs) is a card tab. The tooltip and menu tippy themes keep their own colours. - `theme-codefloe-tide-light.css`: Forgejo light builds its neutral tokens from a zinc ramp, which reads warm grey next to the slate page. The ramp is mapped step for step onto Tailwind slate, so buttons, diff hunk headers, commit SHA labels and modal footers turn slate without restating each token. - `tide/dashboard.css`: the heatmap and the activity feed as cards, matching the repository list beside them. - `tide/actions.css`: the run list as one card capped by the Actor/Status filter bar (same shape as the issue list), and a run's job list as a card. - `tide/settings.css`: settings sidebars and the Actions workflow list use rounded rows without hairlines, GitHub style. The accent bar on the active item is unchanged. - `tide/code.css`: the diff file tree uses the theme's corner radius. The rest of the code view and diff polish comes from the slate mapping above. - README: this PR is appended to the Tide row. No template changes. The classic `codefloe-*` themes and Forgejo's themes are untouched; every rule is gated on `codefloe-tide-`. ## Tests - `tests/e2e/codefloe-tide-theme.test.e2e.ts`: six new tests (overlay and modal colours, card tab, slate hunk header, Actions run list card, settings sidebar rows, dashboard feed card). The spec passes locally in chromium, firefox and Mobile Chrome: 61 passed, 2 skipped (hover tests on mobile). - `web_src/js/codefloe/tide-theme.test.js`: contrast pairs for text on `--color-menu`. - With `codefloe-tide-auto` as the instance default, the upstream style specs `buttons`, `dropdown`, `overflow-menu`, `switch`, `search-on-type`, `commit-list`, `repo-wiki` and `actions` pass. `repo-code` fails intermittently in firefox with `ChunkLoadError: Loading chunk repo-switcher failed`; it fails the same way under the default `codefloe-auto` theme (2 of 3 runs), so it is not caused by this change.
feat(ui): polish Tide overlays, code, Actions, settings and dashboard
All checks were successful
testing / backend-checks (pull_request) Successful in 5m18s
testing / test-e2e (1/2) (pull_request) Successful in 3m18s
testing / test-pgsql (4/4) (pull_request) Successful in 9m46s
testing / frontend-checks (pull_request) Successful in 1m26s
testing / test-e2e (2/2) (pull_request) Successful in 2m25s
issue-labels / backporting (pull_request_target) Has been skipped
milestone / set (pull_request_target) Has been skipped
testing / test-unit (pull_request) Successful in 7m51s
testing / test-pgsql (2/4) (pull_request) Successful in 10m19s
testing / test-pgsql (3/4) (pull_request) Successful in 13m39s
testing / test-pgsql (1/4) (pull_request) Successful in 12m35s
fc00c4004d
Put dropdown menus, popovers and dialogs on the card colour in the Tide
themes instead of the tinted page colour, by redefining `--color-body` on
each overlay surface; tint modal footers with the card header colour and
draw the active tabular-menu tab as a card tab.

Map Forgejo light's zinc ramp onto slate in theme-codefloe-tide-light.css,
so buttons, diff hunk headers, commit SHA labels and modal footers stop
reading warm grey next to the slate page.

Give the remaining areas dedicated rules:
- dashboard: the heatmap and the activity feed as cards
- Actions: the run list as one card capped by the filter bar, and a run's
  job list as a card
- settings: sidebar items as rounded rows without hairlines, also used by
  the Actions workflow list
- diffs: the file tree takes the theme's corner radius

Extend the Tide e2e spec and the contrast test to cover them, and append
this pull request to the README row.
pat-s scheduled this pull request to auto merge when all checks succeed 2026-10-04 12:31:12 +00:00
pat-s merged commit 91da7c56b1 into v16.0/forgejo-codefloe 2026-10-04 12:32:45 +00:00
pat-s deleted branch feat/tide-overlays-polish 2026-10-04 12:32:46 +00:00
Sign in to join this conversation.
No reviewers
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
codefloe/forgejo-codefloe!220
No description provided.