feat(mobile): mobile app navigation rework and beta-feedback closeout (#2561)

Navigation model rebuilt around two full-width drawers and a minimal
header (sessions / title-switcher / usage ring / workspace):

- Left sessions drawer: cross-project tree with live status indicators,
  swipe actions on sessions (rename/archive/delete) and on group headers
  (project edit / two-step close, worktree delete), reorder-only edit
  mode with collapsible project cards and draggable worktrees, app-level
  footer (connected instance, settings, pending web update).
- Right workspace drawer: Changes / Files / Terminal / Notes / MCP as
  pill tabs (inactive tabs icon-only); panes stay mounted once visited.
  The full desktop file editor serves the Files tab; read/skill tool taps
  in chat open the file there at the requested line.
- Header session switcher on title tap: 10 cross-project recents with
  live busy/attention indicators and project · branch metadata; the
  usage ring opens a metadata overlay with an explicit loading state.
- The overflow menu is gone on phones (its destinations moved into the
  drawers); iPad keeps it until its dedicated layout pass.

Correctness and continuity:

- /auth/session answers bearer-first, so a stale WebView cookie can no
  longer mask a revoked device token; cold launches classify failures
  fast and land on an explicit connect screen.
- Authoritative session snapshots raise frozen ordering baselines and
  stale live ranks — recents stay truthful after the app slept.
- Cold launches reopen the last active session per instance (persisted
  pointer, confirmed against a sessions snapshot; a user-opened draft
  clears it), with a logo hold instead of a draft flash.

Also: collapsed pill composer gains the stop control; chat tool rows
share one 36px rhythm; Task subtool rows truncate; larger bottom safe
area so the composer clears big-screen corner radii; Capacitor build
hides About/Update (store updates apply there); widgets link to the
sessions drawer with a list icon; MobileApp split into focused modules;
five mobile-surface detectors unified; translucent borders normalized to
70%; all new strings translated across the 10 locales.

iPad and foldable layouts are intentionally untouched - separate next version PR.
This commit is contained in:
Bohdan Triapitsyn
2026-08-01 21:16:36 +03:00
committed by GitHub
parent ea8cc5d7b0
commit 86ef96302d
69 changed files with 5006 additions and 4291 deletions
+11 -19
View File
@@ -54,6 +54,9 @@ export const dict: Record<I18nKey, string> = {
'mobile.connect.unlockButton': 'Odblokuj i połącz',
'mobile.connect.cancelPassword': 'Użyj innego serwera',
'mobile.connect.connecting': 'Łączenie...',
'mobile.connect.notice.unreachable': 'Nie udało się połączyć z {label}. Sprawdź, czy serwer działa.',
'mobile.connect.notice.authExpired': 'Dostęp do {label} wygasł lub został cofnięty. Zaloguj się ponownie.',
'mobile.connect.recovery.description': 'Nie udało się połączyć z zapisanym serwerem. Sprawdź, czy działa, albo wybierz inną instancję.',
'mobile.connect.scanQr': 'Skanuj kod QR',
'mobile.connect.welcome.scanHint': 'Na komputerze otwórz «Dodaj urządzenie», aby wyświetlić kod QR, i zeskanuj go tutaj.',
'mobile.connect.advanced': 'Zaawansowane',
@@ -90,9 +93,9 @@ export const dict: Record<I18nKey, string> = {
'mobile.nav.settings': 'Ustawienia',
'mobile.surface.closeAria': 'Zamknij',
'mobile.header.openMenuAria': 'Otwórz menu',
'mobile.header.openWorkspaceAria': 'Otwórz panel roboczy',
'mobile.header.openMetadataAria': 'Otwórz metadane sesji',
'mobile.header.metadata.context': 'Kontekst',
'mobile.header.metadata.branch': 'Gałąź',
'mobile.header.metadata.usage': 'Użycie',
'mobile.menu.titleAria': 'Narzędzia obszaru roboczego',
'mobile.menu.files': 'Pliki',
@@ -124,17 +127,19 @@ export const dict: Record<I18nKey, string> = {
'mobile.sessions.newChat': 'Nowy czat',
'mobile.sessions.editOrder': 'Zmień kolejność projektów',
'mobile.sessions.doneEditing': 'Gotowe',
'mobile.sessions.editOrderHint': 'Przeciągnij uchwyt lub użyj strzałek, aby zmienić kolejność. Naciśnij znacznik, aby zakończyć.',
'mobile.sessions.editOrderHint': 'Przeciągnij uchwyt, aby zmienić kolejność projektów. Stuknij projekt, aby pokazać jego worktree i również je przeciągać. Stuknij znacznik, aby zakończyć.',
'mobile.sessions.dragHandleAria': 'Przeciągnij {label}, aby zmienić kolejność',
'mobile.sessions.moveUpAria': 'Przenieś {label} w górę',
'mobile.sessions.moveDownAria': 'Przenieś {label} w dół',
'mobile.sessions.removeProjectAria': 'Usuń {label}',
'mobile.sessions.cancelRemoveProjectAria': 'Anuluj usuwanie {label}',
'mobile.sessions.confirmRemoveProject': 'Zamknij',
'mobile.sessions.confirmRemoveProjectAria': 'Potwierdź usunięcie {label}',
'mobile.sessions.toast.projectRemoved': 'Usunięto {label}',
'mobile.sessions.archiveSessionAria': 'Zarchiwizuj {title}',
'mobile.sessions.cancelArchiveAria': 'Anuluj archiwizację {title}',
'mobile.sessions.renameSessionAria': 'Zmień nazwę {title}',
'mobile.sessions.renameError': 'Nie udało się zmienić nazwy sesji',
'mobile.sessions.deleteSessionAria': 'Usuń {title}',
'mobile.sessions.confirmDeleteSessionAria': 'Potwierdź usunięcie {title}',
'mobile.sessions.editProjectAria': 'Edytuj {label}',
'mobile.projectEdit.worktreesTitle': 'Worktree',
'mobile.projectEdit.worktreesEmpty': 'Ten projekt nie ma jeszcze worktree.',
@@ -181,6 +186,8 @@ export const dict: Record<I18nKey, string> = {
'mobile.files.copyPathAria': 'Kopiuj ścieżkę pliku',
'mobile.files.copyContent': 'Kopiuj zawartość',
'mobile.files.copyContentAria': 'Kopiuj zawartość pliku',
'mobile.files.editAria': 'Edytuj plik',
'mobile.files.doneEditingAria': 'Zakończ edycję',
'mobile.files.toast.pathCopied': 'Ścieżka skopiowana',
'mobile.files.toast.contentCopied': 'Zawartość skopiowana',
'mobile.files.toast.copyFailed': 'Kopiowanie nie powiodło się',
@@ -1238,21 +1245,6 @@ export const dict: Record<I18nKey, string> = {
'chat.reasoningTrace.expandAria': 'Rozwiń ślad rozumowania',
'chat.reasoningTrace.collapseAria': 'Zwiń ślad rozumowania',
'chat.reasoningTrace.thought': 'Przemyślał',
'chat.mobileStatus.editProjects.empty': 'Brak projektów do edycji',
'chat.mobileStatus.editProjects.footer': 'Przeciągnij elementy, aby zmienić kolejność, lub użyj strzałek do przesuwania. Dotknij „edytuj”, aby zmienić szczegóły.',
'chat.mobileStatus.editProjects.title': 'Edytuj projekty',
'chat.mobileStatus.new': 'Nowy',
'chat.mobileStatus.noSessionsInProject': 'Brak sesji w tym projekcie',
'chat.mobileStatus.projects.addAria': 'Dodaj projekt',
'chat.mobileStatus.projects.cancel': 'Anuluj',
'chat.mobileStatus.projects.empty': 'Brak projektów',
'chat.mobileStatus.projects.remove': 'Usuń',
'chat.mobileStatus.projects.removeDescriptionPrefix': 'Czy na pewno chcesz usunąć',
'chat.mobileStatus.projects.removeTitle': 'Usuń projekt',
'chat.mobileStatus.swipeHint': '← Przesuń tutaj, aby otworzyć paski boczne →',
'chat.mobileStatus.toast.addProjectFailed': 'Nie udało się dodać projektu',
'chat.mobileStatus.toast.selectDirectoryFailed': 'Nie udało się wybrać katalogu',
'chat.mobileStatus.toast.selectValidDirectory': 'Wybierz prawidłowy katalog.',
'chat.modelControls.addNewProvider': 'Dodaj nowego dostawcę',
'chat.modelControls.addToFavorites': 'Dodaj do ulubionych',
'chat.modelControls.bash': 'Bash',