Skip to content

Add pairwise chat comparison#797

Merged
zahlekhan merged 17 commits into
thesysdev:mainfrom
zahlekhan:agent/chat-pairwise-comparison
Jul 23, 2026
Merged

Add pairwise chat comparison#797
zahlekhan merged 17 commits into
thesysdev:mainfrom
zahlekhan:agent/chat-pairwise-comparison

Conversation

@zahlekhan

@zahlekhan zahlekhan commented Jul 21, 2026

Copy link
Copy Markdown
Contributor

What

Adds a dedicated /compare experience for evaluating Rendered Markdown, OpenUI OSS, and OpenUI Cloud side by side while keeping the existing /chat experience intact.

Changes

  • Add three fixed comparison pairs with ?pair= URL state, defaulting to Markdown vs Cloud.
  • Keep all three response modes mounted; shared typed and starter prompts, stop, and reset fan out across them, while generated UI follow-ups remain in the originating mode.
  • Add independent Markdown, OSS, and Cloud surfaces with mode-local loading and error handling.
  • Add responsive desktop panels and mobile tabs, shared starters/composer, feature-comparison tray, and setup-command menu.
  • Enable Cloud reports and presentations in a full-page artifact view while starting active threads fresh after reload.
  • Add a server-validated Markdown response mode to the existing chat API.
  • Preserve the standalone /chat route and its existing documentation entry.
  • Remove comparison-only dead code and stale requirements, consolidate repeated metadata and request logic, and reduce redundant CSS without changing the UI.

Developer impact

The comparison implementation stays under docs/app/compare; no packages/** files are changed. The existing /chat route remains available as the standalone OpenUI chat demo.

Test plan

  • pnpm --filter @openuidev/docs types:check
  • Targeted ESLint on the changed TS/TSX files (0 errors; two existing no-img-element warnings in the overview page)
  • pnpm --filter @openuidev/docs build
  • Desktop and mobile browser verification for panel layout, pair switching, URL state, feature trays, starter availability, setup menu, and light/dark mobile backdrops
  • Browser console checked with no warnings or errors

Checklist

  • Documentation and navigation updated
  • Backwards compatibility considered; /chat remains available
  • No package-level changes

zahlekhan and others added 17 commits July 21, 2026 14:27
Header: panel titles with mode chips hoisted into the top bar, centered
'Change' pair switcher chip with descriptions in its dropdown, text-button
back/CTA, 'Build for free' command menu with copyable package-manager
variants, and a 'View comparison' tray with a per-pair feature table.

Behavior: switching comparison pairs now resets the demo to its empty
state (with a centered loader while surfaces initialize), and the pair
switcher dropdown blurs the page behind it below the top bar.

Controls: starter prompts are a single stacked card matching the centered
composer width; report/presentation starters are tagged 'On Cloud only'
and disabled when the selected pair excludes OpenUI Cloud.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Documents the Change dropdown with reset-on-switch and per-panel loading,
top-bar panel titles with mode chips, the Build for free command menu, the
View comparison feature tray, the stacked starter card with Cloud-only
rows, and the centred composer with the floated reset button.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Desktop: fix the composer autosize locking in a bogus height when the
page loads in a zero-width context (ResizeObserver re-measures on width
change), add a theme toggle beside the composer, blur the comparison
chip/tray under the pair-switcher overlay, refresh the panel empty
states (new copy and icons), and add a compact primary CTA linking to
the OpenUI Cloud docs at the base of the comparison tray.

Mobile (<=900px): restructure the top bar to back / centred View
comparison / hamburger; the hamburger reuses the homepage mobile tray
component with Comparison and Preferences sections (pair options as
plain text rows, reset, dark-light toggle) and the GitHub star CTA;
both the menu and the comparison tray open as edge-to-edge sheets over
a dark blurred backdrop that leaves the top bar sharp; the composer
spans full width with reset/theme moved into the menu; starter rows
share a uniform height with the Only on Cloud tag as plain text under
a full-width label line.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
…ents

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
@zahlekhan

Copy link
Copy Markdown
Contributor Author

Updated OpenUI Cloud CTA

OpenUI Cloud hero with primary Try Demo and secondary View Documentation

@zahlekhan
zahlekhan merged commit 1f14d23 into thesysdev:main Jul 23, 2026
2 checks passed
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.

3 participants