Skip to content

Comments

Dashboard overwrite empty sections#621

Merged
jgclark merged 3 commits intomainfrom
dashboard-overwrite-empty-sections
Feb 5, 2025
Merged

Dashboard overwrite empty sections#621
jgclark merged 3 commits intomainfrom
dashboard-overwrite-empty-sections

Conversation

@dwertheimer
Copy link
Collaborator

@jgclark Pls have a look. I found (as noted in the Dashboard note) that when you click on the last item in a section the section does not go away. I think this is because the section is not getting overwritten in the refresh because items is blank and therefore a section is not produced and therefore the old section is not overwritten. I went through and changed this in all the dataGens I could find. I took out the ( if items.length > 0 then push section) parenthetical and add the section in all cases so it will overwrite the old one with a new section with no sectionItems on refresh.

Please test in this branch.

  • click done on all items in a section
  • the row should fade away
  • the section should then disappear when it is replaced with a new section that has empty sectionItems array (so it's there but doesn't display)

@jgclark
Copy link
Collaborator

jgclark commented Feb 5, 2025

Merging branch after visual inspection

@jgclark jgclark merged commit 94be494 into main Feb 5, 2025
0 of 3 checks passed
@jgclark jgclark deleted the dashboard-overwrite-empty-sections branch February 5, 2025 18:44
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