Skip to content

Paintroid-802: Add clear button to clipboard tool#152

Open
jShubh-AD wants to merge 2 commits intoCatrobat:developfrom
jShubh-AD:PAINTROID-802
Open

Paintroid-802: Add clear button to clipboard tool#152
jShubh-AD wants to merge 2 commits intoCatrobat:developfrom
jShubh-AD:PAINTROID-802

Conversation

@jShubh-AD
Copy link

This PR adds a Clear Clipboard action to the Clipboard tool options.
Users can now clear copied clipboard content directly from the toolbar.
The update also improves the clipboard UI by adding labeled action chips with horizontal scrolling for better usability.

New Features and Enhancements

  • Added Clear Clipboard action chip to the Clipboard tool options UI.
  • Allows users to clear copied clipboard content directly from the actions.
  • Added Text name in the chip and horizontal scroll for better UX .
  • Jira Ticket: PAINTROID-802

Refactor and Bug Fixes

  • chipIcon now supports Widget type instead of Icon in CustomActionChip.
  • onPressed is now nullable to support disable states.

Tests

  • Refactor: widget test for clipboard_tool_test now finds CustomActionChip with text (e.g. 'Copy', 'Paste').
  • Added: integration tests for clipboard_tool_test.

Demo

  • Current behavior

  • paitroid_current_behavior.mp4
  • Expected behavior

  • paitroid_expected_behavior.mp4

Checklist

Your checklist for this pull request

Please review the contributing guidelines and wiki pages of this repository.

  • Include the name of the Jira ticket in the PR’s title
  • Add the link to the ticket in Jira in the description of the PR
  • Include a summary of the changes plus the relevant context
  • Choose the proper base branch (develop)
  • Confirm that the changes follow the project’s coding guidelines (Wiki)
  • Verify that the changes generate no compiler or linter warnings
  • Perform a self-review of the changes
  • Verify to commit no other files than the intentionally changed ones
  • Include reasonable and readable tests verifying the added or changed behavior
  • Confirm that new and existing tests pass locally
  • Check that the commits’ message style matches the project’s guideline
  • Verify that your changes do not have any conflicts with the base branch
  • After the PR, verify that all CI checks have passed
  • Add new information to the Wiki

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