detached ccbb812

refactor(config): remove raw engine settings bridge

commit
ccbb8126c762556653d0a80b440c521e541c6336
author
brice · · 2026-06-23 15:36 UTC
committer
brice · · 2026-06-23 20:01 UTC
parent
2064b93
signature
GPG VerifiedCD88F9E564E0102646FB6077A1A07C7C7C3E349D · arch-gpg Verified for the committer email
3 files · +10 -6
M internal/application/port/engine.go +0 -3
@@ -174,9 +174,6 @@ type EngineSettingsPayload struct {
174174 // EngineSettingsUpdate carries a runtime config change to the engine.
175175 type EngineSettingsUpdate struct {
176176 Settings EngineSettingsPayload
177- // Raw remains only until the UI runtime config provider migration removes
178- // the last concrete-config caller. Adapter implementations must ignore it.
179- Raw any //nolint:iface // temporary legacy bridge; removed in Phase 4
180177 }
181178
182179 // WebUIMessageHandler handles a decoded message payload from the JS bridge.
@@ -174,9 +174,6 @@ type EngineSettingsPayload struct {
174 // EngineSettingsUpdate carries a runtime config change to the engine.174 // EngineSettingsUpdate carries a runtime config change to the engine.
175 type EngineSettingsUpdate struct {175 type EngineSettingsUpdate struct {
176 Settings EngineSettingsPayload176 Settings EngineSettingsPayload
177- // Raw remains only until the UI runtime config provider migration removes
178- // the last concrete-config caller. Adapter implementations must ignore it.
179- Raw any //nolint:iface // temporary legacy bridge; removed in Phase 4
180 }177 }
181 178
182 // WebUIMessageHandler handles a decoded message payload from the JS bridge.179 // WebUIMessageHandler handles a decoded message payload from the JS bridge.
M internal/application/port/engine_settings_test.go +7 -0
@@ -28,3 +28,10 @@ func TestEngineSettingsPayloadContainsRuntimeWebContentFields(t *testing.T) {
2828 }
2929 }
3030 }
31+
32+func TestEngineSettingsUpdateHasNoRawBridge(t *testing.T) {
33+ updateType := reflect.TypeOf(EngineSettingsUpdate{})
34+ if _, ok := updateType.FieldByName("Raw"); ok {
35+ t.Fatal("EngineSettingsUpdate must not expose Raw legacy bridge")
36+ }
37+}
@@ -28,3 +28,10 @@ func TestEngineSettingsPayloadContainsRuntimeWebContentFields(t *testing.T) {
28 }28 }
29 }29 }
30 }30 }
31+
32+func TestEngineSettingsUpdateHasNoRawBridge(t *testing.T) {
33+ updateType := reflect.TypeOf(EngineSettingsUpdate{})
34+ if _, ok := updateType.FieldByName("Raw"); ok {
35+ t.Fatal("EngineSettingsUpdate must not expose Raw legacy bridge")
36+ }
37+}
M internal/infrastructure/cef/engine_settings_test.go +3 -3
@@ -21,10 +21,10 @@ func TestEngineUpdateSettingsUpdatesApplicationScaleFromBoundaryPayload(t *testi
2121 }
2222 }
2323
24-func TestEngineUpdateSettingsIgnoresLegacyRawForApplicationScale(t *testing.T) {
25- e := &Engine{applicationScale: 1}
24+func TestEngineUpdateSettingsUsesZeroScaleWhenPayloadIsEmpty(t *testing.T) {
25+ e := &Engine{applicationScale: 1.25}
2626
27- if err := e.UpdateSettings(context.Background(), port.EngineSettingsUpdate{Raw: "wrong"}); err != nil {
27+ if err := e.UpdateSettings(context.Background(), port.EngineSettingsUpdate{}); err != nil {
2828 t.Fatalf("UpdateSettings returned error: %v", err)
2929 }
3030 if got := e.currentApplicationScale(); got != 1 {
@@ -21,10 +21,10 @@ func TestEngineUpdateSettingsUpdatesApplicationScaleFromBoundaryPayload(t *testi
21 }21 }
22 }22 }
23 23
24-func TestEngineUpdateSettingsIgnoresLegacyRawForApplicationScale(t *testing.T) {24+func TestEngineUpdateSettingsUsesZeroScaleWhenPayloadIsEmpty(t *testing.T) {
25- e := &Engine{applicationScale: 1}25+ e := &Engine{applicationScale: 1.25}
26 26
27- if err := e.UpdateSettings(context.Background(), port.EngineSettingsUpdate{Raw: "wrong"}); err != nil {27+ if err := e.UpdateSettings(context.Background(), port.EngineSettingsUpdate{}); err != nil {
28 t.Fatalf("UpdateSettings returned error: %v", err)28 t.Fatalf("UpdateSettings returned error: %v", err)
29 }29 }
30 if got := e.currentApplicationScale(); got != 1 {30 if got := e.currentApplicationScale(); got != 1 {

Keyboard shortcuts

Single-key shortcuts are on. ctrl k and esc work whatever this says.

ctrl k :
go to a section, branch, tag, file or repository
?
this list
j k
move the row cursor down / up
enter
open the row under the cursor; on Files, a directory opens or closes in place
↑ ↓ ← → home end
in the file tree (focus on a row): previous / next row, close / open a directory or go to its parent / first entry, first / last row. They never open a file
l h
on Files: open a directory or a file / close a directory or go up to its parent, then to the parent page. Elsewhere: into the side panel (on a merge request, its files) / back to the content; there j k move between its controls
g g G
first / last row
/
filter the list; on Files, find a file anywhere in the repository (esc clears, enter opens the best match)
b
switch branch or tag
g s g f g c g b g m g i g r g a
tabs: summary, files, commits, branches & tags, merge requests, issues, releases, actions (when available)
g h
home
w
wide mode: use the whole width of the screen, or not (remembered)
y
copy a permalink pinned to the commit
d u x
diff: split / unified / collapse or expand all
e E
diff: the whole file in view / every file, with the lines the hunks hide
n
merge request: next note in the diff
esc
close a dialog, leave a field

Branches 8

Tags 42

↑↓ moveenter openesc close