This repository has been archived by the owner on Jun 4, 2024. It is now read-only.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Fixes #576 - editing column names or deleting (and clearing, which already worked correctly, but I made sure it still does) columns while some columns are hidden.
Also fixes a minor issue I encountered along the way: if you click to edit a column name then click
Cancel
at the prompt, it would clear the name. Fixed it so now it keeps the previous name.I chose two slightly different behaviors for merged columns with only part of the merged set hidden, but I think it makes sense:
This creates a weird edge case with name editing:
A
,B
,A
B
-> now the first row headers merge into a singleA
A
toC
A
; the other one is stillA
, so they cease to be merged. This is because when renaming we consider all the columns, not just the visible ones, so in that context these cells actually aren't merged.I'm torn about whether to consider this a bug or not... but there it is. It's pretty esoteric and I could see arguments either way