Skip to content

New sidebar#21

Merged
Linux123123 merged 7 commits intomainfrom
feat/sidebar
Apr 3, 2026
Merged

New sidebar#21
Linux123123 merged 7 commits intomainfrom
feat/sidebar

Conversation

@kvietelaitis
Copy link
Copy Markdown
Contributor

No description provided.

Copilot AI review requested due to automatic review settings April 2, 2026 21:39
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR introduces a new navigation drawer (sidebar) on the Home screen and wires it into Home’s event/effect flow, alongside some PIN-entry handling optimizations.

Changes:

  • Added a Home-specific ModalNavigationDrawer (HomeDrawer) with a new DrawerMenuItem model and click handling in HomeViewModel.
  • Refactored HomeScreen layout to wrap content in the new drawer and changed the top-bar menu behavior to open it.
  • Reduced per-keystroke work in PinViewModel / BiometricViewModel by deferring validation/authorization until PIN entry is complete.

Reviewed changes

Copilot reviewed 8 out of 8 changed files in this pull request and generated 6 comments.

Show a summary per file
File Description
app/src/main/res/values/strings.xml Adds a new Home string resource intended for the “show all transactions” CTA.
app/src/main/java/com/k689/identid/ui/dashboard/home/HomeViewModel.kt Adds drawer item click event and navigation handling (e.g., Change PIN flow).
app/src/main/java/com/k689/identid/ui/dashboard/home/HomeScreen.kt Wraps Home UI in HomeDrawer, updates top bar menu behavior, and restructures scaffold content.
app/src/main/java/com/k689/identid/ui/dashboard/home/components/HomeDrawer.kt Introduces the new Home drawer UI component.
app/src/main/java/com/k689/identid/ui/dashboard/home/components/DrawerMenuItem.kt Defines drawer menu entries and routes.
app/src/main/java/com/k689/identid/ui/dashboard/dashboard/DashboardScreen.kt Restores NavHost-based bottom-tab routing structure within the dashboard container.
app/src/main/java/com/k689/identid/ui/common/pin/PinViewModel.kt Optimizes quick PIN handling to validate only when input is complete.
app/src/main/java/com/k689/identid/ui/common/biometric/BiometricViewModel.kt Optimizes quick PIN authorization to run only when input is complete and clears errors when typing resumes.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread app/src/main/res/values/strings.xml
Comment thread app/src/main/java/com/k689/identid/ui/dashboard/home/HomeScreen.kt
Comment thread app/src/main/java/com/k689/identid/ui/dashboard/home/HomeScreen.kt
Comment thread app/src/main/java/com/k689/identid/ui/dashboard/home/components/HomeDrawer.kt Outdated
Comment thread app/src/main/java/com/k689/identid/ui/dashboard/home/components/DrawerMenuItem.kt Outdated
Comment thread app/src/main/java/com/k689/identid/ui/dashboard/home/HomeScreen.kt Outdated
kvietelaitis and others added 5 commits April 3, 2026 09:02
…s/HomeDrawer.kt

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
…s/DrawerMenuItem.kt

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
…n.kt

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
@Linux123123 Linux123123 merged commit 2da9e8c into main Apr 3, 2026
1 check passed
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