Skip to content

Support updating editable items#241

Merged
Goooler merged 4 commits into
trunkfrom
support-re-edit-list-items
May 15, 2026
Merged

Support updating editable items#241
Goooler merged 4 commits into
trunkfrom
support-re-edit-list-items

Conversation

@Goooler
Copy link
Copy Markdown
Owner

@Goooler Goooler commented May 14, 2026

No description provided.

@Goooler Goooler force-pushed the support-re-edit-list-items branch from 03018c9 to f0107d5 Compare May 14, 2026 07:25
@Goooler Goooler force-pushed the support-re-edit-list-items branch from f0107d5 to 481704b Compare May 15, 2026 06:31
@Goooler Goooler force-pushed the support-re-edit-list-items branch from 8b65db7 to c28c10c Compare May 15, 2026 07:00
@Goooler Goooler requested a review from Copilot May 15, 2026 07:04
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR adds “edit existing item” support to the settings screens that manage editable string sets and key/value maps, allowing users to tap an existing row to open the same input dialog pre-filled for updating.

Changes:

  • Add item tap handling to open the input dialog in “edit” mode (tracking the currently edited value/key).
  • Pre-fill dialog text fields when editing and reset edit state on dismiss/confirm.
  • Update confirm logic to replace existing entries safely (including handling key changes in the map editor).

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.

File Description
ui/settings/src/main/kotlin/com/github/kr328/clash/settings/ui/EditableTextSetScreen.kt Adds tap-to-edit for set entries and supports pre-filled single-text dialog with update/replace logic.
ui/settings/src/main/kotlin/com/github/kr328/clash/settings/ui/EditableTextMapScreen.kt Adds tap-to-edit for map entries, pre-fills key/value dialog, and updates replace/merge logic when editing keys.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@Goooler Goooler merged commit bb64e28 into trunk May 15, 2026
8 checks passed
@Goooler Goooler deleted the support-re-edit-list-items branch May 15, 2026 07:08
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.

2 participants