Skip to content

Feature/enhance UI - #731

Merged
pikann merged 13 commits into
masterfrom
feature/enhance-ui
Nov 13, 2026
Merged

pikann merged 13 commits into
masterfrom
feature/enhance-ui

Conversation

@pikann

@pikann pikann commented Nov 13, 2026 •

Copy link
Copy Markdown
Contributor

Summary

A web UI pass: standardize on shadcn components (installed with the CLI), replace the assistant-ui chat with shadcn chat components, give toasts and errors one consistent shape, and fix a handful of layout bugs found along the way.

What changed

shadcn components

  • Installed the full shadcn base-nova set through the CLI. Existing customized components (button, dialog, sidebar, …) were kept as they were; the CLI's own copies of alert, checkbox, tabs, spinner, empty and toast replaced the hand-written ones.
  • Added the shadcn package and @import "shadcn/tailwind.css" (it supplies the data-horizontal / data-active variants, no-scrollbar, scroll-fade and accordion keyframes the components rely on).
  • Biome override for vendored shadcn files (a11y rules that upstream code trips).
  • Pinned react-day-picker back to v9 (the CLI bumped it to v10, which breaks the calendar).

Chat: assistant-ui removed

  • components/assistant-ui is now components/chat; the Thread is rewritten on shadcn message-scroller, message, bubble, input-group, trace, code-block, table. Markdown uses react-markdown.
  • @assistant-ui/* is no longer a dependency. Conversations are converted to a small ChatMessage type; onSend / onCancel / isRunning replace the external-store runtime.
  • Scroll anchoring when older events load now uses the scroller's preserveScrollOnPrepend.
  • "Attach context" is a dialog (tabs, search, multi-select, Done).
  • Dropped unused features: editing, branching, dictation, attachments, follow-up suggestions, tool-approval prompts.

Toasts and error feedback

  • shadcn Toaster at the bottom center, clear of the chat float button.
  • Success toasts name the action: meta: { success, subject } on a mutation gives e.g. "Project information updated successfully" (15 verbs × 52 subjects, translated in all nine locales).
  • A global MutationCache fallback shows an error toast for any mutation without its own onError; meta: { silent: true } opts out where the error is shown inline.
  • Error toasts offer a Report this issue button (pre-filled GitHub issue) unless feedback is turned off or the error is a 403. See lib/notify.ts.
  • Inline "Saved ✓" flashes and duplicate error banners were removed in favour of toasts; form/dialog/auth errors stay inline.
  • copyToClipboard shows an error toast itself when copying fails.

Components moved to shadcn

  • Tabs: agent, environment, port-forward, service-account, environment-connect and automation pages, admin plugins, the role editor mode switch and the add-member type switch.
  • Dialogs: sprint complete (RadioGroup) and delete (AlertDialog), add custom field, link task, sprint form. DialogContent gained an overlayClassName option for dialogs that must open above the floating chat.
  • Pickers: SearchableList now uses shadcn Combobox (inline), so all assignee/reporter/sprint/member/agent pickers share it.
  • Also: NativeSelect, Accordion, Checkbox, Switch, Breadcrumb, ToggleGroup, Empty, Table (chat markdown), Spinner, Alert.
  • Task detail: start and due date are edited together in one range calendar (one update instead of two).
  • View settings stays a dropdown (the board previews live behind it) with Display / Fields / Filters tabs, real selects, an "Unsaved changes" badge, and a confirm-on-close dialog (Keep editing / Discard / Save).

Design tokens and polish

  • --success / --warning / --info tokens; ~65 files moved off hard-coded red/green/amber classes. Global prefers-reduced-motion.
  • Sidebar: Project section divider, collapsible Plugins sections, divider width fixed (it overflowed past the sidebar), resize handle no longer hidden under the page header.
  • Smaller fixes: agent picker dropdown no longer makes the page scroll (shared list needed to be a positioned container), empty chat box top padding, activity filter moved into the header.

Tests

  • Unit tests updated for the new markup; new tests for the toast / report-button helpers and the unsaved-changes flow.
  • e2e specs updated for tabs (role=tab), toast texts and the view-settings dropdown (option roles, Filters tab, discard confirmation, new Keep-editing and no-prompt cases).

Merge notes

Testing

  • tsc -b clean; vitest 159 files / 1,656 tests pass after the merge.
  • Clicked through the migrated pages in the running app (light and dark): tabs, dialogs, pickers, toasts, view settings, chat conversation view.
  • Playwright (e2e stack rebuilt from this branch): view-settings, timeline and subtask-hierarchy pass (a few pre-existing flaky cases pass on retry).

Not verified

  • Sending / streaming a live agent message and stopping a run (needs a connected ACP bridge); the floating chat windows beyond opening them.
  • Playwright specs edited but not yet run: environments, automation, admin/plugins, plugin-legacy-warning (tab roles) and admin/settings, jev (toast texts). The rest of the suite (chat, admin, iam, …) has not been run against these changes either.
  • Translations for the new strings (toast verbs and subjects, dialogs) are machine-written and should get a native-speaker pass, especially es / fr / pt-BR / ru.

Known follow-ups

  • Raw <button> elements (~200) and inline-edit inputs are untouched; the saved-view tab strip (interaction-layout) keeps its drag-to-reorder tabs; the project settings side navigation is still custom.
  • The API ignores an empty project description on update, so a description can't be cleared from the UI (pre-existing).

… messages and date clear options

feat(notify): implement error notification system with report issue functionality

fix(clipboard): enhance copyToClipboard function to show error toast on failure

feat(api-keys): add success notification for API key revocation

feat(profile): add success notification for profile updates

feat(projects): add success notifications for project creation and automation actions

feat(sprints): add success notifications for sprint updates and completions

feat(team): add success notifications for team member management actions
…ialog components for consistency

feat: implement Tabs component for better navigation in PolicyEditor, PluginSettingsPage, AutomationBuilderPage, SprintPage, and AddMemberDialog

fix: update AddTaskLinkModal to use new UI components and improve accessibility

style: clean up imports and improve code readability across various components

@pullfrog pullfrog Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Important

Two behavioral regressions worth fixing before merge — the chat transcript reports a cancelled tool call as successfully completed, and the new unsaved-changes confirmation can render underneath the still-open settings popover — plus a handful of smaller rough edges. All are detailed inline.

Reviewed changes

  • Chat stack rewritten: @assistant-ui/react removed in favor of a local message model (components/chat/types.ts), thread.tsx, tool-fallback.tsx, tool-group.tsx, reasoning.tsx, markdown-text.tsx, plus new trace/code-block/message-scroller primitives and a lazy shiki highlighter.
  • Global mutation toasts: new MutationCache in query-client.ts with opt-in meta: { success, subject } toasts and a global error toast (lib/notify.ts), applied to ~100 mutations across admin, project settings, agents, environments and task detail.
  • View settings panel: Popover body rebuilt as Display/Fields/Filters tabs with a new unsaved-changes dot, badge and AlertDialog close confirmation.
  • Context picker: the chip-field popover became a multi-select Dialog with type tabs and search.
  • UI primitive sweep: hand-rolled modals, buttons, checkboxes, toggles and skeletons replaced with Dialog/AlertDialog/Tabs/Checkbox/ToggleGroup/Combobox/Select; new --success/--warning/--info tokens, a reduced-motion rule and an a11y lint rule.
  • Dependencies/i18n: new runtime deps (@shadcn/react, shiki, shadcn, cmdk, react-markdown, recharts, …) with the lockfile updated; toast/context-picker/view-settings keys added to all 9 locales.

Verified in the workspace: tsc -b is clean, all 1649 unit tests pass, and biome check at the pinned 2.4.12 reports no errors.

Pullfrog  | Fix all ➔ | Fix 👍s ➔ | View workflow run | Using deepseek-v4.1-flash-1017 (free via Pullfrog for OSS) | 𝕏

Comment thread apps/web/src/components/chat/types.ts Resolved

@pullfrog pullfrog Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ℹ️ No new issues in the delta — the findings from the previous review remain open, so this stays non-approving.

Reviewed changes

Delta since the previous review (f44ad15):

  • ec855e0c merges master (SSO-only mode, #730) into the branch. The conflict resolution in LoginFormPanel.tsx keeps master's sso_only gating (password form only for the admin link, SSO provider error notice) and reapplies the PR's token classes; LoginSecuritySettings.tsx keeps both the sso_only switch and the protected-roles state. Checked the merged files directly — coherent.
  • 4cfc667e adapts the view-settings, subtask-hierarchy and timeline e2e specs to the tabbed dropdown and option roles, adds the discard-confirmation assertion, and restores a few assertions the earlier spec pass had dropped.

tsc -b is clean at this head and the auth, query-client and notify test files pass (46 tests). Nothing new to flag; the six inline findings from the previous review still stand.

Pullfrog  | Fix it ➔ | View workflow run | Using deepseek-v4.1-flash-1017 (free via Pullfrog for OSS) | 𝕏

@pullfrog pullfrog Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ℹ️ No critical issues — the six findings from the previous review are all addressed. One minor accessibility regression remains in the new sidebar toggles.

Reviewed changes

Delta since the previous Pullfrog review (4cfc667e), covering 6073cfd8 and 0ced4519:

  • Sidebar toggles are now buttons: SidebarGroupLabel in DocsSidebarSection, ProjectNavItems, CollapsibleSidebarGroup and ProjectInteractionsSection renders as <button type="button" /> with aria-expanded, so the section collapse controls are keyboard operable.
  • Cancelled tool calls no longer report success: toolCallStatus() returns incomplete (reason: "cancelled") for a result-less tool call in a finished message, reaching the existing strike-through and "Cancelled tool" rendering.
  • Sprint start has its own mutation: the sprint-detail page's startSprintMutation reports "Sprint started successfully" instead of reusing the "updated" mutation, and both sprint-start paths are meta.silent so their modal inline error is the only failure notice.
  • View-settings draft resets on close: closeNow re-seeds draft from view.config, clearing the unsaved-changes dot and badge after Discard.
  • Alert dialog raised above the popover: the AlertDialog overlay and content moved from z-50 to z-80, so the unsaved-changes confirmation paints above the still-open settings popover.
  • View content isolation: interaction-layout.tsx gains isolate on the view-content container so the board/roadmap sticky headers stay inside their own stacking context.

Pullfrog  | Fix all ➔ | Fix 👍s ➔ | View workflow run | Using deepseek-v4.1-flash-1017 (free via Pullfrog for OSS) | 𝕏

@pullfrog pullfrog Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ℹ️ The icon-rail fix is correct for the desktop case, but the mobile sidebar is not accounted for.

1ce02d30 hides the section labels in the icon rail and keeps the sections expanded, which resolves the earlier "invisible tabbable labels" finding. The approach is sound, but isRail is derived from sidebarState === "collapsed" without checking isMobile.

On a mobile viewport the sidebar is a Sheet whose open state is openMobile, while state still reflects the desktop open flag. So a user who collapsed the desktop sidebar and then resizes the window to a narrow width (or opens the app on a narrow screen) sees the mobile sheet with no section labels, and the docs section disappears entirely (DocsSidebarSection returns null in "rail" mode). The fix is to gate on the mobile flag too, e.g. const isRail = sidebarState === "collapsed" && !isMobile; in ProjectNavItems, CollapsibleSidebarGroup, ProjectInteractionsSection, and DocsSidebarSection.

No other changes in this commit; the rest of the diff is unchanged from the previous review.

Pullfrog  | Fix all ➔ | Fix 👍s ➔ | View workflow run | Using deepseek-v4.1-flash-1017 (free via Pullfrog for OSS) | 𝕏

@pullfrog pullfrog Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

✅ No new issues found.

Reviewed changes

Delta since the previous Pullfrog review (1ce02d3), covering 96680454:

  • Mobile sidebar keeps its sections: DocsSidebarSection, ProjectNavItems, CollapsibleSidebarGroup and ProjectInteractionsSection now compute their rail/collapsed state as sidebarState === "collapsed" && !isMobile, so the mobile Sheet keeps its section labels and the docs section instead of inheriting a collapsed desktop sidebar.

The guard is applied at all four sites, and state in SidebarProvider tracks only the desktop open flag while isMobile comes from useIsMobile(), so the fix matches how the sheet is controlled via openMobile. The mobile Sheet branch never sets data-collapsible, so no other rail-derived styling needs the same guard. Both earlier sidebar threads are now replied to and resolved. Dependencies are not installed in this review environment, so this pass is static analysis only.

Pullfrog  | View workflow run | Using deepseek-v4.1-flash-1017 (free via Pullfrog for OSS) | 𝕏

…age files

refactor: enhance date range editor logic to preserve due date when updating start date
docs: improve comments in useHighlightedCode and query-client for clarity

@pullfrog pullfrog Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

✅ No new issues found.

Reviewed changes

Delta since the previous Pullfrog review (9668045), covering aa466cab:

  • Due date preserved when only a start is picked: DateRangeEditor now closes with the existing due date kept alongside the newly picked start, clearing it only when it would fall before the new start, instead of always dropping it. The comparison is day-accurate — toDateObject builds local-midnight dates and DayPicker hands onDayClick local-midnight days — and the call site still sends both values in one onUpdate.
  • shadcn moved to devDependencies: the CLI package left runtime dependencies (the lockfile re-resolves caniuse-lite for the autoprefixer subtree as a result). The build-time @import "shadcn/tailwind.css" keeps resolving because apps/web/Dockerfile and web-pr-ci.yml both run bun install --frozen-lockfile with devDependencies.
  • Doc comments only: useHighlightedCode documents the render-time derived-state cache, and handleMutationError documents that a per-call mutate(vars, { onError }) is invisible to the global toast.

biome check at 2.4.12 passes on the three changed source files. Dependencies are not installed in this review environment, so no build or unit run this pass.

Pullfrog  | View workflow run | Using deepseek-v4.1-flash-1017 (free via Pullfrog for OSS) | 𝕏

@pikann
pikann merged commit 4fb5c16 into master Nov 13, 2026
3 checks passed
@pikann
pikann deleted the feature/enhance-ui branch November 13, 2026 07:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant