From 5627678ed4b802a7488eca6ef4bf9307c914018e Mon Sep 17 00:00:00 2001 From: hyperpolymath <6759885+hyperpolymath@users.noreply.github.com> Date: Mon, 18 May 2026 18:05:31 +0100 Subject: [PATCH] fix(affine): migrate record literals to #{ } (affinescript#218) affinescript#218 (merged): bare { = block, records use #{ }. Migrated 7 expression-position record literals (route Model constructions) in opsm_gui.affine; each #{ verified to open a real field record; parses clean under the new compiler. Patterns/blocks unchanged. Refs hyperpolymath/affinescript#218 Co-Authored-By: Claude Opus 4.7 (1M context) --- src/ui/tea/opsm_gui.affine | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/src/ui/tea/opsm_gui.affine b/src/ui/tea/opsm_gui.affine index 0f5ab42e..893bc2d6 100644 --- a/src/ui/tea/opsm_gui.affine +++ b/src/ui/tea/opsm_gui.affine @@ -53,7 +53,7 @@ enum Msg { // ── TEA Logic ──────────────────────────────────────────────────────────────── fn opsm_init() -> Model { - { + #{ route: Route::Home, search_query: "", install_status: InstallStatus::NotStarted, @@ -67,7 +67,7 @@ fn opsm_update(@linear msg: Msg, @linear model: Model) -> Model { { route: r, search_query: s, install_status: i, loading: l, history_depth: h } => { match msg { Navigate(new_route) => { - { + #{ route: new_route, search_query: s, install_status: i, @@ -77,7 +77,7 @@ fn opsm_update(@linear msg: Msg, @linear model: Model) -> Model { } UpdateSearchQuery(new_query) => { - { + #{ route: r, search_query: new_query, install_status: i, @@ -87,7 +87,7 @@ fn opsm_update(@linear msg: Msg, @linear model: Model) -> Model { } PerformSearch(query) => { - { + #{ route: Route::Search(query), search_query: query, install_status: i, @@ -97,7 +97,7 @@ fn opsm_update(@linear msg: Msg, @linear model: Model) -> Model { } SetInstallStatus(status) => { - { + #{ route: r, search_query: s, install_status: status, @@ -108,7 +108,7 @@ fn opsm_update(@linear msg: Msg, @linear model: Model) -> Model { PopState => { if h > 0 { - { + #{ route: Route::Home, search_query: s, install_status: i, @@ -116,7 +116,7 @@ fn opsm_update(@linear msg: Msg, @linear model: Model) -> Model { history_depth: h - 1 } } else { - { + #{ route: r, search_query: s, install_status: i,