add documentation to :ui:components:capture#470
Conversation
…ui:components:capture module
…ts:capture module
Summary of ChangesHello @Kimblebee, 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 primarily focuses on enhancing the documentation and internal consistency of 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
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
This pull request is a great step towards improving the documentation and code quality of the :ui:capture module. The newly added KDoc comments significantly enhance the readability and maintainability of the components. The refactoring of MultipleEventsCutter to EventDebouncer and making several components private or internal are also excellent changes that improve code clarity and encapsulation. I have a couple of minor suggestions to make the documentation for callback parameters even more descriptive.
...ture/src/main/java/com/google/jetpackcamera/ui/components/capture/CaptureButtonComponents.kt
Outdated
Show resolved
Hide resolved
...ture/src/main/java/com/google/jetpackcamera/ui/components/capture/CaptureScreenComponents.kt
Outdated
Show resolved
Hide resolved
| /** | ||
| * A composable that provides a Material Design theme for previews within the Jetpack Camera App. | ||
| * | ||
| * This theme adapts to system dark mode settings and supports dynamic colors on Android 12+. |
There was a problem hiding this comment.
nit: This is technically true, but I don't think we'll need to support the light theme in the future. No need to change anything now, except for maybe adding a TODO to remove the ability to change the theme.
There was a problem hiding this comment.
This was actually only used in the composables with the @Preview annotation. This should honestly just be deleted.
...ture/src/main/java/com/google/jetpackcamera/ui/components/capture/CaptureButtonComponents.kt
Show resolved
Hide resolved
...nents/capture/src/main/java/com/google/jetpackcamera/ui/components/capture/EventDebouncer.kt
Outdated
Show resolved
Hide resolved
ui/components/capture/src/main/java/com/google/jetpackcamera/ui/components/capture/ZoomState.kt
Outdated
Show resolved
Hide resolved
...ture/src/main/java/com/google/jetpackcamera/ui/components/capture/CaptureButtonComponents.kt
Outdated
Show resolved
Hide resolved
...ture/src/main/java/com/google/jetpackcamera/ui/components/capture/CaptureScreenComponents.kt
Outdated
Show resolved
Hide resolved
Added comprehensive KDocs to composables in CaptureScreenComponents.kt and CaptureButtonComponents.kt to clearly describe their user-facing behavior. Also, enhanced documentation for the ZoomStateManager class, its private variables, and the MutatorMutex to provide better clarity on its responsibilities and concurrency handling.
e7c4bdf to
c5f8439
Compare
Also deleted
Theme.ktandMultipleEventsCutter.ktfrom the module.