[PR #8454] [MERGED] fix(mari): hint that a second Tab links a completed name #8611

Closed
opened 2026-11-07 16:45:58 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/Pasta-Devs/Marinara-Engine/pull/8454
Author: @ylli-selmani
Created: 10/29/2026
Status: ✅ Merged
Merged: 10/29/2026
Merged by: @ylli-selmani

Base: staging ← Head: fix/mari-tab-link-hint


📝 Commits (5)

  • 11a09c3 fix(mari): hint that a second Tab links a completed name
  • 54e3e0f fix(mari): widen the link hint's tap area and describe it to screen readers
  • dc0f589 fix(mari): keep the link hint whole and tidy its classes
  • 07adec7 fix(mari): say "Tab or tap to link" on touch laptops
  • 0ffea55 refactor(mari): pick the link hint's label in a helper

📊 Changes

4 files changed (+41 additions, -5 deletions)

View changed files

📝 docs/home/professor-mari.md (+1 -1)
📝 packages/client/src/components/chat/mari/MariComposer.tsx (+23 -2)
📝 packages/client/src/components/ui/InlineDraftOverlay.tsx (+14 -2)
📝 packages/client/src/localization/locales/en.json (+3 -0)

📄 Description

Important

Contributions target staging. Only SpicyMarinara may promote this repository's staging branch or a same-repository hotfix/* branch to main.
Outside and first-time contributors also require an approving review from SpicyMarinara.

Linked issue

Closes #8453

Why this change

  • In Professor Mari's composer, the first Tab completes a grey name and a second Tab links it. Once the name is completed the grey text is gone, so nothing says a second Tab links it.
  • Touch screens have no Tab, so they had no way to link a completed name at all. Follow-up to #8415.

What changed

  • Hint: while a second Tab would link (canLinkCompletion), a small muted pill shows where the ghost was: Tab to link, or Tap to link under (pointer: coarse), or Tab or tap to link on a touch laptop (any-pointer: coarse with a fine primary pointer).
  • Tap: clicking or tapping the pill links the name through the same ghost-link path as the second Tab. Its hit area reaches past the pill on every side.
  • InlineDraftOverlay: a new optional hint prop draws the tappable suffix as a pill instead of grey completion text. It only follows the draft, so the @ marks before it can't drift.
  • Screen readers: the overlay is aria-hidden, so while the hint shows the textarea carries it as aria-description.
  • Docs: the ghost-Tab line in docs/home/professor-mari.md now covers the hint and the touch flow. Three new en.json keys.

Validation

  • pnpm check passes locally
  • Container (Docker / Podman) built and ran without issue
  • Ran the app, clicked through the changes manually
  • Checked edge cases (light + dark mode, mobile viewport, empty states, error paths)
  • Above manual verification completed (describe below)
  • Read and followed CONTRIBUTING.md

Commands run by the agent: client eslint on the touched files, client tsc --noEmit, tsc -p scripts/regressions/tsconfig.client-lanes.json, and node ./scripts/run-regressions.mjs --filter composer (3/3), and pnpm localization:check (passes). A local CodeRabbit round raised two findings (hit area, screen readers); both are fixed in the second commit. Dottore's two nitpicks (duplicate ::after insets, linkHint typing) are fixed in the third, which also keeps the pill from splitting across lines.

Manual verification notes

  • To do: in Professor Mari, type Min, press Tab, and check that Tab to link shows. Tab again or click it, and check that @Mina Song is linked.
  • To do: on a phone or a touch viewport, tap the grey name, then Tap to link.

Docs and release impact

  • No docs changes needed
  • Updated docs (README / CONTRIBUTING / android/README) as needed
  • Translated docs on the docs-i18n branch updated to match, or a [docs-i18n] follow-up issue opened (see CONTRIBUTING.md § Translated documentation)
  • Version/release files updated (only if this PR includes a version bump)

docs/home/professor-mari.md changed by one line; the translated packs are tracked in #8457.

UI evidence (if applicable)

🤖 Generated with Claude Code


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/Pasta-Devs/Marinara-Engine/pull/8454 **Author:** [@ylli-selmani](https://github.com/ylli-selmani) **Created:** 10/29/2026 **Status:** ✅ Merged **Merged:** 10/29/2026 **Merged by:** [@ylli-selmani](https://github.com/ylli-selmani) **Base:** `staging` ← **Head:** `fix/mari-tab-link-hint` --- ### 📝 Commits (5) - [`11a09c3`](https://github.com/Pasta-Devs/Marinara-Engine/commit/11a09c34dff2d7ca9323d8c8c10160be8b1f8f80) fix(mari): hint that a second Tab links a completed name - [`54e3e0f`](https://github.com/Pasta-Devs/Marinara-Engine/commit/54e3e0ff1c0713649b74495d34a99ae51a290630) fix(mari): widen the link hint's tap area and describe it to screen readers - [`dc0f589`](https://github.com/Pasta-Devs/Marinara-Engine/commit/dc0f58975e05a663de32e6c18b1b2a6682289403) fix(mari): keep the link hint whole and tidy its classes - [`07adec7`](https://github.com/Pasta-Devs/Marinara-Engine/commit/07adec78ff1d54360478b29cd3a1955773b88a8a) fix(mari): say "Tab or tap to link" on touch laptops - [`0ffea55`](https://github.com/Pasta-Devs/Marinara-Engine/commit/0ffea55f06762a0abf42dd96bb0fb6d1023afd37) refactor(mari): pick the link hint's label in a helper ### 📊 Changes **4 files changed** (+41 additions, -5 deletions) <details> <summary>View changed files</summary> 📝 `docs/home/professor-mari.md` (+1 -1) 📝 `packages/client/src/components/chat/mari/MariComposer.tsx` (+23 -2) 📝 `packages/client/src/components/ui/InlineDraftOverlay.tsx` (+14 -2) 📝 `packages/client/src/localization/locales/en.json` (+3 -0) </details> ### 📄 Description > [!IMPORTANT] > Contributions target `staging`. Only `SpicyMarinara` may promote this repository's `staging` branch or a same-repository `hotfix/*` branch to `main`. > Outside and first-time contributors also require an approving review from `SpicyMarinara`. <!-- See CONTRIBUTING.md § Branches. --> ## Linked issue Closes #8453 ## Why this change - In Professor Mari's composer, the first Tab completes a grey name and a second Tab links it. Once the name is completed the grey text is gone, so nothing says a second Tab links it. - Touch screens have no Tab, so they had no way to link a completed name at all. Follow-up to #8415. ## What changed - **Hint:** while a second Tab would link (`canLinkCompletion`), a small muted pill shows where the ghost was: **Tab to link**, or **Tap to link** under `(pointer: coarse)`, or **Tab or tap to link** on a touch laptop (`any-pointer: coarse` with a fine primary pointer). - **Tap:** clicking or tapping the pill links the name through the same `ghost-link` path as the second Tab. Its hit area reaches past the pill on every side. - **`InlineDraftOverlay`:** a new optional `hint` prop draws the tappable suffix as a pill instead of grey completion text. It only follows the draft, so the `@` marks before it can't drift. - **Screen readers:** the overlay is `aria-hidden`, so while the hint shows the textarea carries it as `aria-description`. - **Docs:** the ghost-Tab line in `docs/home/professor-mari.md` now covers the hint and the touch flow. Three new `en.json` keys. ## Validation - [ ] `pnpm check` passes locally - [ ] Container (Docker / Podman) built and ran without issue - [ ] Ran the app, clicked through the changes manually - [ ] Checked edge cases (light + dark mode, mobile viewport, empty states, error paths) - [ ] Above manual verification completed (describe below) - [ ] Read and followed `CONTRIBUTING.md` Commands run by the agent: client `eslint` on the touched files, client `tsc --noEmit`, `tsc -p scripts/regressions/tsconfig.client-lanes.json`, and `node ./scripts/run-regressions.mjs --filter composer` (3/3), and `pnpm localization:check` (passes). A local CodeRabbit round raised two findings (hit area, screen readers); both are fixed in the second commit. Dottore's two nitpicks (duplicate `::after` insets, `linkHint` typing) are fixed in the third, which also keeps the pill from splitting across lines. ### Manual verification notes - To do: in Professor Mari, type `Min`, press Tab, and check that **Tab to link** shows. Tab again or click it, and check that `@Mina Song` is linked. - To do: on a phone or a touch viewport, tap the grey name, then **Tap to link**. ## Docs and release impact - [ ] No docs changes needed - [ ] Updated docs (README / CONTRIBUTING / android/README) as needed - [ ] Translated docs on the `docs-i18n` branch updated to match, or a `[docs-i18n]` follow-up issue opened (see CONTRIBUTING.md § Translated documentation) - [ ] Version/release files updated (only if this PR includes a version bump) `docs/home/professor-mari.md` changed by one line; the translated packs are tracked in #8457. ## UI evidence (if applicable) <!-- Ylli: optional for internal PRs --> 🤖 Generated with [Claude Code](https://claude.com/claude-code) --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-11-07 16:45:58 +07:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
Pasta-Devs/Marinara-Engine#8611
No description provided.