Skip to content

Commit 6a88abc

Browse files
committed
feat(P3): rename Workspaces tab to "Mapping" + keep binding_type on edit
The nav label/hint and the Apps-page link now read "Mapping" — the tab routes apps to tools by folder OR id. Also fixes toInput() to carry binding_type so editing an id mapping isn't re-validated as a filesystem path. Signed-off-by: Mohammod Al Amin Ashik <maa.ashik00@gmail.com>
1 parent 5f4e386 commit 6a88abc

3 files changed

Lines changed: 5 additions & 3 deletions

File tree

apps/desktop/src/features/clients/ClientsPage.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -281,7 +281,7 @@ export default function ClientsPage() {
281281
onClick={() => navigateTo('workspaces')}
282282
className="font-medium text-[rgb(var(--accent))] hover:underline"
283283
>
284-
Workspaces
284+
Mapping
285285
</button>{' '}
286286
per folder, not per app.
287287
</>

apps/desktop/src/lib/api/workspaceBindings.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -106,6 +106,8 @@ export function toInput(b: WorkspaceBinding): WorkspaceBindingInput {
106106
workspace_root: b.workspace_root,
107107
space_id: b.space_id,
108108
feature_set_ids: b.feature_set_ids,
109+
// Preserve the type so editing an id mapping doesn't re-validate as a path.
110+
binding_type: b.binding_type,
109111
};
110112
}
111113

apps/desktop/src/lib/navigation.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -93,10 +93,10 @@ export const NAV_ZONES: NavZone[] = [
9393
},
9494
{
9595
key: 'workspaces',
96-
label: 'Workspaces',
96+
label: 'Mapping',
9797
icon: FolderOpen,
9898
testId: 'nav-workspaces',
99-
hint: 'Folder → tools mappings',
99+
hint: 'Route apps to tools — by folder or id',
100100
},
101101
{
102102
key: 'featuresets',

0 commit comments

Comments
 (0)