feat(settings): enhance settings management with generic setter and display hel… (#6202)

Co-authored-by: Jacob Richman <jacob314@gmail.com>
This commit is contained in:
Ali Al Jufairi
2025-08-19 11:28:45 +09:00
committed by GitHub
parent 36ea986cfe
commit 92bb4624c4
5 changed files with 546 additions and 219 deletions

View File

@@ -392,7 +392,7 @@ describe('SettingsUtils', () => {
new Set(),
updatedPendingSettings,
);
expect(displayValue).toBe('true*'); // Should show true with * indicating change
expect(displayValue).toBe('true'); // Should show true (no * since value matches default)
// Test that modified settings also show the * indicator
const modifiedSettings = new Set([key]);
@@ -602,7 +602,7 @@ describe('SettingsUtils', () => {
mergedSettings,
modifiedSettings,
);
expect(result).toBe('false'); // matches default, no *
expect(result).toBe('false*');
});
it('should show default value when setting is not in scope', () => {