Skip to content

Fix copy fallback, language picker, stepper navigation and headline hover - #15

Merged
pedrobritx merged 1 commit into
mainfrom
fix/interface-feedback
Nov 11, 2026
Merged

pedrobritx merged 1 commit into
mainfrom
fix/interface-feedback

Conversation

@pedrobritx

Copy link
Copy Markdown
Owner

Problem

Feedback from using the live site:

  • Copy in the Homebrew command view did nothing. In the Claude desktop browser clipboard-write is denied, writeText rejected, and the only feedback was an error at the top of the page, off-screen from the button.
  • The language list opened upwards and could not be used. Root cause: at widths ≤ 1050 px, on Review and later views, the hidden floating summary measured 0 × 0 at the top; positionList used it as the bottom edge and opened the list at y = -72 with max-height: 90px.
  • The round flag sat 2 px left of its hover circle (justify-content: space-between inherited from the source trigger).
  • Language names included countries (English (UK), Português (Brasil), Español (España)).
  • The stepper was not clickable.
  • The headline hover jumped: background-size switched from 100% to 240% instantly and the animation snapped back on leave.

Resulting behaviour

  • Copy tries the Clipboard API, then a selection copy (execCommand, restoring focus), then selects the command and shows "press ⌘C" beside the button.
  • Lists ignore a hidden summary and open above only with at least 90 px of real room.
  • The flag is centred; names are English, Português, Français, Deutsch, Español (translations unchanged: en-GB, pt-BR, fr-FR, de-DE, es-ES).
  • Steps are buttons: Choose, Review and the chosen route. The guided handoff opens without downloading and offers "Download plan"; the companion locks earlier steps while a run is active.
  • The headline glides its colours over 900 ms in and out through registered @property stops; resting colours are unchanged, Calm/reduced motion keep it still, and browsers without @property simply switch colours.

Key decisions

  • The fallback copy runs after a rejected writeText, within the click's transient activation; verified working in the Claude desktop browser (execCommand("copy") returned true on a real click).
  • The current step carries aria-current="step" on its button; li styling uses :has(), already used throughout the stylesheet.

Verification

  • npm test (Node 22, Python 21), check:format, check:catalog.
  • Playwright WebKit full suite 34/34; Chromium and Firefox 27/27 on interface, setup, languages, components and liquid specs.
  • The four new tests in tests/browser/interface.spec.mjs fail against main and pass here. The companion dry-run test now asserts the stepper locks during the run.
  • Root causes for Copy and the language list were reproduced on the live site in the Claude desktop browser.

Limitations

  • Not checked by hand in Safari or on a physical touch device.
  • The fallback relies on execCommand("copy"), deprecated but supported by current engines.
  • Preview images in outputs/ were not regenerated.

Generated by Claude Code

…over

- Copy: browsers that refuse the async clipboard (the Claude desktop
  browser denies its permission) did nothing visible; the error showed
  only at the top of the page. Copy now falls back to a selection copy,
  then selects the command and asks for ⌘C beside the button.
- Language list: on Review and later views at widths up to 1050 px the
  hidden floating summary measured 0 x 0 and was taken as the bottom
  edge, so the list opened above the viewport. Hidden summaries are
  ignored and lists open above only with real room.
- Flag: the trigger inherited space-between and sat 2 px off-centre.
- Language names drop countries: English, Português, Español.
- Stepper: steps are buttons for Choose, Review and the chosen route;
  the companion locks earlier steps during a run.
- Headline: hover switched the gradient size instantly and snapped back;
  registered colour stops now glide for 900 ms, still under Calm.

Verification: unit 22 + 21, format and catalogue checks; Playwright
WebKit 34/34, Chromium and Firefox 27/27 on affected specs. The four new
interface tests fail against main.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01JBgAhZ6s45DnrKXbhbwYet
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 11, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-11T03:32:19.187095Z be5a0a3 PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@pedrobritx
pedrobritx merged commit ef0eda1 into main Nov 11, 2026
10 checks passed
@pedrobritx
pedrobritx deleted the fix/interface-feedback branch November 11, 2026 03:31

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: be5a0a3947

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread docs/assets/app.mjs
);
}
bindEvents();
renderStepper();

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P2 Badge Refresh stepper state after connecting to the companion

When opening a fresh local companion without an initial plan, this renders the stepper while session is still null, enabling the installation step. After /api/session resolves and /api/state returns idle, initialization never renders the stepper again: applyImported() only runs for an initial plan, and renderRun() only runs for a non-idle run. Clicking “Guided installation” therefore enters the uninitialized progress view even though no installation has started and no polling is scheduled. Re-render the stepper after the session handshake so the progress step remains disabled until a run exists.

Useful? React with 👍 / 👎.

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