Skip to content

Conversation

@yet300
Copy link
Contributor

@yet300 yet300 commented Oct 25, 2025

Description

IMAGE 2025-10-25 13:42:59

ios
image

Checklist

  • I need add chat details sheet (as ios)

actions-user and others added 13 commits September 21, 2025 06:21
Replaced the right-hand sidebar with a Material 3 `ModalBottomSheet` for displaying mesh peers and channels. This modernizes the UI and improves usability.

- Renamed `SidebarComponents.kt` to `MeshPeerListSheet.kt`.
- Replaced the custom sidebar implementation with `ModalBottomSheet`.
- Added a floating top bar to the sheet that appears on scroll, displaying the title and a close button.
- Updated the row layouts for both channels and peers to use `Surface` for better visual grouping and selection state handling.
- Added a checkmark icon to indicate the currently selected channel or private chat peer.
- Improved styling for section headers, unread badges, and empty-state text.
- Removed the `SignalStrengthIndicator` as it was no longer used.
This commit removes the state management for the sidebar's visibility from `ChatViewModel` and `ChatState`.

The sidebar's visibility is now a purely UI-level concern and is no longer coupled with the ViewModel's logic. This change simplifies the ViewModel by removing unnecessary LiveData and related methods (`showSidebar`, `hideSidebar`). The back navigation handler has also been updated to remove the case for closing the sidebar.
@callebtc
Copy link
Collaborator

cool! is this PR already finished?

@yet300
Copy link
Contributor Author

yet300 commented Oct 28, 2025

cool! is this PR already finished?

Not really, on IOS, the chat details are also in sheet, I just have not yet looked at where else you can write in a personal message

@yet300
Copy link
Contributor Author

yet300 commented Oct 31, 2025

@callebtc done

screen-20251031-135121.mp4

@callebtc
Copy link
Collaborator

hi @yet300 thank you and sorry for the delay, I'm back now.

@callebtc
Copy link
Collaborator

@callebtc done

screen-20251031-135121.mp4

do we need the back button top left if there's a close button top right?

@yet300
Copy link
Contributor Author

yet300 commented Nov 19, 2025

No, but that's how it's done in the iOS version.

This commit refactors the `LocationNotesSheet` to more closely align with its iOS counterpart, improving both its appearance and user experience.

The layout has been updated to use a `Box` with aligned elements instead of a single `Column`, allowing for a floating input section at the bottom and a floating close button at the top right.

**Key Changes:**

-   **Floating Top Bar and Input:**
    -   The main content is now a `LazyColumn` that scrolls underneath a new floating top bar and a floating input section at the bottom.
    -   The top bar's background animates from transparent to semi-opaque as the user scrolls, providing a "blur" effect.

-   **iOS-Style Close Button:**
    -   The close button is moved from the header row to the top-right corner of the sheet, where it remains fixed.

-   **Structural Refinements:**
    -   Replaced the main `Column` with a `Box` to manage the layout of the scrollable content, top bar, and input section.
    -   Removed the `onClose` parameter from `LocationNotesHeader` as the close button is now managed separately.
    -   Added `statusBarsPadding` to the `ModalBottomSheet` to prevent content from rendering under the system status bar.
    -   Adjusted spacing and padding for better visual consistency.
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.

3 participants