From 0f06cf5b9ede367ebdc2d78c1b334d1c08db6425 Mon Sep 17 00:00:00 2001 From: devnull03 <56480041+devnull03@users.noreply.github.com> Date: Sun, 6 Sep 2026 17:45:06 -0700 Subject: [PATCH 1/2] docs: plan reviewed bulk cleanup --- PLAN.md | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 PLAN.md diff --git a/PLAN.md b/PLAN.md new file mode 100644 index 00000000..93eb2eba --- /dev/null +++ b/PLAN.md @@ -0,0 +1,32 @@ +# Bulk cleanup + +## Purpose + +Provide reviewed bulk transformations for catalogue values while preserving scope visibility and a +single undo step for each accepted operation. + +## Scope + +1. Preview selected rows and columns before and after an operation. +2. Support whitespace cleanup, Unicode normalization, case normalization, delimiter splitting or + joining, regex replacement, and duplicate detection/removal. +3. Report skipped and failed cells without silently changing them. +4. Apply an accepted transformation as one complete undoable batch. + +## Non-goals + +- Unreviewed automatic cleanup. +- Spreadsheet formulas or presentation formatting. +- Replacing the current find-and-replace flow where it remains the simpler operation. + +## Dependencies and merge notes + +Do not implement the preview/confirmation UI until `gpui-kit-migration` has landed. That branch +changes the table panel and delegate surfaces this work would otherwise conflict with. The +transformation semantics and fixtures may be designed before then. + +## Definition of done + +- Every operation shows the affected-cell preview and scope before it writes. +- Cancel makes no changes; apply is one undo step. +- Tests cover filtered rows, selection scope, no-op values, and failures. From f8663c9be66922c75507e047a55f7c457e4f1452 Mon Sep 17 00:00:00 2001 From: devnull03 <56480041+devnull03@users.noreply.github.com> Date: Wed, 9 Sep 2026 10:05:21 -0700 Subject: [PATCH 2/2] docs: clarify bulk cleanup normalization --- PLAN.md | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/PLAN.md b/PLAN.md index 93eb2eba..6c2882dd 100644 --- a/PLAN.md +++ b/PLAN.md @@ -10,6 +10,10 @@ single undo step for each accepted operation. 1. Preview selected rows and columns before and after an operation. 2. Support whitespace cleanup, Unicode normalization, case normalization, delimiter splitting or joining, regex replacement, and duplicate detection/removal. + - Use NFC for canonical Unicode normalization. + - Offer NFKC as a separate compatibility-normalization operation because it can change meaning. + - Use Unicode default casing for lower-, upper-, and title-case operations. Do not use the host + locale. 3. Report skipped and failed cells without silently changing them. 4. Apply an accepted transformation as one complete undoable batch. @@ -21,9 +25,9 @@ single undo step for each accepted operation. ## Dependencies and merge notes -Do not implement the preview/confirmation UI until `gpui-kit-migration` has landed. That branch -changes the table panel and delegate surfaces this work would otherwise conflict with. The -transformation semantics and fixtures may be designed before then. +Do not implement the preview/confirmation UI until PR #118 has landed. That PR changes the table +panel and delegate surfaces this work would otherwise conflict with. The transformation semantics +and fixtures may be designed before then. ## Definition of done