Repository navigation
feat(golink): rebuild Go link on the current console-ui pieces - #5547
shepherdjerred wants to merge 3 commits into
Conversation
Why Go link was the last console on the deprecated page kit (PageHeading, SummaryGrid, Segmented) with its own dialog chrome, so it did not match the other consoles and held the kit alive. What - Sources (All, Manual, Tailnet, Public sites, Auto-aliases) with counts sit in the ConsoleShell sidebar and drive the table filter; Shortcuts is a reference link. The phone drawer shares the same nav. - HeaderBar carries the SearchField (/ via useSearchShortcut) and New link, or a Read-only chip; FigureStrip shows the headline figures; links and shortcuts are Sections with plain ui-table (stacked on phones). - Create/edit/override/delete use the shared Dialog, Field and InputAddon; copying uses CopyButton; banners and states use Banner and State. - Removes golink-dialog*, the hand-rolled native validation module and the local `/` handler; styles.css moves into the ui.app layer (247 -> ~50 lines); theme uses the shared key (legacy key migrated) and theme-color metas. - Conformance allowlist 18 entries (61 findings) -> empty; eslint suppressions emptied. Redirects and the API are untouched. Verification - bunx turbo run build typecheck test lint --filter=@shepherdjerred/golink - bunx lefthook run pre-commit, bun run jscpd, directory file counts - bun run verify:extended --filter=@shepherdjerred/golink (Postgres test) - Rendered in a browser against the dev server in light, dark and 375px (screenshots in the PR). No Playwright suite exists for golink. - Not run: live deployment checks. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
|
This change is part of the following stack: Change managed by git-spice. |
|
Automatic reviews are disabled for this repository. Configure in Code Review Settings. |
|
Important Review skippedAuto reviews are disabled on this repository. Please check the settings in the CodeRabbit UI or the
|
|
@coderabbitai review Automated re-review request for |
Action not completed
|
|
@codex review Automated re-review request for |
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
Why Review follow-ups: the stack standard wants TanStack Form with Zod for forms, the page title should follow "Page · App", and the table and dialog had two small inconsistencies. What - The create/edit/override form uses @tanstack/react-form with the contract's UpsertManualLinkInputSchema (wrapping validateShortSlug and validateTargetUrl) as the validators; adds the catalog dependency. - Page title is "Links · Go links". - Clicks and Last clicked use the same sans "—" for nothing. - A field's hint is hidden while its error shows, so the rule is not stated twice. Verification - bunx turbo run build typecheck test lint --filter=@shepherdjerred/golink - bun scripts/checks/check-console-stack.ts: OK (Go link on the standard, no exception) - bunx lefthook run pre-commit, bun run jscpd, verify:extended for golink - Checked in a browser: title, aligned dashes, one message per invalid field. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
|
@codex review Automated re-review request for |
Why The dialog moved to TanStack Form with Zod and had no test of its behaviour. What - Invalid slug and URL show exactly one message per field (no hint) and do not call save. - A valid create saves the normalized slug and trimmed URL once. - Edit pre-fills the fields and locks the name. Verification - bunx turbo run typecheck test lint --filter=@shepherdjerred/golink - bunx lefthook run pre-commit Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
|
@codex review Automated re-review request for |
|
Codex Review: Didn't find any major issues. Another round soon, please! Reviewed commit: ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
If Codex has suggestions, it will comment; otherwise it will react with 👍. Codex can also answer questions or update the PR. Try commenting "@codex address that feedback". |
Why
Go link was the last console on the deprecated page kit (
PageHeading,SummaryGrid,Segmented) with its own dialog chrome. On current console-ui the old page no longer even lays out (see Before).What
ConsoleShellsidebar and drive the table filter; the phone drawer shares the same nav.HeaderBarholdsSearchField(/viauseSearchShortcut) and New link (or a Read-only chip);FigureStripshows headline figures; links and shortcuts areSections with a plain.ui-table(stacked on phones).Dialog,Field,InputAddon; copying usesCopyButton;BannerandStatereplace local banners.golink-dialog*, the 357-line native validation module and the local/handler.styles.css247 -> ~55 lines in theui.applayer. Shared theme key (legacy key migrated) and theme-color metas.Demo
New link dialog with inline validation:
Verification
bunx turbo run build typecheck test lint --filter=@shepherdjerred/golinkpassbunx lefthook run pre-commit,bun run jscpd,check-directory-file-countspassbun scripts/checks/check-console-stack.tsOK (Go link on the standard)bun run verify:extended -- --filter=@shepherdjerred/golinkpass (Postgres test)expect(lines: client.test 45 -> 37 (tests for removed Segmented/golink-dialog markup dropped or migrated to ui-table/Chip/Section), page.test 11 -> 11, router.test 4 -> 4.🤖 Generated with Claude Code