Commit c98fda7
committed
refactor(workspaces): Phase 3 — Routing + Scope sections, badge wiring
Split BindingForm into RoutingFields (space + feature sets) and
ScopeFields (machine + workspace root). Replace the single Mapping
collapsible with Routing (default open) and Scope (collapsed, ref.expand).
Wire header machine badge to expand Scope. Move create-from-live icon
appearance autosave to the panel. Add CollapsibleSectionRef.expand().
Autonomous decisions:
- Added forwardRef/useImperativeHandle to CollapsibleSection in
WorkspacesPage.tsx (required for scopeSectionRef.expand(); not in
the phase file list but unavoidable without duplicating the component)
- Routing section uses Route icon; Scope uses Monitor
- Edit-mode routing subtitle reflects live form state (spaceId/fsIds),
not the saved binding snapshot
- Removed BindingForm entirely; create-mode submit stays in ScopeFields
Signed-off-by: crimsonsunset <jsangio1@gmail.com>1 parent fadda96 commit c98fda7
4 files changed
Lines changed: 323 additions & 270 deletions
File tree
- apps/desktop/src
- features/workspaces
- locales/en
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
| 2 | + | |
2 | 3 | | |
3 | 4 | | |
| 5 | + | |
4 | 6 | | |
5 | 7 | | |
6 | 8 | | |
| |||
1138 | 1140 | | |
1139 | 1141 | | |
1140 | 1142 | | |
1141 | | - | |
1142 | | - | |
1143 | | - | |
1144 | | - | |
1145 | | - | |
1146 | | - | |
1147 | | - | |
1148 | | - | |
1149 | | - | |
1150 | | - | |
1151 | | - | |
1152 | | - | |
1153 | | - | |
1154 | | - | |
1155 | | - | |
1156 | | - | |
1157 | | - | |
1158 | | - | |
1159 | | - | |
1160 | | - | |
1161 | | - | |
1162 | | - | |
| 1143 | + | |
| 1144 | + | |
| 1145 | + | |
| 1146 | + | |
| 1147 | + | |
| 1148 | + | |
| 1149 | + | |
| 1150 | + | |
| 1151 | + | |
| 1152 | + | |
| 1153 | + | |
| 1154 | + | |
| 1155 | + | |
| 1156 | + | |
| 1157 | + | |
| 1158 | + | |
| 1159 | + | |
| 1160 | + | |
| 1161 | + | |
| 1162 | + | |
| 1163 | + | |
| 1164 | + | |
| 1165 | + | |
| 1166 | + | |
| 1167 | + | |
| 1168 | + | |
| 1169 | + | |
| 1170 | + | |
| 1171 | + | |
| 1172 | + | |
| 1173 | + | |
| 1174 | + | |
| 1175 | + | |
1163 | 1176 | | |
1164 | 1177 | | |
1165 | 1178 | | |
| 1179 | + | |
| 1180 | + | |
| 1181 | + | |
| 1182 | + | |
1166 | 1183 | | |
1167 | 1184 | | |
1168 | 1185 | | |
| |||
1228 | 1245 | | |
1229 | 1246 | | |
1230 | 1247 | | |
1231 | | - | |
| 1248 | + | |
1232 | 1249 | | |
1233 | 1250 | | |
1234 | 1251 | | |
| |||
0 commit comments