Skip to content

Tiny Sunny: the chat on Base44ChatProvider (preview) - #80

Draft
amitbardos wants to merge 1 commit into
amitb/tiny-sunny-hook-previewfrom
amitb/tiny-sunny-provider-preview
Draft

amitbardos wants to merge 1 commit into
amitb/tiny-sunny-hook-previewfrom
amitb/tiny-sunny-provider-preview

Conversation

@amitbardos

@amitbardos amitbardos commented Oct 18, 2026 •

Copy link
Copy Markdown
Contributor

Draft. Stacked on base44/base44-platform-starter#81. Depends on base44/javascript-sdk#335, which is stacked on base44/javascript-sdk#315. package.json still says @base44/platform@^0.1.0, which has no /react provider. Run it against #335's preview build:

npm install --no-save -w @base44/white-label-minimal "@base44/platform@npm:@base44-preview/platform@0.2.0-pr.335.2bd5f4f"

Pin a published version here once #335 ships.

What

Tiny Sunny's chat, drawn with <Base44ChatProvider> instead of looping over useBase44Chat by hand.

  • Workspace.tsx runs one provider above the preview and the chat. A small BuildWatcher reads status from it to make the preview live and refresh the app list.
  • Chat.tsx reads useChatState() and useChatActions(), and draws each item with <Message>. Tiny's Text and Step parts keep the old look, including faded pending prompts and status icons.
  • QuestionParts.tsx (was ToolQuestion.tsx) is now one part per kind: Choice, Secrets, Approval. The provider picks the part, so Tiny no longer switches over question.kind.

The behaviour is unchanged. Each question now draws right after its own step, as before.

Stacked on

base44/base44-platform-starter#81, Tiny Sunny on useBase44Chat. This PR adds only the last commit.

Checked

  • npm run typecheck and eslint pass against the #335 preview build.
  • Locally on :3001, AquaTrack's conversation renders with Tiny's parts: 28 texts and 50 steps, no library fallbacks, and no console errors. No app in the workspace had an open question, so the question parts were not exercised live. The SDK's provider tests cover them.

🤖 Generated with Claude Code

Workspace runs one <Base44ChatProvider> above the preview and the chat.
<Message> draws each item with Tiny's Text and Step parts and a part per
question kind (QuestionParts.tsx), so the chat no longer switches over
question kinds itself.

Needs @base44/platform/react from base44/javascript-sdk#335.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@netlify

netlify Bot commented Oct 18, 2026 •

Copy link
Copy Markdown

✅ Deploy Preview for base44-platform-starter ready!

Name Link
🔨 Latest commit 824abe9
🔍 Latest deploy log https://app.netlify.com/projects/base44-platform-starter/deploys/6ad48d929d070656c820becf
😎 Deploy Preview https://deploy-preview-80--base44-platform-starter.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@netlify

netlify Bot commented Oct 18, 2026 •

Copy link
Copy Markdown

❌ Deploy Preview for sunny44-builder failed.

Name Link
🔨 Latest commit 824abe9
🔍 Latest deploy log https://app.netlify.com/projects/sunny44-builder/deploys/6ad48d92a80f0d89f66243c1

@amitbardos
amitbardos changed the base branch from main to amitb/tiny-sunny-hook-preview October 18, 2026 09:15
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