UX: Surprising "Delete" for NodeArray inside NodeArrays
Nobody has claimed this yet.
Assessment
- Difficulty
- 5/5
- Estimated time
- Over a week
- Newbie friendliness
- 28/100
- Issue type
- Feature
- Clarity
- Needs clarification
- Activity status
- Stale
- Tech stack
- typescript
Research direction
No file or test is named. Start by reproducing backspace deletion with a nested NodeArray, especially the footer example, and inspect the NodeArray and NodeCursor behavior involved. Done requires an agreed interaction that prevents or eases surprising multi-node deletion, validated against the described cases.
Written by the indexing model from the issue text.
Description
When you nest a NodeArray inside another NodeArray and backspace delete, the deletion may come a bit as a surprise:
- Users may expect pressing backspace will only delete the last child of the nested Node Array
For me personally the delete "feels too fast". One keystroke and e.g. 4 nodes are gone.
Here's why it feels like this: In the footer example the individual Link nodes are not perceived as forming a strong Column group, they are more perceived as slots in a grid.
A couple ideas to prevent or ease this feeling of accidental surprise:
- Subtly add an outline around NodeArrays when the NodeCursor is placed after (& before?) them.
- Cursor Affinity: Change the appearance of the NodeCursor depending on the type of the previous Node: e.g. if it's a NodeArray render it differently.
- Make NodeArray backspace deletion a two step process: first backspace selects the full NodeArray, second backspace as normal: delete the node. Either always or only if the previous node is or has a nested NodeArray.
https://github.com/user-attachments/assets/8b44a60e-71a9-4af1-87c6-5beb85866fe9
- Dominant language
- TypeScript
- Stars
- 691
- Forks
- 20
- PR merge metrics
- No merged PRs in 30d
Getting set up
This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from michael/svedit
-
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
Similar issues
-
bug data-types
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
ClickHouse/clickhouse-js#1293 ·
Maintainers usually reply within 1 day
-
area: middleware enhancement good first issue
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
-
agent/quality testing
Difficulty 1/5 Under an hour Newbie friendliness 95/100
Maintainers usually reply within 1 day
-
GitHub registry install via `gh` credentials rewrites `\u0000`–`\u001f` escapes in source files to `^@`–`^_`Possibly taken A pull request linked to this issue is open or already merged. Open
Difficulty 2/5 1-3 hours Newbie friendliness 92/100
Maintainers usually reply within 2 days
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
juspay/agent-distro#203 ·
Maintainers usually reply within 1 day