Skip to content

Refactor/UI cleanup - #9

Merged
Yussefgafer merged 9 commits into
mainfrom
refactor/ui-cleanup
Jul 1, 2026
Merged

Refactor/UI cleanup#9
Yussefgafer merged 9 commits into
mainfrom
refactor/ui-cleanup

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.
@Yussefgafer
Yussefgafer merged commit c9eb4f5 into main Jul 1, 2026
@Yussefgafer
Yussefgafer deleted the refactor/ui-cleanup branch July 1, 2026 15:45
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