Skip to content

Conversation

Copy link
Contributor

Copilot AI commented Nov 27, 2025

  • Create ConstraintCategory enum similar to ActionCategory
  • Add getCategory function to ConstraintUtils to map constraints to categories
  • Add getCategoryLabel function to ConstraintUtils for category display names
  • Add string resources for constraint category labels
  • Modify ChooseConstraintViewModel to organize constraints into groups using SimpleListItemGroup
  • Modify ChooseConstraintScreen to display categories with headers like ChooseActionScreen
  • Run code review (passed with no issues)
  • Run security scan (passed with no issues)
  • Add changelog entry
Original prompt

This section details on the original issue you should resolve

<issue_title>Categorise constraints similar to actions</issue_title>
<issue_description>### Have you checked if an issue already exists for this feature request?

  • Nobody else has requested this feature before

What feature would you like added?

Categorise the constraints in the ChooseConstraintScreen in a similar way to the ChooseActionScreen

App version

No response

Device model and manufacturer

No response

Extra info

  • My device is rooted</issue_description>

Comments on the Issue (you are @copilot in this section)


💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.

- Added ConstraintCategory enum with categories: APPS, MEDIA, BLUETOOTH,
  DISPLAY, FLASHLIGHT, WIFI, KEYBOARD, LOCK, PHONE, POWER, DEVICE, TIME
- Added getCategory() and getCategoryLabel() functions to ConstraintUtils
- Updated ChooseConstraintViewModel to organize constraints into groups
- Updated ChooseConstraintScreen to display categories with headers
- Added string resources for constraint category labels

Co-authored-by: sds100 <[email protected]>
Copilot AI changed the title [WIP] Categorise constraints in ChooseConstraintScreen Categorise constraints similar to actions Nov 27, 2025
Copilot AI requested a review from sds100 November 27, 2025 11:04
@sds100
Copy link
Collaborator

sds100 commented Nov 27, 2025

@copilot add a line to changelog

Copy link
Contributor Author

Copilot AI commented Nov 27, 2025

@copilot add a line to changelog

Added changelog entry in commit 5ac9a25.

Copilot AI requested a review from sds100 November 27, 2025 11:27
@sds100 sds100 marked this pull request as ready for review November 27, 2025 11:29
@sds100 sds100 merged commit 6425d2c into develop Nov 27, 2025
6 checks passed
@sds100 sds100 deleted the copilot/categorise-constraints-similar-actions branch November 27, 2025 12:48
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.

Categorise constraints similar to actions

2 participants