Skip to content

Docs: Feedback opens Chirio's pin mode for people signed in on once-ui.com - #550

Merged
lorant-one merged 2 commits into
previewfrom
fix/docs-pin-feedback
Nov 19, 2026
Merged

lorant-one merged 2 commits into
previewfrom
fix/docs-pin-feedback

Conversation

@lorant-one

Copy link
Copy Markdown
Member

Why

On docs.once-ui.com, Feedback opens the old board panel with an email sign-in instead of the pin comments. There are two causes:

  1. The widget script had no data-token-url, so it never knew who was reading, and pin mode stays off for someone nobody vouched for.
  2. FeedbackButtons never called Chirio.pin(). chirio#172 and studio#257 fixed the same thing in other apps.

What

  • The script now gets data-token-url="https://once-ui.com/api/feedback-token". The session cookie on .once-ui.com travels with the request.
  • Feedback tries window.Chirio.pin() first and falls back to the drawer.

Someone signed in on once-ui.com gets pin mode. Visitors who aren't signed in still get the board form, which signs them in by email, because Chirio needs to know who posts.

This needs studio's companion PR (fix/feedback-token-for-docs, CORS for the docs origin) to ship first. Until then, the token fetch fails and the docs behave exactly as before.


Generated by Claude Code

…nce-ui.com

The docs widget had no token URL, so nobody was vouched for: pin mode stayed
off and the drawer showed the board form with its email sign-in. It now asks
once-ui.com/api/feedback-token, and Feedback tries pin mode first.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_016gNJtybUWM9Z2AgZdqsQPo
once-ui.com answers docs.once-ui.com alone, so on localhost, CI and preview
URLs the widget's token fetch was refused with a CORS error on every page,
which the docs smoke test counts as a problem.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_016gNJtybUWM9Z2AgZdqsQPo
@lorant-one
lorant-one merged commit 62ee48f into preview Nov 19, 2026
9 checks passed
lorant-one pushed a commit that referenced this pull request Nov 19, 2026
…ate --locales (#544)

Both reached preview after #554 merged main into 3.0, so main's switch to 3.0
would otherwise leave them behind on preview.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01YJHdG7ZbpQS64MtL5PVbT1
@lorant-one
lorant-one deleted the fix/docs-pin-feedback branch November 21, 2026 11:17
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.

2 participants