mirror of
https://github.com/multica-ai/multica.git
synced 2026-07-18 07:39:29 +02:00
* feat(settings): view/edit toggle for repositories tab Saved repos render as static rows (truncated, monospace) with hover/focus-revealed Edit + Delete affordances. Clicking Edit flips to the existing Input; on successful Save the row returns to display mode. Save button is gated on a dirty check (URL arrays in order) so a clean state reads as "All changes saved". Resolves user feedback that the always-visible input made saved state ambiguous (MUL-2217). - Track editingIndices with a Set; new rows auto-enter edit mode; deleting a row remaps indices so the wrong row never opens. - Touch devices and focus-within keep the action buttons reachable. - New i18n keys in en + zh-Hans (saved_hint, empty, edit/delete_aria, url_empty). Co-authored-by: multica-agent <github@multica.ai> * fix(settings): add Cancel affordance to exit clean edit mode Clicking Edit on a clean saved row opened the row in edit mode with no way back to display mode unless the user changed the URL and saved, re-introducing the original saved-state ambiguity after an accidental click. Add a per-row Cancel (X) button visible only in edit mode that: - reverts the URL to the saved value for existing rows - removes the row entirely for never-saved (newly added) rows - exits edit mode without dirtying Save Action group is always visible (no hover gate) while editing so the exit is discoverable. Adds en/zh-Hans cancel_aria string and three regression tests covering clean-cancel, dirty-cancel, and new-row-cancel. Co-authored-by: multica-agent <github@multica.ai> --------- Co-authored-by: multica-agent <github@multica.ai>