Skip to content

refactor(mobile): remove unused side thread route parameter - #965

Merged
nixuuu merged 1 commit into
devfrom
refactor/mobile-side-thread-route
Nov 18, 2026
Merged

nixuuu merged 1 commit into
devfrom
refactor/mobile-side-thread-route

Conversation

@nixuuu

@nixuuu nixuuu commented Nov 18, 2026

Copy link
Copy Markdown
Member

Remove the unused draftSideThread route parameter and its effect, which triggered the React Hooks set-state-in-effect rule in Expo lint. The former drafts overview was the only caller. The New side thread menu item still opens the sheet directly.

Related: #704

Verification

  • Expo lint and oxlint passed on ThreadScreen.tsx.
  • Mobile typecheck and diff checks passed.
  • Repository-wide checks are left to CI.

Drop the route effect left over from the old drafts overview. The thread action opens the sheet directly.

Related: #704
@nixuuu
nixuuu enabled auto-merge (squash) November 18, 2026 13:05
@nixuuu
nixuuu merged commit 1a5b5bb into dev Nov 18, 2026
15 checks passed
@nixuuu
nixuuu deleted the refactor/mobile-side-thread-route branch November 18, 2026 13:12
nixuuu added a commit that referenced this pull request Nov 18, 2026
Archived threads on mobile now show an archive notice and an
**Unarchive** button in the composer slot. Restoring the thread brings
the composer back in place. **Unarchive with parent** uses the existing
lifecycle action to restore threads archived with their parent. The
conversation history stays visible.

## Verification

- Android emulator with a paired test gateway. In light mode at 450 dp,
verified that an archived thread shows its history and restores the
composer in place. In dark mode at about 327 dp, verified that
**Unarchive with parent** restores both threads and re-enables sending
after typing.
- Mobile typecheck, focused oxlint, and `git diff --check` passed. Expo
lint passed for the archive card and timeline. `ThreadScreen.tsx` has
the existing `set-state-in-effect` finding tracked in #965.
- All six lifecycle cases passed via `bun run check:tmp
./tests/integration/sidebar-lifecycle.test.ts`. Repository-wide checks
are left to CI.

## Copy audit

- Disabled composer → **This thread is archived** with one action,
**Unarchive** or **Unarchive with parent**. The empty-history prompt to
send a first message is hidden while the thread is archived.
- The heading and action labels use existing thread vocabulary, sentence
case, and action verbs. The controls have accessible labels and work
independently of the icon or color. No errors or glossary terms were
added.
- Reviewed standard and narrow native widths with short and long thread
titles. The longer action wraps onto its own row at the narrow width.
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