Commit 3a18882
committed
fix(wire-format): flip sistent consumer reads of meshery wire to canonical camelCase (Phase 7c)
Sistent components consume meshery / meshery-cloud wire payloads. Per the
ecosystem identifier-naming contract (TypeScript property: camelCase
everywhere, see meshery/schemas docs/identifier-naming-contributor-guide.md),
the consumer reads must match the canonical camelCase wire keys that
meshery-cloud emits post Phase 4. This change is a surgical field-rename
sweep — no behavioural or structural change.
Flipped (45 sites across 20 files):
Catalog / design wire (Pattern, MesheryPattern, CatalogContent):
catalog_data → catalogData
content_class → contentClass
published_version → publishedVersion
pattern_file → patternFile
Pagination wire (MesheryViewPage / TeamsPage / EnvironmentsPage /
DesignsPage / UsersPage / EventsPage):
total_count → totalCount
Role wire (Role):
role_name → roleName (response read in InviteUserModal only;
the `order: 'role_name asc'` request
parameter is left as-is until the cloud
server adds dual-accept on the sort key)
Component / model wire (Component):
display_name → displayName
Files touched:
• src/custom/CustomCatalog/CustomCard.tsx — Pattern interface
• src/custom/CustomCatalog/Helper.ts — getVersion() reads
• src/custom/CatalogDetail/OverviewSection.tsx
• src/custom/CatalogDetail/RelatedDesigns.tsx
• src/custom/CatalogDetail/LeftPanel.tsx
• src/custom/CatalogDetail/CaveatsSection.tsx
• src/custom/CatalogDetail/ActionButton.tsx
• src/custom/CatalogCard/CatalogCard.tsx
• src/custom/PerformersSection/PerformersSection.tsx
• src/custom/Workspaces/WorkspaceTeamsTable.tsx
• src/custom/Workspaces/WorkspaceViewsTable.tsx
• src/custom/Workspaces/EnvironmentTable.tsx
• src/custom/Workspaces/WorkspaceRecentActivityModal.tsx
(also flipped
EventsResponse type)
• src/custom/Workspaces/DesignTable.tsx
• src/custom/Workspaces/hooks/useDesignAssignment.tsx
• src/custom/Workspaces/hooks/useEnvironmentAssignment.tsx
• src/custom/Workspaces/hooks/useTeamAssignment.tsx
• src/custom/Workspaces/hooks/useViewsAssignment.tsx
• src/custom/UsersTable/UsersTable.tsx — totalCount only
• src/custom/DashboardWidgets/GettingStartedWidget/InviteUserModal.tsx
Intentionally retained (sistent-internal contracts, not meshery wire):
• src/hooks/useRoomActivity.ts — `provider_url`, `data.user_map` are
sistent's collaboration WebSocket signaling protocol identifiers, not
meshery wire fields. The signaling server (meshery-cloud collaboration
endpoint) speaks this protocol with sistent and is independent of the
REST API wire-format contract.
• src/custom/CollaboratorAvatarGroup/CollaboratorAvatarGroup.tsx
`User.border_color` is part of sistent's exported `Users` prop shape
(the sistent API surface that consumers pass in). Flipping this would
be a public API break, not a wire-format alignment.
Already retained-as-deferred per prior phases (still deferred, no change):
• src/custom/UsersTable/UsersTable.tsx — `fullUser.organization_with_user_roles?.role_names`
deferred until the containing response type is migrated upstream
(existing inline TODO).
• src/custom/TeamTable/TeamTableConfiguration.tsx — `team_names` /
`team_name` deferred until meshery-cloud bulk-delete handler lands
dual-accept on the request body (existing PR #1431 / cascade-10
decision).
Verified locally: tsc --noEmit (no new errors vs baseline of 105
pre-existing errors), npm run lint (clean), npm test (21/21 passing),
npm run build (success).
Refs: meshery/schemas docs/identifier-naming-contributor-guide.md
Signed-off-by: Lee Calcote <leecalcote@gmail.com>1 parent 27c7f00 commit 3a18882
20 files changed
Lines changed: 45 additions & 45 deletions
File tree
- src/custom
- CatalogCard
- CatalogDetail
- CustomCatalog
- DashboardWidgets/GettingStartedWidget
- PerformersSection
- UsersTable
- Workspaces
- hooks
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
73 | 73 | | |
74 | 74 | | |
75 | 75 | | |
76 | | - | |
| 76 | + | |
77 | 77 | | |
78 | 78 | | |
79 | 79 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
108 | 108 | | |
109 | 109 | | |
110 | 110 | | |
111 | | - | |
| 111 | + | |
112 | 112 | | |
113 | 113 | | |
114 | 114 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
17 | | - | |
| 17 | + | |
18 | 18 | | |
19 | 19 | | |
20 | | - | |
| 20 | + | |
21 | 21 | | |
22 | 22 | | |
23 | 23 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
75 | 75 | | |
76 | 76 | | |
77 | 77 | | |
78 | | - | |
| 78 | + | |
79 | 79 | | |
80 | 80 | | |
81 | 81 | | |
| |||
103 | 103 | | |
104 | 104 | | |
105 | 105 | | |
106 | | - | |
| 106 | + | |
107 | 107 | | |
108 | 108 | | |
109 | 109 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
82 | 82 | | |
83 | 83 | | |
84 | 84 | | |
85 | | - | |
| 85 | + | |
86 | 86 | | |
87 | 87 | | |
88 | | - | |
| 88 | + | |
89 | 89 | | |
90 | 90 | | |
91 | 91 | | |
| |||
111 | 111 | | |
112 | 112 | | |
113 | 113 | | |
114 | | - | |
115 | | - | |
| 114 | + | |
| 115 | + | |
116 | 116 | | |
117 | 117 | | |
118 | 118 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
60 | 60 | | |
61 | 61 | | |
62 | 62 | | |
63 | | - | |
| 63 | + | |
64 | 64 | | |
65 | 65 | | |
66 | 66 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
40 | 40 | | |
41 | 41 | | |
42 | 42 | | |
43 | | - | |
| 43 | + | |
44 | 44 | | |
45 | 45 | | |
46 | 46 | | |
| |||
61 | 61 | | |
62 | 62 | | |
63 | 63 | | |
64 | | - | |
65 | | - | |
| 64 | + | |
| 65 | + | |
66 | 66 | | |
67 | 67 | | |
68 | | - | |
| 68 | + | |
69 | 69 | | |
70 | 70 | | |
71 | 71 | | |
| |||
135 | 135 | | |
136 | 136 | | |
137 | 137 | | |
138 | | - | |
| 138 | + | |
139 | 139 | | |
140 | 140 | | |
141 | 141 | | |
| |||
172 | 172 | | |
173 | 173 | | |
174 | 174 | | |
175 | | - | |
| 175 | + | |
176 | 176 | | |
177 | | - | |
| 177 | + | |
178 | 178 | | |
179 | 179 | | |
180 | 180 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
79 | 79 | | |
80 | 80 | | |
81 | 81 | | |
82 | | - | |
| 82 | + | |
83 | 83 | | |
84 | 84 | | |
85 | | - | |
| 85 | + | |
86 | 86 | | |
87 | | - | |
| 87 | + | |
88 | 88 | | |
89 | 89 | | |
Lines changed: 4 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
131 | 131 | | |
132 | 132 | | |
133 | 133 | | |
134 | | - | |
135 | | - | |
| 134 | + | |
| 135 | + | |
136 | 136 | | |
137 | 137 | | |
138 | 138 | | |
139 | 139 | | |
140 | 140 | | |
141 | | - | |
142 | | - | |
| 141 | + | |
| 142 | + | |
143 | 143 | | |
144 | 144 | | |
145 | 145 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
216 | 216 | | |
217 | 217 | | |
218 | 218 | | |
219 | | - | |
| 219 | + | |
220 | 220 | | |
221 | 221 | | |
222 | 222 | | |
| |||
0 commit comments