feat(ui): polish Tide overlays, code, Actions, settings and dashboard #220
No reviewers
Labels
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
codefloe/forgejo-codefloe!220
Loading…
Reference in a new issue
No description provided.
Delete branch "feat/tide-overlays-polish"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
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.modaland<dialog>sit on the card colour (--color-menu: white in light, gray-800 in dark). Each surface redefines--color-bodyfor 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.No template changes. The classic
codefloe-*themes and Forgejo's themes are untouched; every rule is gated oncodefloe-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.codefloe-tide-autoas the instance default, the upstream style specsbuttons,dropdown,overflow-menu,switch,search-on-type,commit-list,repo-wikiandactionspass.repo-codefails intermittently in firefox withChunkLoadError: Loading chunk repo-switcher failed; it fails the same way under the defaultcodefloe-autotheme (2 of 3 runs), so it is not caused by this change.