Skip to content

Clear the overrides-only filter when clearing all overrides - #25

Merged
duncan-daydream merged 1 commit into
mainfrom
duncan/spruce-up-0-13-0-release-notes
Jul 27, 2026
Merged

duncan-daydream merged 1 commit into
mainfrom
duncan/spruce-up-0-13-0-release-notes

Conversation

@duncan-daydream

Copy link
Copy Markdown
Collaborator

Summary

  • Fixes a bug where clearing all overrides while the overrides-only filter was engaged left the filter toggle stuck on and non-interactive (it disables itself once there are no overrides left to show).
  • confirmClearAllOverrides() now resets showOverridesOnly to false after removing overrides.

Test plan

  • Added confirmClearAllOverridesClearsShowOverridesOnly to ConfigVariableListViewModelTests.
  • Ran ConfigVariableListViewModelTests — all 34 tests pass.
  • Scripts/lint passes.

Previously, clearing overrides while the filter was engaged left the
toggle stuck on and non-interactive, since it disables itself once
there are no overrides left to show.
@github-actions

Copy link
Copy Markdown

Code Coverage Report

Overall Coverage: 96.99% (3,388 of 3,493)

DevConfiguration: 96.99% (3,388 of 3,493)
File Coverage Covered Lines Executable Lines
CodableValueRepresentation.swift 100.00% 86 86
ConfigContent+Additions.swift 100.00% 137 137
ConfigSnapshot+ConfigContent.swift 100.00% 22 22
ConfigVariable.swift 100.00% 84 84
ConfigVariableAccessFailedEvent.swift 100.00% 4 4
ConfigVariableAccessSucceededEvent.swift 100.00% 5 5
ConfigVariableContent.swift 96.03% 1,936 2,016
ConfigVariableDecodingFailedEvent.swift 100.00% 5 5
ConfigVariableMetadata.swift 100.00% 30 30
ConfigVariableReader.swift 95.61% 196 205
DisplayNameMetadataKey.swift 100.00% 2 2
EditorControl.swift 100.00% 24 24
EditorDocument.swift 98.50% 395 401
EditorOverrideProvider.swift 98.75% 315 319
EventBusAccessReporter.swift 100.00% 32 32
GroupMetadataKey.swift 100.00% 8 8
IsEditableMetadataKey.swift 100.00% 2 2
Localization.swift 50.00% 3 6
NamedConfigProvider.swift 100.00% 5 5
RegisteredConfigVariable.swift 96.77% 90 93
String+NonEmptyTrimmedLines.swift 100.00% 7 7

@duncan-daydream
duncan-daydream merged commit 7c0c3e3 into main Jul 27, 2026
6 checks passed
@duncan-daydream
duncan-daydream deleted the duncan/spruce-up-0-13-0-release-notes branch July 27, 2026 17:56
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