Skip to content

Bugfix/network UI sprint - #10

Merged
Yussefgafer merged 10 commits into
mainfrom
bugfix/network-ui-sprint
Jul 1, 2026
Merged

Bugfix/network UI sprint#10
Yussefgafer merged 10 commits into
mainfrom
bugfix/network-ui-sprint

Conversation

@Yussefgafer

Copy link
Copy Markdown
Owner

No description provided.

Massive UI refactor following Ponytail principles — deleted MD3ETheme.kt,
Font.kt, simplified domain enums (ShapeStyle.SQUARE only),
replaced MorphingAvatar→MeshifyAvatar, AnimatedMorphingFAB→FAB,
removed PremiumNoiseTexture, all shapes RoundedCornerShape(0.dp),
cleaned SettingsScreen, SettingsViewModel, SettingsRepository, etc.
- Replaced all 0.dp shapes with proper MD3 values (8-16dp)
- Deleted OnboardingComponents.kt (custom SquircleShape math, animated blobs)
- Replaced Canvas illustrations with Material Icons on OnboardingPage
- Wrapped OnboardingRoute in Box to fix off-screen permission cards
- Removed broken "View Details" toggle from PermissionSummaryDialog
- Replaced all CircleShape with MeshifyDesignSystem.Shapes references
- Simplified PrePermissionDialog, WelcomeUiState, WelcomeViewModel
- Remove duplicate LanguageToggle from WelcomePage (was also in WelcomeScreen dropdown)
- Strip dead ViewModel methods (startPermissionFlow, showSummary, dismissSummary)
- Delete orphaned string resources (ob_summary_view_details, ob_summary_hide_details)
- Remove duplicate CardMedium shape (12.dp, identical to Card)
- Remove unused DialogShapes object (replaced by Shapes.Dialog)
- Strip useless AnimatedVisibility wrappers (always visible)
- Rename PrePermissionDialog.kt -> SkipConfirmationDialog.kt
- Delete outdated README files
- Remove test dependencies (no tests in module)
- Add MissingComposable() fallback for unmounted nav routes
- Fix teal seed color inconsistency (#008080 -> #006D68)
- Replace CardMedium -> Card across all modules
- Migrate DialogShapes.Default -> Shapes.Dialog
- Add AGENTS.md and GEMINI.md to .gitignore
Sub-ViewModels extracted from ChatViewModel but never used -- ChatScreen
continued with the monolithic ViewModel. Remove alongside State classes
and tests that only exercised dead code. Strip now-unused test deps.

-2617 lines across 11 files.
Remove the manual pagination system (ArrayDeque, currentPage, pageSize, isAllMessagesLoaded, paginationMutex, loadMoreMessages) and the scroll-to-top trigger LaunchedEffect. Room Flow (getMessages + distinctUntilChanged) is now the single source of truth for chat messages.

Also removes unused imports (ChatEntity, UUID) and stale UiState fields (hasMoreMessages, isLoadingMore).
Remove unused isPeerTyping field from ChatUiState.

Drop isLoadingMore parameter from MessageList component along with
the gated loading-spinner block and its CircularProgressIndicator import.

Note: AGENT.md changelog update mentioned in task but had no
unstaged changes — likely applied in prior commit.
Apply stored language from DataStore before Compose rendering so localized strings display correctly on cold start. Wire onboarding language picker to settingsRepository and recreate Activity on change. Add Activity recreation after language change in SettingsScreen to match the same pattern.
The importBackup method had no remaining callers across the codebase. Remove the interface declaration in ISettingsRepository, the DataStore-backed implementation in SettingsRepository, and the ViewModel wrapper in SettingsViewModel. This is dead code elimination — no functional change.
Bugs squashed across network, data, and UI layers:
- KeepAliveManager: read PONG after PING to detect half-open connections
- BlePayloadSerializer: fix timeout check ordering (was never triggering)
- ConnectionPool: drainPermits() for safe semaphore reset on shutdown
- TransportManager: filter MULTI_PATH by online peers only
- LanTransportImpl: respond to PING with PONG, skip wasteful RSSI sockets
- ChatRepositoryImpl/PendingMessageRepository: stream reads via 8KB buffers
- ProgressFileReader: guard Long-to-Int overflow for files >2GB
- core:ui: decouple from core:data; introduce UiModel types
- core:domain: remove unused androidx.graphics.shapes dependency
- 7+ screens: collectAsState -> collectAsStateWithLifecycle
- 8+ components: add contentDescriptions for TalkBack accessibility
- ChatViewModel: cap transportUsed at 100 entries, clean up on delete
@Yussefgafer
Yussefgafer merged commit e4363f7 into main Jul 1, 2026
1 check failed
@Yussefgafer
Yussefgafer deleted the bugfix/network-ui-sprint branch July 1, 2026 15:48
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