Skip to content

🎨 Palette: DX and state persistence improvements in sample app - #13

Draft
juankyc wants to merge 1 commit into
mainfrom
palette/ux-dx-improvements-9231652630102879114
Draft

🎨 Palette: DX and state persistence improvements in sample app#13
juankyc wants to merge 1 commit into
mainfrom
palette/ux-dx-improvements-9231652630102879114

Conversation

@juankyc

@juankyc juankyc commented Jul 12, 2026

Copy link
Copy Markdown
Owner

💡 What:

Improved the developer experience (DX) and reliability of the sample application by:

  1. Making the ADB command copyable: Developers can now click the ADB logcat command at the top of the screen to copy it to their clipboard.
  2. Adding State Persistence: The application now remembers if libhookee2.so has been loaded across configuration changes (like screen rotation), keeping the button in its disabled "Loaded" state.
  3. UI Feedback: Added a Toast notification when the command is copied and updated the load button's text to reflect the library's state.

🎯 Why:

  • Manually typing or selecting long ADB commands from a mobile UI is tedious. One-tap copy improves DX.
  • In Android, Activity recreation on rotation would previously reset the "Load" button's state, leading to redundant clicks and confusing UI states since native library loading is generally irreversible in this context.

♿ Accessibility:

  • Added android:contentDescription to the clickable ADB command TextView.
  • Ensured the TextView is clickable and focusable for keyboard/screen reader navigation.
  • Added android:foreground="?android:attr/selectableItemBackground" to provide visual focus and touch feedback.

PR created automatically by Jules for task 9231652630102879114 started by @juankyc

- Make ADB logcat command copyable to clipboard from the UI.
- Provide visual feedback (Toast) when the command is copied.
- Persist library load state across configuration changes (e.g., rotation).
- Disable "load" button and update text after library is loaded.
- Improve accessibility with content descriptions and focusable states.

Co-authored-by: juankyc <150547187+juankyc@users.noreply.github.com>
@google-labs-jules

Copy link
Copy Markdown

👋 Jules, reporting for duty! I'm here to lend a hand with this pull request.

When you start a review, I'll add a 👀 emoji to each comment to let you know I've read it. I'll focus on feedback directed at me and will do my best to stay out of conversations between you and other bots or reviewers to keep the noise down.

I'll push a commit with your requested changes shortly after. Please note there might be a delay between these steps, but rest assured I'm on the job!

For more direct control, you can switch me to Reactive Mode. When this mode is on, I will only act on comments where you specifically mention me with @jules. You can find this option in the Pull Request section of your global Jules UI settings. You can always switch back!

New to Jules? Learn more at jules.google/docs.


For security, I will only act on instructions from the user who triggered this task.

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.

1 participant