Repository navigation
feat(threads): add mobile sorting and long-press ordering - #626
Merged
Merged
Conversation
nixuuu
force-pushed
the
feat/thread-sort-mobile
branch
from
November 13, 2026 09:56
2ba671b to
815cb83
Compare
nixuuu
force-pushed
the
feat/thread-sort-mobile
branch
from
November 13, 2026 10:08
815cb83 to
3683760
Compare
nixuuu
force-pushed
the
feat/thread-sort-mobile
branch
from
November 13, 2026 10:12
3683760 to
e1cecff
Compare
nixuuu
marked this pull request as ready for review
November 13, 2026 10:33
This was referenced Nov 13, 2026
nixuuu
added a commit
that referenced
this pull request
Nov 13, 2026
Selecting Custom thread ordering kept a Reanimated frame callback registered even when no gesture was active. Register frames only during a drag, stop on finalization/suspension/unmount, and check the active row before accepting a queued start. Fixes: #626 | Instrumented path | Before | After | | --- | ---: | ---: | | Custom ordering, idle UI callbacks over 120 simulated seconds at 60 Hz | 7,200 | 0 | | One-second drag, then 120 seconds idle | — | 60 drag callbacks, 0 idle callbacks | Method: temporary instrumentation outside the repository executes the production hook with mocked native bindings and a simulated frame clock. Counts show callback registration, not native CPU, FPS, React renders, hardware wakeups or battery use. The loop already runs on the UI thread; this change removes its idle registration. Native profiling is unavailable: T3 reports `Could not communicate with device support. Try refreshing devices.` Refreshing once did not restore access. The installed Android app was in `DevLauncherErrorActivity`, so its CPU/frame data cannot serve as a Canopy baseline. All five requested scenarios (Working list, streaming thread, idle thread, PR panel and two-minute idle list) still lack valid iOS/Android CPU, JS/UI FPS, renders/s, wakeups and measured network rates. This PR does not claim to resolve foreground heating. Validation uses `nice -n 10`: install, gen:check, full typecheck, repository lint, format:check, web build, both native JS/Hermes exports (approximately 12 MB each) and the temporary drag/idle probe passed on this independent branch. Full check:tmp also passed on the combined changes: 2,749 passed, 166 skipped, zero failures, and nothing left in the checked temp directory. All CI checks passed at this head. Expo ESLint retains pre-existing findings with no new source file/rule errors. Native visual verification remains blocked by device support. No UI tests, native dependencies, EAS builds, release builds or publication. UI copy is unchanged. This is a JavaScript-only change. Both independent branches retain the native fingerprints under the same local stable config: - iOS: `74705db3a68907bc28379bb9b1080a227bc0755b` - Android: `7d38be8f5c9bf842d62060c75820a206f99c87e3`
nixuuu
added a commit
that referenced
this pull request
Nov 13, 2026
## Projekt workspace'u — zaakceptowany układ v2 Podgląd plików przechodzi z modala do zakładek jednego wątku. Sygnet projektu, skracany tytuł i karty dzielą rząd nagłówka, z aktywną kartą zawsze widoczną i przełącznikiem overflow. Prawy rail obsługuje jeden minimalny moduł. Bez modułu podsumowanie jest dokowane i widoczne; z modułem jest zamkniętą domyślnie kartą pływającą. Na wąskich ekranach obie powierzchnie używają arkuszy. Użytkownik zaakceptował układ v2 i udzielił jawnej zgody na implementację. Przyjęte decyzje: jeden zastępowalny czysty preview, utrwalany przez Edit/Keep tab/dwuklik, zakres cwd/worktree wątku i mobilna edycja natywna bez kolorów podczas pisania (kolory w viewerze i Preview changes). Usunięto sekcję otwartych decyzji. Dokument uwzględnia jeden przycisk menu wiersza (#608), zachowanie treści PR przy odświeżaniu (#611), bounded warming/cache transkryptu (#622/#623/#629), niezależne sortowanie sidebara (#617/#619/#626), kompaktowy tekst stanów preview (#634), poprawne stany ChoiceControl (#637), kolejkę kontynuacji (#630) i podsumowania jej wierszy (#633). Nie dodaje pełnych snapshotów ani prefetch plików podczas warming. Siedem kompletnych warstw będzie osobnym stosem z podstawą dev. Wszystkie PR implementacyjne pozostaną draftami do ukończenia i weryfikacji całości oraz wspólnego scalenia przez maintenera. Migracje muszą zachować monotoniczność względem aktualnego dev. Dokumentacyjny PR po zielonym CI jest gotowy do scalenia przez maintenera. ## Weryfikacja i ograniczenia - Rebase na dev `1626a3e6b05494e7aec77942bd818950468a3b58` bez konfliktów. - `nice -n 10 bun run format` i `nice -n 10 bun run format:check` przeszły. Konfiguracja pomija Markdown; dokument sprawdzono ręcznie. `git diff --check` bez błędów po usunięciu pustej linii końcowej. - Brak zmian kodu aplikacji i kontraktów; testy wykonania oraz pomiary budżetów należą do stosu implementacyjnego. - Samodzielna makieta v2 poza repozytorium, 32 435 bajtów, przezroczyste html/body, trzy stany × trzy szerokości × dwa motywy. Poprzednio wyrenderowana i obejrzana bez błędów konsoli. ## Copy audit (§8) Brak zmian produkcyjnych etykiet. Projekt zachowuje `Thread`, `Keep tab`, `Thread details`, `Open in tab`, `Collapse panel` / `Show panel` oraz dostępne nazwy obu kontekstów `+`. Zachowuje jeden przycisk menu wiersza i kompaktowy tekst statusów pliku. Krótkie i długie etykiety są pokazane w makiecie; rzeczywiste powierzchnie i stany będą audytowane w każdej warstwie UI.
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.
Adds device-local Created, Last activity and Custom sorting to Thread options. Custom supports long-press dragging within sections/projects, pinning at the top, and confirmed unpinning. Thread actions adds Move up/down/to top/to bottom; accessibility increment/decrement actions move rows without dragging.
The gesture, drop indicator, ghost and edge scrolling use the existing gesture-handler/Reanimated stack on the UI thread. Only mounted FlatList cells report geometry; a shared detector survives source-cell virtualization. Pickup is limited to the root row so a nested side thread cannot lift its parent, and a drop outside the sidebar is canceled. A drop writes one thread key and applies the returned metadata without refetching the list. Existing swipe archive remains available. No native dependency or haptics module is added.
Validation (commands run with
nice): install, gen:check, full typecheck, lint, format:check and web build passed. Final native JS exports after review fixes succeeded for both iOS and Android. Before/after native fingerprints match (iOS 6ddec9ef559ee0095ac33e94ff9418a942053b17; Android 5f6eae3ab278f1cd543e9ed763f923a319b65ec9). Expo Doctor reports an existing SDK dependency-version mismatch (13 packages); this change does not update dependencies.CI passed on all three rebased heads, including all test shards. All ten files that failed in earlier local runs passed when rerun individually with the default timeouts: 85/85, with clean private temp directories. The failures were in unchanged linked-computer/bot, busy-directory and timing-sensitive script tests; the bottom PR records each file and the comparison with original base
38214a54c. No test, timeout or production-code change was needed. The full local suite was not rerun after this investigation.On-device gesture verification is intentionally deferred at the maintainer's request: mobile interaction checks will be performed on nightly builds. No native interaction result is claimed here; the iOS/Android JS exports and unchanged native fingerprints are the available native-build evidence. This PR remains a draft for the maintainer to merge with the stack.
Copy audit (docs/copy.md §8): “Filter projects” → “Thread options” matches the added choices. Mode choices are sentence case and use the same terms as web; action labels start with Move/Pin/Unpin. Unpin confirmation repeats the action and explains where the thread remains. Failure text states what failed and offers retry. Instructions identify holding, section boundaries and the pinned target in words; the selected mode has a Selected badge. No new empty state, internal error detail, repeated fact or decorative sentence. Native short/long title layout inspection remains unverified because device support is unavailable; web counterparts were checked at desktop, narrow and phone widths in both themes.