Skip to content

Build the OpenUI Cloud chat demo - #924

Open
zahlekhan wants to merge 30 commits into
thesysdev:mainfrom
zahlekhan:codex/openui-chat-demo
Open

Build the OpenUI Cloud chat demo#924
zahlekhan wants to merge 30 commits into
thesysdev:mainfrom
zahlekhan:codex/openui-chat-demo

Conversation

@zahlekhan

@zahlekhan zahlekhan commented Aug 4, 2026

Copy link
Copy Markdown
Contributor

Summary

  • make /chat an OpenUI Cloud-only, full-width demo while retaining dormant OSS code
  • add always-visible, read-only demo threads with private interactive continuations and one-time fixture seeding
  • add responsive Mobile, Tablet, and Desktop preview widths without remounting the active chat
  • align the new-chat shell with the latest OpenUI Cloud template, including the shared ModelSwitcher and fetchLLM adapters, exact provider assets, paid Gemini 3.6 default, starters, prompt templates, theme, and artifact categories
  • add typed PostHog instrumentation for demo reach, curated exploration, preview switching, continuations, live prompt/generation outcomes, and upgrade intent
  • use published chat packages: @openuidev/react-ui@0.13.3, @openuidev/react-headless@0.9.4, and @openuidev/thesys@0.3.1

Analytics

  • add a bounded chat_demo:* event contract with allowlisted demo and artifact identifiers
  • add eight data-attribute-element semantic tags to the key controls
  • track the navbar Build for free menu separately from the upgrade-sheet Build for free CTA; responsive upgrade CTA variants share a tag and report their placement
  • observe prompt submission at the chat transport and count activation only when the upstream response stream completes successfully
  • preserve demo-continuation attribution across later turns without sending prompts, responses, thread IDs, user IDs, or raw errors
  • disable DOM autocapture on /chat, mask chat-surface text in session replay, and disable chat-demo events on localhost

Validation

  • pnpm --filter @openuidev/docs types:check
  • focused ESLint for the chat, analytics, and OpenUI Cloud implementation
  • focused Prettier check and git diff --check
  • browser verification for the earlier demo implementation: full-width Desktop, responsive previews, demo visibility, disabled read-only controls, template starters/prompts, exact provider logos, no model status badge, and collapsed-sidebar behavior
  • live OpenUI Cloud continuation through a private fork with a persisted response before the analytics delta

The analytics delta's production build was attempted, but Next.js remained at Creating an optimized production build without further output and the process was stopped. Localhost browser automation was unavailable for the final semantic-wrapper smoke test; typecheck and focused lint passed.

Template refresh

Merged thesysdev/openui:main through d764ee5 before opening this PR and audited the refreshed packages/openui-cli/src/templates/openui-cloud implementation. Template-specific differences that remain are intentional: the hosted demo uses the docs theme and adds fixture storage/read-only continuation behavior.

Artifact visual quality

  • rebuild all four decks and four reports with image-led covers, visual cards, varied layouts, and charts where the fixture has quantitative data
  • add artifact-specific live generation guidance for image search, visual hierarchy, grounded charts, and decision-ready takeaways
  • verify every external image URL returns HTTP 200 and parse all eight fixture programs against the installed Thesys component schemas
  • browser-check the rendered stock report and Blockbuster deck with no console warnings or errors

# Conflicts:
#	docs/lib/openui-cloud/models.ts
#	docs/package.json
#	pnpm-lock.yaml
# Conflicts:
#	docs/package.json
#	pnpm-lock.yaml
@zahlekhan
zahlekhan marked this pull request as ready for review August 4, 2026 12:20
@vercel

vercel Bot commented Aug 4, 2026

Copy link
Copy Markdown

@zahlekhan is attempting to deploy a commit to the thesys-devs Team on Vercel.

A member of the Team first needs to authorize it.

@vercel

vercel Bot commented Aug 4, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
openui-docs Ready Ready Preview Aug 7, 2026 11:31am

Request Review

@zahlekhan

Copy link
Copy Markdown
Contributor Author

@vercel deploy

zahlekhan and others added 3 commits August 4, 2026 20:18
- Replace the three demo fixtures: a Big Tech 2025 stock comparison
  (brand-colored trendlines, tagged table, source cards, Netflix deep
  dive with chart tabs), a Japan travel guide (photo cards, what-to-do
  tabs, trip-planner form, follow-up chips), and a Blockbuster report
  (film spotlight cards, market split, franchise donut, sources)
- Redesign the read-only demo composer as a fade-out overlay with a
  single centered continue button
- Add a "Demo powered by OpenUI Cloud" sidebar banner with a "Why
  upgrade?" trigger that opens a bottom sheet embedding the Cloud
  page's 12-reasons feature marquee, with mobile-specific layout
- Compact single-row source citation cards via scoped CSS
- Shorten three CloudFeatureMarquee titles (also affects /cloud page)

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

Copy link
Copy Markdown
Contributor Author

@vercel deploy

@zahlekhan

Copy link
Copy Markdown
Contributor Author

Before / after — reported demo bugs

Verified on commit bf09237.

Featured demo responses stay read-only

The recorded Japan response previously allowed Create My Itinerary and other generated controls to submit a new turn. The complete generated response is now inert while the featured demo is selected; the explicit Continue conversation CTA remains available and private continuation threads retain normal interactivity.

Before After
Before: itinerary form controls could submit from the read-only demo After: itinerary form and generated response controls are visibly disabled

Browser verification confirms tabs, prompt buttons, text inputs, selects, radios, destination options, and Create My Itinerary expose disabled semantics.

Cloud footer collapses cleanly

The expanded Demo powered by OpenUI Cloud card previously overflowed inside the collapsed sidebar. It is now hidden during the collapsing transition and in the final collapsed state.

Before After
Before: Cloud footer overflowed in collapsed sidebar After: collapsed sidebar remains compact with the footer hidden

Validation: focused Prettier and ESLint, docs TypeScript check, git diff --check, and local browser verification at desktop width.

@zahlekhan

Copy link
Copy Markdown
Contributor Author

@vercel

{ type: "image_search" },
],
instructions: createResponsesInstructions(),
instructions: `${createResponsesInstructions()}\n\nWhen creating an artifact, actively use the available web and image search tools to ground its content and visual choices.`,

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.

createResponsesInstructions is now deprecated from our end, we promote generateSystemPrompt now

Comment thread docs/package.json
"@openuidev/react-headless": "0.9.4",
"@openuidev/react-lang": "workspace:^",
"@openuidev/react-ui": "workspace:^",
"@openuidev/react-ui": "0.13.3",

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.

These are not our latest versions

@AbhinRustagi

Copy link
Copy Markdown
Contributor
Screenshot 2026-08-07 at 16 55 49

There is a gap between the last message and the bottom

cc @abhithesys

@AbhinRustagi

AbhinRustagi commented Aug 7, 2026

Copy link
Copy Markdown
Contributor
Screenshot 2026-08-07 at 17 15 55

despite being disabled, the dropdown still displays its options

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