Add kdocs to ui/uistate/capture classes#465
Conversation
Summary of ChangesHello @davidjiagoogle, 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 focuses on improving the documentation of the UI state definitions within the Highlights
🧠 New Feature in Public Preview: You can now enable Memory to help Gemini Code Assist learn from your team's feedback. This makes future code reviews more consistent and personalized to your project's style. Click here to enable Memory in your admin console. Changelog
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
This pull request adds comprehensive KDoc documentation to numerous UI state classes, which is a great improvement for code clarity and maintainability. The added comments are clear and accurate. I've suggested a couple of minor enhancements to improve the robustness of the data classes by adding validation logic that aligns with the expectations set in the new documentation.
...apture/src/main/java/com/google/jetpackcamera/ui/uistate/capture/CaptureModeToggleUiState.kt
Show resolved
Hide resolved
...te/capture/src/main/java/com/google/jetpackcamera/ui/uistate/capture/StabilizationUiState.kt
Show resolved
Hide resolved
ui/uistateadapter/src/main/java/com/example/uistateadapter/SnackBarUiStateAdapter.kt
Outdated
Show resolved
Hide resolved
...teadapter/src/main/java/com/google/jetpackcamera/ui/uistateadapter/SnackBarUiStateAdapter.kt
Show resolved
Hide resolved
|
/gemini review |
There was a problem hiding this comment.
Code Review
This pull request primarily focuses on improving code documentation by adding KDocs to numerous UI state classes in the ui/uistate/capture module. Additionally, it refactors SnackBarUiState and its adapter out of the capture-specific modules into more general ui/uistate and ui/uistateadapter modules. This is a good architectural change that decouples the postcapture feature from the capture feature. The new KDocs are clear and will significantly improve maintainability. I've found one issue with the package name of the moved adapter file, which should be corrected for consistency.
ui/uistateadapter/src/main/java/com/example/uistateadapter/SnackBarUiStateAdapter.kt
Outdated
Show resolved
Hide resolved
...capture/src/main/java/com/google/jetpackcamera/ui/uistate/capture/compound/CaptureUiState.kt
Outdated
Show resolved
Hide resolved
...capture/src/main/java/com/google/jetpackcamera/ui/uistate/capture/compound/CaptureUiState.kt
Outdated
Show resolved
Hide resolved
...capture/src/main/java/com/google/jetpackcamera/ui/uistate/capture/compound/CaptureUiState.kt
Outdated
Show resolved
Hide resolved
...capture/src/main/java/com/google/jetpackcamera/ui/uistate/capture/compound/CaptureUiState.kt
Outdated
Show resolved
Hide resolved
.../src/main/java/com/google/jetpackcamera/ui/uistate/capture/compound/PreviewDisplayUiState.kt
Outdated
Show resolved
Hide resolved
...e/src/main/java/com/google/jetpackcamera/ui/uistate/capture/compound/QuickSettingsUiState.kt
Outdated
Show resolved
Hide resolved
...te/capture/src/main/java/com/google/jetpackcamera/ui/uistate/capture/FocusMeteringUiState.kt
Outdated
Show resolved
Hide resolved
...te/capture/src/main/java/com/google/jetpackcamera/ui/uistate/capture/FocusMeteringUiState.kt
Show resolved
Hide resolved
...istate/capture/src/main/java/com/google/jetpackcamera/ui/uistate/capture/ImageWellUiState.kt
Outdated
Show resolved
Hide resolved
…istate/capture/ImageWellUiState.kt Co-authored-by: Kimberly Crevecoeur <kcrevecoeur@google.com>
…istate/capture/compound/CaptureUiState.kt Co-authored-by: Kimberly Crevecoeur <kcrevecoeur@google.com>
…istate/capture/compound/CaptureUiState.kt Co-authored-by: Kimberly Crevecoeur <kcrevecoeur@google.com>
…istate/capture/compound/CaptureUiState.kt Co-authored-by: Kimberly Crevecoeur <kcrevecoeur@google.com>
…istate/capture/compound/CaptureUiState.kt Co-authored-by: Kimberly Crevecoeur <kcrevecoeur@google.com>
…istate/capture/compound/PreviewDisplayUiState.kt Co-authored-by: Kimberly Crevecoeur <kcrevecoeur@google.com>
…istate/capture/compound/QuickSettingsUiState.kt Co-authored-by: Kimberly Crevecoeur <kcrevecoeur@google.com>
…istate/capture/FocusMeteringUiState.kt Co-authored-by: Kimberly Crevecoeur <kcrevecoeur@google.com>
As titled
SnackBarUiState is moved from ui/uistate/capture to ui/uistate. SnackBarUiStateAdapter is moved to ui/uistateadapter. This is so that postcapture doesn't have to depend on capture