Repository navigation
feat(mobile): pin workspaces above the unpinned groups - #674
Merged
Merged
Conversation
The workspace tab could only pin conversations. A workspace group is the same kind of ordering shortcut, so it is now pinnable from its group menu (pin marker on the header, unpin to restore): a pinned group sits below the pinned conversations and above every unpinned group, keeping the desktop's recency order inside each half. The pin is durable state rather than phone-local view state: the desktop store gains `workspaces.pinned` (versioned migration `v1.1.9-workspaces-pinned`, plus `pin_workspace` and `set_workspace_pinned`), and it reaches the phone in the existing versioned workspace snapshot, so a pin survives a re-pair. Pinning leaves `last_opened_at`/`updated_at` alone, so unpinning drops the group back to its recency position instead of jumping it to the front. The desktop rail and the new-conversation picker keep reading the store's recency order for now (ordering groups by the flag there is a follow-up).
huichen
enabled auto-merge (squash)
September 16, 2026 16:09
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
The mobile workspace tab can now pin a workspace group, not just a conversation.
⋯) gains pin / unpin; a pinned group's header shows the same pin marker a pinned conversation does.workspaces.pinned(pin_workspace+ theset_workspace_pinnedremote command, published to the phone in the existing versioned workspace snapshot), so it survives a re-pair and re-install.updated_at/last_opened_at(same rule aspin_thread), so unpinning drops the group back to its recency position instead of jumping it to the front.Migration
v1.1.9-workspaces-pinnedaddsALTER TABLE workspaces ADD COLUMN pinned INTEGER NOT NULL DEFAULT 0(plus the column inSCHEMAfor fresh installs), with an upgrade + fresh-database test instore::db::tests.Scope
The desktop rail and the new-conversation picker keep the store's recency order for now, so nothing changes on the desktop until ordering groups by the flag is added there too — the column and command are already in place for that follow-up.
Tests
desktop/src-tauri):cargo fmt --check,cargo clippy --all-targets -- -D warnings,cargo teston the pinned 1.97.0 toolchain — 1268 lib + 1 bin + 5 integration tests pass; new coverage for the migration,pin_workspace, and the remote command (missing id / success / unknown workspace).tsc --noEmit,eslint,jest --runInBand(105 suites / 1475 tests) with new cases for the catalog order, the group menu, and the pin command.