Skip to content

docs(manual): match RESP-F23 and RESP-F24 to the phone Home - #4175

Merged
yannickmonney merged 1 commit into
mainfrom
docs/manual-responsive-phone-home-scope
Oct 4, 2026
Merged

yannickmonney merged 1 commit into
mainfrom
docs/manual-responsive-phone-home-scope

Conversation

@yannickmonney

@yannickmonney yannickmonney commented Oct 3, 2026 •

Copy link
Copy Markdown
Contributor

Summary

Two boxes in the platform's manual responsive suite described a phone Home the app doesn't have (#4054). A round that followed them failed two correct behaviours, or sent an author to "fix" the app.

  • RESP-F23 expected a narrowed empty view to read Nothing in this project yet (home.scope.emptyTitle), a key no catalog holds. It now names both sentences and their keys: No chats in this project (home.scope.emptyChatsTitle) and No open tasks assigned to you in this project (home.scope.emptyTasksTitle). The box's only project held both a chat and a task, so neither sentence could show. The setup now adds a second project that holds neither.
  • RESP-F24 said a project's menu offers "Pin project and nothing else". That contradicted RESP-F23, docs/en/platform/index.md:51 and home-projects.tsx (scope). It now reads: "offers Open project and Pin project, and no New chat".
  • reference/pins.md has a docs row for each box.
  • home-panel.test.tsx: two phone tests are sharpened so the pins rows name a test that holds each box.
    • Before, the menu test checked only that Open project was present. It now asserts the exact items: ['Open project', 'Pin project'].
    • Before, the empty-view test covered only Chats. It now covers Tasks too, with the narrowing carried over.

Closes #4054

Checklist

  • bun run check passes (format, lint, typecheck, all tests). Not run whole here: the sandbox may not. CI runs it on this PR. Locally I ran: oxfmt check, oxlint --type-aware and a scoped tsc on the changed test file; that file's 33 tests; lint:manual; lint:conflicts on the three files.
  • bun run lint:sast passes (Opengrep). Not run locally; CI's SAST check covers it. The change is Markdown and one test file.
  • Translations: N/A. No user-visible string changes, and the manual layer is English only.
  • Docs: N/A. No user-visible change. docs/en/platform/index.md already says what the boxes now say.
  • README files: N/A.

Test plan

Failing before, on main at 7063f9974 (from services/platform):

$ bun tests/manual/scripts/check-guide.ts tests/manual/suites/responsive.md
FAIL tests/manual/suites/responsive.md (1 findings)
  - MISSING i18n `home.scope.emptyTitle`
exit=1

Passing after, at this head:

$ bun tests/manual/scripts/check-guide.ts tests/manual/suites/responsive.md
OK   tests/manual/suites/responsive.md
exit=0
$ bun tests/manual/scripts/check-guide.ts tests/manual/suites/*.md   # 21 × OK, exit=0
$ bun run lint:manual
ok    layout
ok    suites
ok    runs
ok    references
      5 tree(s), 1438 boxes: …
$ bunx vitest --run --config vitest.ui.config.ts app/features/home/components/home-panel.test.tsx
 Test Files  1 passed (1)
      Tests  33 passed (33)

Locally, vitest ran through an untracked wrapper of vitest.ui.config.ts. It changes two settings only: server.fs.strict: false and maxWorkers: 1. The fs setting is needed because this checkout's node_modules links into another worktree's install. CI runs the real config.

check-guide.ts on reference/pins.md reports the same five findings as on main, all of them pre-existing; this change adds none.

The sharpened tests bite. I broke the app on purpose, in two places (local only, then reverted):

  • the phone menu also offers New chat;
  • a narrowed, empty Tasks view shows the Chats sentence.

Then I ran the new test file and main's version of it side by side:

× offers Open project and Pin project in a project menu without showing redundant scope bars
  AssertionError: expected [ 'New chat', 'Open project', …(1) ] to deeply equal [ 'Open project', 'Pin project' ]
× says which view of the project is empty instead of "nothing yet"
  Unable to find an element with the text: No open tasks assigned to you in this project.
Test Files  1 failed | 1 passed (2)
     Tests  2 failed | 64 passed (66)

main's copy passed all 33 of its tests against the broken app.

Finding → test map

Finding Held by
RESP-F23 cites the missing key home.scope.emptyTitle check-guide.ts: FAIL before, OK after. home-panel.test.tsx › says which view of the project is empty instead of "nothing yet", which now covers both sentences.
RESP-F23's empty view couldn't be reached from the box's own setup Box text: a second project that holds neither. Its pins.md row says why.
RESP-F24 says "Pin project and nothing else" home-panel.test.tsx › offers Open project and Pin project in a project menu without showing redundant scope bars, with the exact items. Its pins.md row keeps the old wording from coming back.

Concept sweep

  • Accessibility, security and migrations: none touched.
  • Locales: there is no user-visible string, and the manual layer is English only.
  • Docs: docs/en/platform/index.md:39,51 already describes both menus: New chat + Pin project on a computer, Open project + Pin project on a phone.

Left open, not in this PR

RESP-F23 and docs/en/platform/index.md:52 both say that All shows every item without narrowing. The app narrows All too, because one scope is stored per organization and home-panel.tsx deliberately applies it to All, Chats and Tasks. A component probe narrowed to the project in Chats, then chose All. All then listed only that project's chat and task, and the row stayed pressed. Whether the app or the docs should change is a product decision, so I left that sentence unchanged and raised it on the task.

RESP-F23 expected a narrowed empty view to read "Nothing in this project
yet" (home.scope.emptyTitle), a key no catalog holds; the app names the
view instead (home.scope.emptyChatsTitle, home.scope.emptyTasksTitle).
Its setup now adds a project that holds neither, the only way to see them.

RESP-F24 said a project's menu offers Pin project and nothing else,
against RESP-F23 and docs/en/platform/index.md: on a phone the menu
offers Open project and Pin project, and no New chat.

Both boxes get a docs row in reference/pins.md. The phone tests in
home-panel.test.tsx now hold the menu's exact items and both empty
sentences, so the rows name a test that holds each box.

Closes #4054
@yannickmonney

Copy link
Copy Markdown
Contributor Author

Independent review of PR #4175 at c51652998539c47661a9b0f0d544195d6bbec89f: the edits are accepted. One false sentence from before this PR remains in RESP-F23, and the open question TALE-445-Q1 covers it.

Runs (mine)

Verified from source

  • The strings match exactly:
    • en.yml:4372 "No chats in this project"
    • en.yml:4374 "No open tasks assigned to you in this project"
    • en.yml:4371 "Open project"
    • en.yml:1023 "Pin project"
  • The empty project is reachable. Projects lists every visible project, empty or not (home-panel.tsx:723, home-projects.tsx:337-345).
  • The phone menu shows Open project plus Pin or Unpin. New chat appears only when no scope is set (home-projects.tsx:80-120).
  • The tightened tests are strict. The menu labels' textContent is exactly the label, and toEqual fails on any extra item.
  • Counts agree: box ids are unique, 34 boxes in responsive.md and readme.md, and the pins.md rows follow the docs convention.

Follow-ups (none block this PR)

  1. MEDIUM, from before this PR (TALE-445-Q1): responsive.md:197 says "All and Inbox show all items without narrowing", but the app narrows All (home-panel.tsx:411-412, viewIncludesScope = view !== 'inbox').
    • With the new empty project, narrowing and then choosing All shows an empty All that reads "No chats in this project". A tester would then fail a correct app.
    • docs/en/platform/index.md:52 has the same sentence.
    • Either the app or both sentences should change. That is a product decision, which is why it's routed to the manager.
  2. LOW: "choose the first project" (:190) is ambiguous. Pinned projects sort first, so the top row may be the empty project. Naming the two projects would also make "the project row's … menu" (:196) and "Delete the project" (:198) unambiguous.
  3. LOW: RESP-F24 offers Pin project only for an unpinned project, since a pinned one shows Unpin project. The box doesn't say the project is unpinned.
  4. INFO:
    • Tasks also lists in_review tasks where you are the reviewer (use-home-data.ts:162-173), so "holds neither" should rule those out too.
    • pins.md:34, from before this PR, is a blank line inside the table. On GitHub every later row, including the two new ones, renders as plain text.

Merge: squash with --match-head-commit through my gate, which dry-runs first.

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.

docs(manual): RESP-F23 and RESP-F24 describe a phone Home the app doesn't have

1 participant