Skip to content

fix: drop the three admin settings groups that render nothing - #779

Merged
hokiepokedad2 merged 1 commit into
developfrom
fix/empty-admin-settings-groups
Aug 21, 2026
Merged

fix: drop the three admin settings groups that render nothing#779
hokiepokedad2 merged 1 commit into
developfrom
fix/empty-admin-settings-groups

Conversation

@hokiepokedad2

Copy link
Copy Markdown
Contributor

Closes #778. Reported with a screenshot of Commands and Maps & Assets sitting open and empty.

Three groups declared settings: [], so the page drew a header and a chevron over an empty panel three times.

Maps & Assets is residue from #452, which deleted the two toggles it held — disable_geomap and disable_geomap_select, legacy PoracleJS keys describing a map picker this app does not have — and left the shell behind. Commands and Debug have declared nothing since #162.

Changes

  • Deleted the three group definitions and their label keys from all eleven locale files.
  • visibleGroups now also drops a group with no declared settings, so a future removal cannot leave another shell.

Why this is not the filter #629 reverted

#629 removed a filter that dropped a group whose keys had no DB row yet. That broke fresh installs: only custom_title is seeded, so Alarm Types, Features, Administration and Analytics vanished from the DOM, and since this page is the only writer the rows could never appear. The comment left behind at that site says so.

The condition here is different: nothing declared in code. Such a group cannot render a row under any database state, so dropping it changes nothing except the empty panel. The existing row-level guard still renders an absent key correctly.

Test

Asserts the data rather than the rendering, because that is how this recurs — someone deletes a group's last setting and does not notice the shell. Watched red by re-adding the Maps & Assets shell: exactly the one test fails and names the group. Two neighbouring invariants came free: distinct label keys, and no setting key declared twice (a duplicate would bind two rows to one value and silently shadow).

Frontend 1144 passed across 100 suites; build, lint and prettier clean.

Commands, Maps & Assets and Debug each declared settings: [], so the page drew
a header and a chevron over an empty panel three times.

Maps & Assets is residue from #452, which deleted the two toggles it held --
disable_geomap and disable_geomap_select, legacy PoracleJS keys for a map
picker this app does not have -- and left the shell. Commands and Debug have
declared nothing since #162.

visibleGroups now also drops a group with no declared settings. That is NOT the
filter #629 reverted: that one dropped groups whose keys had no DB row yet,
which a fresh install always has, since only custom_title is seeded and this
page is the only writer. Nothing-declared-in-code is a different condition.

The test asserts the data rather than the rendering, because the recurrence is
a data edit: someone removes a group's last setting and does not notice.

Closes #778
@github-actions github-actions Bot added the fix label Aug 21, 2026
@hokiepokedad2
hokiepokedad2 merged commit e8ecb19 into develop Aug 21, 2026
5 checks passed
@hokiepokedad2
hokiepokedad2 deleted the fix/empty-admin-settings-groups branch August 21, 2026 17:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant