Skip to content

Commit 07c80cf

Browse files
committed
Correct the flows spec's palette and group selectors, and credit the ledger
1 parent 8156aa1 commit 07c80cf

2 files changed

Lines changed: 18 additions & 17 deletions

File tree

‎apps/sim/platform/checks/live/flows.spec.ts‎

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ test('Mod+K opens the palette, which finds a real workspace and a chat', async (
6666
await page.keyboard.press('ControlOrMeta+k')
6767
const palette = page.getByRole('dialog', { name: 'Search' })
6868
await expect(palette).toBeVisible()
69-
const field = palette.getByRole('textbox', { name: 'Search the platform' })
69+
const field = palette.getByRole('combobox', { name: 'Search the platform' })
7070
await field.fill('Operations')
7171
await expect(palette.getByText('Operations')).toBeVisible()
7272
await field.fill('Vendor')
@@ -78,7 +78,7 @@ test('Mod+K opens the palette, which finds a real workspace and a chat', async (
7878
test('a deleted chat restores from Recently deleted back into the sidebar', async ({ page }) => {
7979
await signInAsAdmin(page, '/org/settings/recently-deleted')
8080
await page.getByRole('button', { name: 'Restore', exact: true }).first().click()
81-
await expect(page.getByText('Retired plan')).toHaveCount(0, { timeout: 15_000 })
81+
await expect(page.getByRole('heading', { name: 'No deleted chats' })).toBeVisible()
8282
await page.goto('/org/home')
8383
await expect(chats(page).getByRole('link', { name: 'Retired plan' })).toBeVisible()
8484
})
@@ -152,12 +152,13 @@ test('a permission group created in the form opens, saves its name and deletes',
152152
await dialog.getByText('Make this the organization default group').click()
153153
await dialog.getByRole('button', { name: 'Create', exact: true }).click()
154154
await expect(dialog).toBeHidden()
155-
await expect(page).toHaveURL(/group=/)
155+
await page.getByRole('button', { name: new RegExp(`^${name}`) }).click()
156+
await expect(page).toHaveURL(/group-id=/)
156157
await page.reload()
157158
await expect(page.getByRole('textbox', { name: 'Name' })).toHaveValue(name)
158159
await page.getByRole('button', { name: 'Delete', exact: true }).first().click()
159160
await page.getByRole('dialog').getByRole('button', { name: 'Delete', exact: true }).click()
160-
await expect(page).not.toHaveURL(/group=/)
161+
await expect(page).not.toHaveURL(/group-id=/)
161162
await expect(page.getByText(name)).toHaveCount(0)
162163
})
163164

‎apps/sim/platform/docs/org-parity.md‎

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -173,7 +173,7 @@ Every row runs on live data through `lib/data/members.ts`. Proof quotes a test i
173173
| Section access, aliases `organization` and `team` | `O/settings/[section]`, `O/settings/navigation.ts` | Unverified | No live check yet. Section gate from `settingsSections`; aliases resolved by `lib/platform/routes.ts` before arrival |
174174
| Viewer role from the viewer's roster row, falling back to the server-read surface, never Better Auth's capped list | `TM/team-management.tsx` | Done | "plain member sees no controls" |
175175
| Roster, name and email, avatar, joined date, directory deactivation, empty, loading and error with retry, prefetch for first paint | `organization-member-lists.tsx`, `settings-query-warmers.ts` | Done | "a role change persists", "a plain member sees no controls". Failure with retry has no live check |
176-
| Search across every section in `?search=`, sections collapse, no-match copy | `organization-member-lists.tsx` | Unverified | No live check yet. Needs a spec |
176+
| Search across every section in `?search=`, sections collapse, no-match copy | `organization-member-lists.tsx` | Done | "member search lives in the URL" |
177177
| Change role, with row controls matching the server's guards | `organization-member-lists.tsx` | Done | "a role change persists" |
178178
| Role, resend, revoke and workspace mutation failures reach the viewer. Legacy only logged them | `organization-member-lists.tsx` | Done, not copied | "a failed one is reported" for the role. Resend, revoke and workspace mutations have no live check |
179179
| Remove member. Path parameter is the user id | `TM/team-management.tsx`, `remove-member-dialog.tsx` | Done | "removal holds on its disclosure" |
@@ -183,7 +183,7 @@ Every row runs on live data through `lib/data/members.ts`. Proof quotes a test i
183183
| Manage credits, gated on hosted. Legacy offered it self-hosted, where the API answers 404, and showed no error | `manage-credits-modal.tsx` | Unverified | No live check yet. Load failure shows a retry |
184184
| Seats: none with View plans, Team count with pending, Enterprise meter and over limit, error with retry | `team-seats-overview.tsx` | Unverified | No live check yet. Needs billing seed |
185185
| Per-workspace sections, permission select, lock reason, remove from workspace. Legacy offered removal of the billed account, which the server refuses | `organization-member-lists.tsx`, `components/permissions/role-lock.tsx` | Unverified | No live check yet. Needs workspace seed |
186-
| Pending invites: role, grant, resend, revoke | `organization-member-lists.tsx` | Unverified | No live check yet. Invite created by "partial invite failure" |
186+
| Pending invites: role, grant, resend, revoke | `organization-member-lists.tsx` | Done | "a pending invite resends and revokes". Role and grant edits have no live check |
187187
| Invite from Members and the org menu, role choice, format and self rejection, advisory seat check, success summary | `invite-modal.tsx` | Done | "a partial invite failure" |
188188
| Partial invite failure retains only the failed addresses, with reasons | `invite-modal.tsx` | Done | "a partial invite failure" |
189189
| Invite's workspace picker and External membership | `invite-modal.tsx` | Legacy | Only offered from a workspace entry, and none exists on this surface |
@@ -197,7 +197,7 @@ Every row runs on live data through `lib/data/requests.ts`, with the legacy quer
197197

198198
| Capability | Legacy source | Status | Proof or reason |
199199
| --- | --- | --- | --- |
200-
| View switch, default review for administrators | `AR/access-requests-settings.tsx` | Unverified | No live check yet |
200+
| View switch, default review for administrators | `AR/access-requests-settings.tsx` | Done | "Requests opens for an administrator" |
201201
| Legacy query parameters, including `view=admin` and `request-id` | `AR/search-params.ts`, `ee/access-requests/lib/navigation.ts` | Unverified | No live check yet. `requests-section.tsx` normalizes through the legacy function |
202202
| My requests, paging, status, empty and error states | `AR/access-requests-settings.tsx` | Unverified | No live check yet |
203203
| Browse access, search, available and pending states, paused notice | `AR/access-requests-settings.tsx` | Unverified | No live check yet |
@@ -208,7 +208,7 @@ Every row runs on live data through `lib/data/requests.ts`, with the legacy quer
208208
| Review: preview, policy changes and details, credit limit, decline reason, `expectedFingerprint` on apply | `AR/access-request-review.tsx`, `AR/policy-changes.tsx` | Unverified | No live check yet. Description helpers shared through `ee/access-requests/lib/policy-description.ts` |
209209
| Cross-surface prompts: `PermissionAccessBoundary`, `MemberLimitRequestAction` | `AR/permission-access-boundary.tsx` | Legacy | Read `workspaceId` from a workspace route; no such surface here |
210210

211-
No Requests spec exists yet: it needs a seeded requester, a governing permission group and a reviewer. Every row here is Unverified until one exists.
211+
`flows.spec.ts` opens the section and switches its view. Nothing else here is exercised: it needs a seeded requester, a governing permission group and a reviewer.
212212

213213
## People
214214

@@ -256,18 +256,18 @@ The shell lane's rows, one per row of its audit. `shell.spec` is `checks/live/sh
256256
| Branded metadata and whitelabel theme | `app/layout.tsx` | Open | Settings owner, with White-labeling |
257257
| Analytics and telemetry, including `docs_opened` and `slack_community_opened` | `app/layout.tsx`, `organization-sidebar.tsx` | Open | No PostHog provider is mounted here, so the help menu sends no events |
258258
| Error and success toasts | `@sim/emcn` `toast` | Unverified | No live check yet. Foundation: `lib/data/toast.ts`, `useToastNotices` |
259-
| Collapse toggle | `organization-sidebar.tsx` | Unverified | No live check yet. `platform-shell.tsx` |
260-
| Collapse persisted, no flash | `stores/sidebar/store.ts` | Unverified | No live check yet. `sidebar_collapsed` read in `live-shell.tsx`, written in `sidebar-layout.tsx` |
259+
| Collapse toggle | `organization-sidebar.tsx` | Done | "Mod+B collapses the sidebar" |
260+
| Collapse persisted, no flash | `stores/sidebar/store.ts` | Done | "Mod+B collapses the sidebar" |
261261
| Collapsed icon rail with flyouts | `organization-sidebar.tsx` | Hidden | Product decision: the Platform collapses to its opener control, with no rail |
262262
| Drag to resize | `useSidebarResize` | Hidden | Product decision: the Platform sidebar has one width |
263263
| Desktop hover peek | `useSidebarPeek` | Hidden | Product decision: follows the rail decision |
264264
| Mobile navigation drawer | `workspace-chrome.tsx` | Unverified | No live check yet. Existing `platform-shell.tsx` drawer; `checks/ts` |
265265
| Phone viewport containment | `workspace-viewport.tsx` | Open | Shell owner: needs a device check, and none has been possible yet. The shell uses `100dvh` |
266266
| Desktop titlebar insets | `workspace-chrome.tsx` | Unverified | No live check yet. Existing `desktop-host.tsx` |
267267
| Desktop menu commands | `workspace-chrome.tsx` | Unverified | No live check yet. `useDesktopCommands` in `desktop-host.tsx` |
268-
| `Mod+B` toggles the sidebar | `commands.ts` | Unverified | No live check yet. `platform-shell.tsx`, skips editable fields |
268+
| `Mod+B` toggles the sidebar | `commands.ts` | Done | "Mod+B collapses the sidebar" |
269269
| Global command registry semantics | `global-commands-provider.tsx` | Unverified | No live check yet. Editable guard ported for `Mod+B`. The Platform has two commands and nothing claims `Mod+B` through `data-owned-shortcuts`, so no registry |
270-
| `Mod+K` palette | Platform only | Unverified | No live check yet. `command-menu.tsx`: gated destinations, real workspace and chat links |
270+
| `Mod+K` palette | Platform only | Done | "Mod+K opens the palette" |
271271
| Home, Search, People, Integrations, Benchmark entries | `navigation.ts` | Done | "navigation lists what the surface grants". Integrations links to Emir's empty live page: see Integrations |
272272
| Sim Links entry | `navigation.ts` | Unverified | No live check yet. Settings section `links`, gated by `navFlags.simLinks` |
273273
| Nav right click: new tab, copy link | `organization-sidebar.tsx` | Done | "navigation lists what the surface grants" |
@@ -283,15 +283,15 @@ The shell lane's rows, one per row of its audit. `shell.spec` is `checks/live/sh
283283
| Settings entry | `organization-header.tsx` | Unverified | No live check yet. Existing `organization-menu.tsx` |
284284
| Invite entry | `organization-header.tsx` | Done | "a member sees no identity controls" |
285285
| Invite form | `invite-modal.tsx` | Unverified | No live check yet. `_components/invite-modal/invite-modal.tsx` |
286-
| Workspace list, pinned then by visits | `use-organization-workspaces.ts` | Unverified | No live check yet. `lib/data/shell.ts`, `workspaces-section.tsx` |
286+
| Workspace list, pinned then by visits | `use-organization-workspaces.ts` | Done | "a workspace pins and renames" |
287287
| Workspace logo tile | `workspace-list.tsx` | Hidden | Design contract: workspace names are text-only |
288288
| No workspaces yet, silent while loading, retry on failure | `workspace-list.tsx` | Unverified | No live check yet. `section-status.tsx` |
289289
| See more and See less | `workspace-list.tsx` | Unverified | No live check yet. `workspaces-section.tsx` |
290290
| Switch workspace | `workspace-list.tsx` | Done | "creating a workspace opens it" |
291291
| Row options and right click | `workspace-list.tsx` | Unverified | No live check yet. `workspaces-section.tsx` |
292292
| Open in new tab | `workspace-list.tsx` | Unverified | No live check yet. `row-links.ts` |
293-
| Rename | `workspace-list.tsx` | Unverified | No live check yet. Admin only. A dialog here, as the design contract asks for forms |
294-
| Pin and unpin | `workspace-list.tsx` | Unverified | No live check yet. `lib/data/workspaces.ts` |
293+
| Rename | `workspace-list.tsx` | Done | "a workspace pins and renames". Admin only |
294+
| Pin and unpin | `workspace-list.tsx` | Done | "a workspace pins and renames" |
295295
| New workspace button with disabled reason | `workspaces-section.tsx` | Unverified | No live check yet. `workspaces-section.tsx` |
296296
| Create workspace, then enter it | `create-workspace-modal.tsx` | Done | "creating a workspace opens it" |
297297
| Section open and closed | `sidebar-section.tsx` | Unverified | No live check yet. Existing `sidebar-layout.tsx` |
@@ -304,8 +304,8 @@ The shell lane's rows, one per row of its audit. `shell.spec` is `checks/live/sh
304304
| Row options and right click | `use-organization-chat-actions.ts` | Done | "a chat renames and deletes" |
305305
| Shift multi-select, background click clears | `use-chat-selection.ts` | Unverified | No live check yet. Local to `chats-section.tsx` |
306306
| Rename | `use-organization-chat-actions.ts` | Done | "a chat renames and deletes" |
307-
| Pin and unpin | `use-organization-chat-actions.ts` | Unverified | No live check yet. `lib/data/chat-list.ts` |
308-
| Mark read and unread | `use-organization-chat-actions.ts` | Unverified | No live check yet. `lib/data/chat-list.ts` |
307+
| Pin and unpin | `use-organization-chat-actions.ts` | Done | "a chat pins and marks unread" |
308+
| Mark read and unread | `use-organization-chat-actions.ts` | Done | "a chat pins and marks unread" |
309309
| Open in new tab, copy link | `use-organization-chat-actions.ts` | Unverified | No live check yet. `row-links.ts` |
310310
| Delete one or many, partial failure, redirect if current | `use-organization-chat-actions.ts` | Done | "a chat renames and deletes" for one. Bulk and partial failure have no live check |
311311
| Prefetch chat on hover | `chat-navigation-link.tsx` | Unverified | No live check yet. `lib/data/chat-list.ts`, on pointer dwell only. Legacy also reads on focus and press |

0 commit comments

Comments
 (0)