Impl/account management#1169
Merged
Merged
Conversation
- **UI & Navigation**:
- Add `AccountsScreen` to manage linked external services (Telegram, Netease, and Google Drive).
- Implement a collapsible top bar with expressive hero section showing active/available account statistics.
- Add a standalone "Accounts" navigation item to the `SettingsScreen` using a new `ExpressiveNavigationItem` component.
- Register `Screen.Accounts` route in `AppNavigation` and hide the bottom navigation bar when active.
- **ViewModel**:
- Implement `AccountsViewModel` to reactively track connection status and synced content counts (channels, playlists, folders) for all external services.
- Add logout logic that handles service-specific cleanup (e.g., clearing Telegram memory cache and database records).
- **Data**:
- Add `logout()` to `TelegramRepository` to expose the underlying client manager's logout capability.
- **Components**:
- Create `ConnectedAccountCard` and `EmptyAccountsCard` with service-specific color palettes and status indicators.
- Implement smooth corner shapes and spring animations for a more expressive UI.
- **UI Refinements**:
- Update `TelegramLoginActivity` top bar action button color to `surfaceContainerLow`.
- Change the Telegram icon resource from `rounded_send_24` to a specific `telegram` drawable.
- Update phone input field to use `Icons.Rounded.Dialpad` as the leading icon and adjust the unfocused container color to `surfaceContainerLowest`.
- **Layout Adjustments**:
- Refactor `TelegramStepHeader` from a vertical `Column` to a horizontal `Row` layout.
- Align title and subtitle text to the start (left) and adjust spacing/typography for a more compact header appearance.
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.
No description provided.