Refactor face matching UI with reusable FaceOverlay component#162
Conversation
- Extract face bounding box drawing logic into `FaceOverlay.kt`. - Update `FaceAuditScreen.kt` to use `FaceOverlay`. - Update `FaceSelectionDialog` in `ProjectDetailScreen.kt` to use `FaceOverlay` and improve button layout and usability. - Use direct manipulation (tap on face) instead of list buttons. - Use theme colors for better visual integration. Co-authored-by: harrydbarnes <145344818+harrydbarnes@users.noreply.github.com>
Summary of ChangesHello @harrydbarnes, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed! This pull request significantly refactors the face matching user interface by introducing a new, reusable Highlights
Changelog
Activity
Using Gemini Code AssistThe full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips. Invoking Gemini You can request assistance from Gemini at any point by creating a comment using either
Customization To customize Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a Limitations & Feedback Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counter productive. You can react with 👍 and 👎 on @gemini-code-assist comments. If you're interested in giving your feedback about your experience with Gemini Code Assist for Github and other Google products, sign up here. You can also get AI-powered code generation, chat, as well as code reviews directly in the IDE at no cost with the Gemini Code Assist IDE Extension. Footnotes
|
There was a problem hiding this comment.
Code Review
The pull request successfully refactors the face matching UI by extracting the face bounding box drawing and interaction logic into a reusable FaceOverlay component. This significantly improves code organization and maintainability in FaceAuditScreen.kt and ProjectDetailScreen.kt. The UI enhancements in ProjectDetailScreen.kt, such as direct tap selection and improved button layouts, enhance usability and visual consistency. However, there is a critical issue in the FaceOverlay component's tap detection logic that needs to be addressed to ensure correct functionality across different layout sizes.
Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>
Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>
Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>
Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>
FaceOverlay.kt.FaceAuditScreen.ktto useFaceOverlay.FaceSelectionDialoginProjectDetailScreen.ktto useFaceOverlayand improve button layout and usability.