Workspace manager - design proposal
Design B selected by the Star Colonel on 2026-10-23 and refined to his notes. Aligned with the design system of the jupyterlab-extension skill on 2026-10-28, section 12. The functional requirements are acceptance criteria in docs/acc-crit.md.
1. The panel it replaces
Screenshot of the live lab on 2026-10-23 (JupyterLab 4.6.4), taken in a scratch workspace that was deleted afterwards.
- Seven sections in one column: Open Tabs, Kernels, Language servers, Recently Closed, Workspaces, Terminals, Launcher application
- The 16 terminals of this server read
terminals/1toterminals/16; none shows the program that runs in it or when it was last used - Workspaces are a flat list of names; nothing shows which terminal or kernel belongs to which workspace
- Sidebar icon today:
(a circle with a square); the extension brings its own, section 8
2. Decided by the Star Colonel
- The extension replaces the built-in panel completely ("our extension completely replaces the old one")
- Design B, the tinted cards, is the starting point ("design B - refine it, we will start from this") superseded, section 12: DQ-02; the cards carry no tint
- This window's workspace is not expanded by default ("selected workspace would not be expanded by default")
- Three counts in the card header - tabs, terminals, notebooks - each with its own icon; the terminal icon stays, tabs and notebooks get new ones ("tabs must have different icon; terminals ok; notebooks is ok, but must use different icon for that (kernel?)")
- Better legibility ("improve legibility")
- This window's workspace carries no "current" mark; a
--jp-brand-color2outline goes around its card ("selected will not be 'current', just brand 2 outline around it") - Every card has an open and close triangle ("there must be open / close triangle for the workspace")
- The card of this window's workspace has a stronger background colour ("the bg colour must get stronger too for the selected one") superseded, section 12: DQ-02
- Sidebar icon 4, the four panes ("icon - 4 panels")
- Colours are given automatically and the user can change them ("autocolours, but user can change"); the extension's own palette, not the colourful tab's variables superseded, section 12: DQ-01; the colours are --jp-* tokens
- The stronger tint is the hint that marks the selected workspace; the edge colours stay ("it is about hinting with stronger tint that this is the selected workspace") superseded, section 12: DQ-02
- The hint is as strong as the coloured tabs make it between an inactive and an active tab ("tint is not strong enough; look at the coloured tabs - that we make a difference between inactive vs active tab") superseded, section 12: DQ-02
- Only this window's card is strong; the other cards stay as they were, and the card's body is weaker than its header ("only selected one strong, keep unselected ones as you had them before; and the selected one is too strong now, keep that strength for the workspace header") superseded, section 12: DQ-02
- The colour strip of this window's card looks as on every other card ("keep the edge coloured tab same style as the inactive ones")
- The card's parts fit exactly ("must do perfect fit")
- No spacing between the outline and the card, nor between the strip and the background ("outline must fit perfectly, those spacings that I shown must not be")
- The remaining recommendations stand ("ok, start filling up acc crits"): section 9
- Each workspace has a toggle "hidden" with an eye icon; a "..." button in the header opens the workspace's menu
- The panel has a refresh button and a filter that finds anything, the same concept as the filter of
jupyterlab_ai_code_assistants_extension - A + button adds a new workspace and asks for its name and an optional description, which is the purpose shown on the card ("and + for adding new workspace; asks for name and description (optional)")
- The description is short, at most 100 characters, in a larger field with a character counter ("also update design to show short description (100 characters max)", "larger input box for desc", "char counter - 45/100")
- Every item of the workspace menu has an icon ("and menu must have icons")
- The colour swatches look like those of the coloured tabs ("colour swatvches - same style as for tabds in coloured tabs extension") superseded, section 12: DQ-01
- The open icon is candidate 2, the arrow in a circle ("open looks like exit (icon)", "different icon", then "ok" to the recommendation)
- A new sidebar icon replaces the old one
- The functional requirements are written as acceptance criteria and defects through pm-tools, author
@kj
3. Where the data comes from
The five open questions of the brief, each answered from the JupyterLab 4.6.4 source and from probes on this server.
| Question | Answer | Evidence |
|---|---|---|
| How is a terminal or a kernel assigned to a workspace? Where does one show that belongs to no workspace, or to two? |
|
16 terminals on this server: workspace default holds 5 (7, 11, 13, 14, 15), auto-6 holds 1 (1), 10 are in no workspace. The culler sibling reads the same terminal:<name> keys to protect terminals. |
| Where does the "last accessed" time of a workspace come from? |
|
Probe 2026-10-23: a workspace with its time set 2 days back was opened in a headless browser; with no click, its last_modified became the load time. Source: apputils-extension state plugin, a 500 ms debouncer around workspaces.save. The culler deletes a workspace when this same time is older than its idle timeout (7 days by default; never default), so the age is also the culler's clock. |
| Where do the last activity time and the process name of a terminal come from? |
|
The REST model of a terminal is {name, last_activity} only. Probe 2026-10-23: the foreground process of each terminal shell of this server reads claude or fish from /proc. Source: terminal/src/widget.ts, onTitleChange sets title.label. |
| How are the tabs of a workspace that is not the current one read and closed? |
|
Saved layout of default on 2026-10-23: main.dock.widgets = terminal:14, terminal:11, terminal:13, terminal:15, terminal:7, each with a data entry {"name": "<n>"}. The built-in Workspaces section reads the tab count the same way. |
| Replace the built-in panel or add a panel? |
|
Source of running-extension 4.6.4: the sidebar is its own plugin, restorer.add(running, 'running-sessions'); jupyterlab_server reads disabledExtensions from an extension's package.json (config.py, lines 170 to 173). |
4. Design B, refined
At load: no card is open
After a click on the card of this window's workspace, then on a KERNELS row (the panel's one selected row)
Icons
- No card open at load, the card of this window's workspace included; a click on a triangle opens a card and closes the one that was open
- Triangle before every name: pointing right on a closed card, down on the open one. A click on the triangle opens or closes that card and never switches this window; a click on the header of another workspace's card, outside its triangle and its buttons, switches this window to that workspace; a click on the header of this window's card, of In no workspace or of Other sessions opens or closes that card
- This window's workspace has a 2px
--jp-brand-color2outline lying against its card's edge. Its header takes the active shade of its colour, the shadejupyterlab_colourful_tab_extensiongives an active tab, and its body a 40% mix of that shade into the panel colour, so the header is the strongest part. Every other card header keeps its 8% tint. The colour strip is the same on every card and meets the background directly. It is also the first card superseded, section 12: DQ-02, DQ-01 - Fit: each card is one rounded shape (3px radius) that clips everything inside it - the strip and the backgrounds are square layers, so the strip follows the corners and no seam or notch shows; the outline lies against the card's edge and follows its corners. In CSS:
border-radius: 3px; overflow: hiddenon the card andoutline: 2px solid var(--jp-brand-color2); outline-offset: 0, which follows the radius superseded, section 12: DQ-02 - In Light the strip has the colour of this window's active header, so on that card it shows against the paler body only superseded, section 12: DQ-01
- Tabs count uses JupyterLab's own
tabIcon(a window with a tab); the rows under Tabs keep the file-type icon of each document, as JupyterLab's tabs do - Notebooks count and kernel rows use JupyterLab's own
kernelIcon(the chip of the status bar); the count is the number of kernels of the workspace's notebooks and consoles; a kernel row shows the display name of its kernelspec, with the kernelspec id in its tooltip superseded, section 12: DQ-17 - Terminal glyph stays as approved; it is the extension's own outline glyph, because JupyterLab's
terminalIconis a filled block that draws heavier than the two others - Kernel state is a dot before the time:
--jp-success-color1idle,--jp-brand-color2busy,--jp-layout-color4unknown superseded, section 12: DQ-13 - Card actions: a closed card shows open (an arrow in a circle; the candidates are under Workspace menu) and close-all-tabs as icons on hover; while they show they take the place of the age, so the name keeps its width; Open is disabled on this window's workspace. An open card ends with its last row and shows no Open or Close all tabs button; both actions stay in its ... menu superseded, section 12: DQ-12, DQ-17
Legibility
Measured as WCAG contrast ratio of text to its background; WCAG AA asks 4.5:1 for text under 18px. Galaxa Dark Theme - Steel sets --jp-ui-font-size1 to 11px and its colour 2 (#7d8791) reads 3.3:1 even on the plain panel, so the refined cards keep colour 2 out of every text. Each value is the lowest of the six workspace colours. superseded, section 12: DQ-03, DQ-06, DQ-07, DQ-08, DQ-09, DQ-10 replace the colour, size and hover rules of this table
| Text | First draft of B | Refined | Galaxa Steel | Light |
|---|---|---|---|---|
| Workspace name | 12px, colour 1, 12% tint | --jp-ui-font-size2 (13.2px), semibold, colour 0, 8% tint | 3.7 → 5.6 | 14.8 → 19.8 |
| Purpose | 11px italic, colour 2 | size 1 (11px), regular, colour 0 | 2.5 → 5.6 | 4.2 → 19.8 |
| Age and counts | 11px, colour 2 | size 1, colour 0; glyphs colour 1 | 2.5 → 5.6 | 4.2 → 19.8 |
| Header of this window's workspace | colour 2 on 22% tint (open card) | colour 0 on the active shade | 2.0 → 6.7 | 4.0 → 9.9 |
| Row detail (terminal name, notebook) | 11px, colour 2 | size 1, colour 1 on a neutral body | 3.3 → 4.8 | 4.6 → 16.1 |
| Row detail in this window's open card | colour 2 | colour 1 on the body (40% of the active shade) | 3.3 → 4.8 | 4.6 → 12.6 |
| Row detail on a hovered row | colour 2 on layout 2 | colour 0 under a 12% veil of the text colour | 2.4 → 5.2 | 4.0 → 7.7 |
| "now" | brand colour 1 | colour 0, semibold, plus a brand colour 2 dot | 3.8 → 5.6 | 4.6 → 19.8 |
- No italics anywhere; no text below size 1 except the group labels (size 0, uppercase, semibold) superseded, section 12: DQ-08, DQ-03, DQ-06
- The brand colour 2 outline reads 5.4:1 against the panel in Galaxa Steel but 2.65:1 in Light, under the 3:1 WCAG asks for a graphic that carries meaning; in Light the card's place at the top of the list carries the same fact
- Every other card header keeps an 8% tint of its colour. This window's header takes the active tab shade, its body a 40% mix of it: in Light the body is a paler form of the header; in Galaxa Steel the active shades sit at the panel's own brightness and differ from it by hue, as on the tabs superseded, section 12: DQ-02
- The body of another open card stays neutral (
--jp-layout-color1) superseded, section 12: DQ-02 - A hovered row lays a 12% veil of the text colour over its background, so it reads on a neutral body and on the active shade alike superseded, section 12: DQ-10
- Buttons are filled with
--jp-layout-color2: Galaxa Steel's border colour 2 is the same#404b54, which left the outlined buttons of the first draft at 1.4:1 to the panel superseded, section 12: DQ-03 - Brand colour 2 alone would give "now" 2.65:1 in Light and brand colour 1 3.8:1 in Galaxa Steel, so the word is colour 0 and the colour moves to the dot, the activity marker of the design language superseded, section 12: DQ-09
5. Behaviour common to the panel
Panel header
- Title "WORKSPACES" and the number of workspaces shown in brackets: WORKSPACES (4) superseded, section 12: DQ-06; the title reads WORKBENCH and the count moved to the WORKSPACES section header (ACC-PANEL-184-TITLE-NAME, 2026-10-25)
- Four 24px buttons, in this order: new workspace (+), filter (shows or hides the filter field), show hidden (eye; shows the hidden workspaces), refresh. No Search tabs button sits in the header; the command stays in the command palette
- Refresh reloads workspaces, terminals, sessions and process names; its icon turns for at least 500 ms and the button is disabled until the requests return
- While the panel is visible it reloads by itself every 10 s, without the turning icon
New workspace
- The + button opens the dialog "New workspace": Name, with the keyboard focus, and Short description (optional), the purpose the card shows; Enter creates, Escape closes without a change
- The name follows JupyterLab's own rule for workspace names: letters, digits,
-and_, because the name becomes the address/lab/workspaces/<name>. Create stays disabled until the name follows the rule - A name that a workspace already has is refused. JupyterLab's own Create New Workspace saves over such a workspace and its layout is lost; the dialog checks the name against a fresh list of workspaces before it saves
- The short description is a box of three lines that wraps the text, with a counter under it (
64/100) that changes with every keystroke. It holds at most 100 characters and no line break, so Enter still creates; it is shown as plain text; left empty, none is stored. Set description... in the workspace menu uses the same field - Create saves an empty layout through JupyterLab's workspaces API and stores the purpose and the next colour of the rotation in the extension's records file. The new card is last in the list (ACC-ACCORD-198-NEW-LAST), open and with the age "now"
- This window stays in its workspace; Open workspace or Open in new browser tab in the new card's menu goes to the new workspace
- The dialog is JupyterLab's own Dialog, so its buttons take the theme's colours. An error is a line of colour 0 after a dot in the error colour, because the error colour reads 3.2:1 as text in Galaxa Steel superseded, section 12: DQ-14, DQ-15
Filter
- As in the AI assistants panel: the filter button shows a field under the header; hiding the field clears the filter; a clear button sits inside the field
- The match is the AI panel's: case, accents and separators (
- _ . /and spaces) are ignored, then a substring match with a 5% edit tolerance for queries of 10 or more characters - Searched: workspace name, purpose, tab names and paths, process names, terminal names and tab titles, kernel display names and kernelspec ids and their notebooks
- Only rows that match are shown, and a workspace without a match is not shown; the card header reads "(N of M)". The filter narrows the workspace cards only; the KERNELS, TERMINALS and LANGUAGE SERVERS sections keep every row
- While a filter is active, every card with a match is open; a click on a card's triangle then opens or closes that card only, and the filter stays; the open card of before returns when the filter is cleared
Workspace menu
- Items: Open workspace, Open in new browser tab, Close all tabs, Set description..., Colour (the six colours), Hide workspace, Delete workspace
- Each item has a 16px icon before its label: Open workspace an arrow in a circle, the same icon as on the card header; Open in new browser tab an arrow out of a box; Close all tabs the card header's icon; Set description a pencil; Colour the swatch of the workspace's colour; Hide workspace an eye with a stroke; Delete workspace a bin
- Only the bin takes the error colour, and the warning icon of an armed Confirm delete in its place; the label Delete workspace stays colour 0, because the error colour reads 3.2:1 as text in Galaxa Steel superseded, section 12: DQ-11
- The Colour submenu matches the Tab Colour menu of
jupyterlab_colourful_tab_extension: before each name - Red, Orange, Yellow, Green, Blue, Purple - a 12px square swatch with 2px corners and a 1px grey border. The border is--jp-layout-color4where the tab extension writes#888, because this extension styles through JupyterLab variables only. The swatch takes the strip colour, so it shows the colour the card will carry superseded, section 12: DQ-01 - Delete workspace is the design system's two-step action: the first click arms "Confirm delete", showing a warning icon in the error colour in place of the bin, and the second click deletes; at rest, armed and active the label keeps the menu's normal text colour and the row the normal selection background; it never runs on this window's workspace superseded, section 12: DQ-11
- Close all tabs asks once when the workspace holds terminals, because the culler may then shut those terminals down after its idle time
Candidates for the Open workspace icon, each as a hover button beside close-all-tabs and enlarged. Decided by the Star Colonel: 2, the arrow in a circle. An arrow into a box read as exit, and two opposite arrows were rejected.
Hidden workspaces
- Hide workspace removes the card from the panel; the line under the last card reads "N hidden workspaces"
- The eye button in the header shows the hidden workspaces among the others, with the word "hidden" and an eye button that shows the workspace again superseded, section 12: DQ-12
- The terminals and kernels of a hidden workspace stay in the KERNELS and TERMINALS sections, which list every kernel and terminal
- This window's workspace is never hidden
Rules of the cards
- At most one card is open; opening a card closes the open one; no card is open at load
- A click on a card's triangle opens or closes that card; a click on the header of another workspace's card switches this window to that workspace; a click on the header of this window's card opens or closes it
- Order: one stored order that opening, switching or saving a workspace does not change; a drag, or Move up and Move down in the card menu, changes it; a new workspace goes last (ACC-ACCORD-190-FIXED-ORDER, ACC-ACCORD-191-DRAG-ORDER, ACC-ACCORD-198-NEW-LAST)
- Each tab is listed once: documents and other widgets under Tabs, terminal tabs under Terminals, the kernels of notebook and console tabs under Kernels
- A row click opens the item: a document or terminal of this window's workspace is activated; one of another workspace opens that workspace, unless another window shows it
- Ages use the design system's labels:
now,Nm,Nh,Ndsuperseded, section 12: DQ-09
6. Workspace colours
- Six colours in the order of
jupyterlab_colourful_tab_extension: rose, peach, lemon, mint, sky, lavender superseded, section 12: DQ-01 - A new workspace takes the next colour after the last one given; the colour is stored, so deleting a workspace does not move the colours of the others; the menu changes it
- Each colour has an active shade, the value
jupyterlab_colourful_tab_extensiongives an active tab, the same as in this lab's settings. Light: rose#e39fb1... sky#77bae0. Galaxa Steel and dark themes: rose#3a2328... sky#1d2a38. It colours only the header of this window's card and, mixed 40% into the panel, its body; other headers take an 8% tint of the strip colour superseded, section 12: DQ-01, DQ-02 - The 4px strip keeps the brighter values (light theme: the active shade; dark theme: the light pastel), because the dark shades almost disappear as a thin line on a dark panel superseded, section 12: DQ-01
- The palette is the one place where the extension defines colour values, as the colourful tab extension does; everything else is a
--jp-*token superseded, section 12: DQ-01
7. Working with the culler sibling
- The age shown is the culler's own clock (
last_modified), so a workspace near its idle timeout reads as old in the panel - Purpose, colour and hidden state are not written into the workspace file: a write there would reset the culler's clock and would race with a window that has the workspace open. They live in the extension's own file beside the workspaces
- Close all tabs on another workspace removes its
terminal:<name>keys; the culler then treats those terminals as in no workspace - A workspace, terminal or kernel the culler removes leaves the panel at the next reload; the extension drops the stored record of a deleted workspace
- A new workspace that nobody opens ages like any other: the culler deletes it after its workspace idle time (7 days by default)
- The extension shuts down nothing by itself; every shutdown and every delete is a click of the user
8. Sidebar icon
- Four candidates, drawn in one colour as the design system asks for the rail
- Decided by the Star Colonel: 4, four panes in a 2 by 2 grid with the top-left one filled
9. Choices, all decided on 2026-10-23
| Choice | Decision |
|---|---|
| 1. Visual design | B, tinted cards, refined |
| 2. Filter | every card with a match is open while the filter is active (recommendation, accepted with "ok") |
| 3. Counts | tabs, terminals, notebooks in each card header; the number of cards in the panel header |
| 4. Tab list | each tab once (recommendation, accepted with "ok") |
| 5. Records | the extension's own file beside the workspaces (recommendation, accepted with "ok") |
| 6. Colours | given automatically from the extension's own palette, which starts from the colourful tab's active tab shades; the user changes them in the workspace menu |
| 7. Sidebar icon | 4, four panes |
| 8. Hide this window's workspace | not possible (recommendation, accepted with "ok") |
| 9. Clicks on a card | the triangle opens or closes it; the header of another workspace switches to that workspace |
10. Acceptance criteria
The criteria live in docs/acc-crit.md, written through pm-tools as @kj: 169 in 9 categories, none open, 161 closed and 8 rejected. Importance: 14 CRITICAL, 57 HIGH, 76 MEDIUM, 22 LOW. Each names its test: 57 with a Jest or pytest test, 128 with a Galata test (a criterion with both counts twice). pm-tools report docs/acc-crit.md prints the status.
- Rejected and replaced:
ACC-ACCORD-12-START-OPENbyACC-ACCORD-68-START-CLOSED;ACC-ACCORD-14-CURRENTbyACC-ACCORD-76-OUTLINE;ACC-ACCORD-79-CURRENT-TINT(16% tint) byACC-ACCORD-124-CURRENT-SHADE(shades on every card), which in turn was replaced byACC-ACCORD-125-SELECTED-SHADE(only this window's card strong);ACC-ACCORD-126-STRIP-SAMEandACC-ACCORD-127-FIT(both with spacing) byACC-ACCORD-128-STRIP-PLAINandACC-ACCORD-129-FLUSH;ACC-ACCORD-21-AGE-NOW(brand colour 1) byACC-ACCORD-130-NOW-DOT;ACC-PANEL-136-HEADER-BUTTONS(three buttons) byACC-PANEL-147-HEADER-ORDER - Filed for the + button:
ACC-PANEL-140-NEW-BUTTONtoACC-PANEL-146-NEW-STAY- the button, the dialog, the name rule, an existing name refused, the purpose, the saved workspace, this window staying where it is - Changed for the short description: at most 100 characters in
ACC-ACCORD-100-PURPOSE-LENGTH,ACC-SERVER-119-META-VALIDATEandACC-PANEL-144-NEW-PURPOSE; the menu item Set description inACC-ACCORD-19,29and99; addedACC-ACCORD-148-MENU-ICONS,ACC-PANEL-149-DESC-COUNTandACC-ACCORD-150-COLOUR-SWATCH - Filed after an audit of this page against the criteria:
ACC-ACCORD-131-OPEN-BUTTONStoACC-FILTER-139-UNMATCHED- the buttons of an open card, the name size, other kernel states, group labels, the counts of In no workspace, the header button order, Other sessions closed at load, labels on icon buttons, the line of workspaces without a match - Filed for the decided choices:
ACC-PANEL-80-WS-COUNTonwards, among themACC-LISTS-81-ONCE,ACC-FILTER-82-OPEN-MATCHES,ACC-SERVER-84-META-FILE,ACC-CULLER-85-NO-MTIME,ACC-ACCORD-86-OWN-PALETTE,ACC-HIDDEN-87-NOT-CURRENT - Filed for the additions of section 11:
ACC-PANEL-88-STATUSBARtoACC-SERVER-123-NO-TERMINALS - Filed on 2026-10-24 for the findings of round 3 of the implementation review that were deferred:
ACC-PANEL-152-NARROW-LABELS,ACC-ACCORD-153-HOVER-NAME,ACC-LISTS-154-TAB-SHRINK,ACC-ACCORD-155-ARMED-COLOUR,ACC-KERNEL-156-DISPLAY-NAMEandACC-PANEL-157-OTHERS-ACTIONS- the labels whole at 250 px, the hover icons in place of the age, the text of a row that gives way first, the armed delete warning icon, the kernel display name, the Other sessions actions - Filed on the Star Colonel's word the same day:
ACC-LISTS-158-LANG-LISTED,ACC-PANEL-159-LANG-OTHERS,ACC-LISTS-160-LANG-ONLYandACC-LISTS-161-LANG-ACTIONS- language servers are listed in In no workspace, not under Other sessions - Filed on the Star Colonel's word the same evening:
ACC-ACCORD-162-TRIANGLEtoACC-PANEL-169-NO-SEARCH- the triangle and the header clicks, no buttons in an open card, counts in brackets, no Search tabs button in the header
11. Added while filling the criteria
A complete replacement of the Running panel needs these; they are filed as criteria and wait for the Star Colonel's veto.
- Row actions in a context menu (right-click or the context-menu key), as the design system prescribes for rows that open something: close one tab, shut down a terminal, shut down a kernel; shutting down a terminal that another workspace holds asks first superseded, section 12: DQ-11
- Shut down all on the header of KERNELS, TERMINALS and LANGUAGE SERVERS: the kernels and terminals ask once with the number of items, and the language servers keep the confirmation text and the row action of the replaced panel - a shutdown button on every row
- JupyterLab's own entry points keep working: the status bar item of running terminals and kernels opens the panel; the Search tabs command stays in the command palette
- Keyboard: Tab reaches a card's triangle and its header, Enter or Space on either does what a click does, arrow keys move between rows, a 1px brand colour 1 outline shows keyboard focus only superseded, section 12: DQ-19, OPT-2
- Description dialog (Set description...): the three-line Short description field with its counter, focused, Enter saves; at most 100 characters; shown as plain text, never as markup superseded, section 12: DQ-14
- Records file:
workspace-manager.jsonin the lab's workspaces directory; one workspace changed per request; written whole through a temporary file; an unreadable file is moved aside to.bad - Failures: without the server extension the panel still lists workspaces, terminals by name and kernels; a failed reload shows one line and keeps the last content; a filter without a match says so superseded, section 12: DQ-15
- Long names end in an ellipsis with the full text in the tooltip; in a row too narrow for its text, a tab's folder shortens before its file name, while a terminal or kernel row shortens its also in <name> mark first, down to the words also in, then the label and the detail together, each keeping its first characters, and the age stays whole; the card list scrolls under a fixed header superseded, section 12: DQ-17, KERN-02, DQ-05
- After Create this window stays in its workspace and the new card opens in the list. The other way is to switch this window to the new workspace at once
12. Design-system alignment, decided on 2026-10-28
On 2026-10-28 the Star Colonel answered the design questions of the render checklist and adopted the design system of the jupyterlab-extension skill (SKILL.md design sections, design-language.md, design-system/extension-design-system.dc.html, references/dialog-controls.md) for each point below. Where this section and sections 2 to 6 or 11 differ, this section holds; each statement it replaces carries a pointer here. The models of sections 4 to 6 draw the aligned design.
| Id | Decision | Design-system rule it adopts | Criteria |
|---|---|---|---|
| DQ-01 | Every colour is a --jp-* token, never a literal value; a theme flip changes the same token names, and the extension's CSS has no light or dark branch. The six workspace colours become theme tokens; workspaces stay told apart by colour as far as the tokens allow (table below) | Colour tokens: "Read colour only from lab tokens", "A theme flip overrides the same --jp-* names; no light or dark branch in extension CSS"; design-language Colour choice | ACC-PANEL-203-TOKENS-ONLY, ACC-ACCORD-86-OWN-PALETTE, ACC-ACCORD-15-STRIP, ACC-ACCORD-150-COLOUR-SWATCH; rejected ACC-ACCORD-188-STRIP-SATURATION |
| DQ-02 | A card has 2 px corners, a --jp-layout-color1 body with a 1 px --jp-border-color1 border, and a header one step up on --jp-layout-color2. No header tint, no active shade, no coloured border; the colour stays on the 4 px strip, which is the card's left border | Cards & surfaces: "Card: --jp-layout-color1 body plus 1px var(--jp-border-color1); header one step up on --jp-layout-color2"; Spacing & radius: "Every corner is var(--jp-border-radius) (2px)" | ACC-ACCORD-69-CARD, ACC-ACCORD-128-STRIP-PLAIN, ACC-ACCORD-129-FLUSH; rejected ACC-ACCORD-125-SELECTED-SHADE |
| DQ-03 | A section header is a band on --jp-layout-color2: 6 px above and below the text, the caret on the 4 px inset, the label 18 px from the edge in weight 600, uppercase, 1 px letter spacing, --jp-ui-font-size0; the count in --jp-ui-font-color2 6 px after the label; hover --jp-layout-color3; no drop shadow | Sections & headers; Spacing & radius ("section headers 6px 10px", "In-flow surfaces take depth from layered --jp-layout-color*, never a drop shadow") | ACC-PANEL-192-SECTION-TITLES, ACC-PANEL-74-TEXT-SIZE, ACC-PANEL-80-WS-COUNT, ACC-PANEL-168-COUNT-BRACKETS, ACC-PANEL-152-NARROW-LABELS |
| DQ-04 | The four sections are independent, not an accordion: each starts open, a click opens or closes only that section, and the open state is saved per panel in localStorage, read and written in try/catch | Sections & headers: "Every section starts expanded. The state is saved per panel in localStorage" | ACC-PANEL-182-SECTION-HEADS, ACC-PANEL-208-SECTION-STORE, ACC-PANEL-8-POLL, ACC-ACCORD-11-ONE-OPEN; rejected ACC-PANEL-137-OTHERS-CLOSED |
| DQ-05 | Each section's list is its own scroll container (overflow-y: auto; min-height: 0), its header sticks at the top (position: sticky; top: 0), scrollbar-gutter: stable, height clamp(5 rows, 33vh, 10 rows); never two scroll containers on one axis | Panel construction, Sections and scroll | ACC-PANEL-90-SCROLL, ACC-PANEL-8-POLL |
| DQ-06 | The panel header is a band 24 to 30 px tall on --jp-layout-color2; the title WORKBENCH is weight 600, uppercase, 1 px letter spacing, --jp-ui-font-size0 | Sections & headers: "Header 24-30px on --jp-layout-color2"; Panel construction, Header | ACC-PANEL-201-HEADER-BAND, ACC-PANEL-152-NARROW-LABELS |
| DQ-07 | The root and primary text are --jp-ui-font-color1; meta text, counts, the caret and empty states are --jp-ui-font-color2. The 4.5:1 contrast floor of section 4 goes | Panel construction, Theme contract and Root | ACC-PANEL-202-TEXT-COLOURS; rejected ACC-PANEL-73-TEXT-CONTRAST |
| DQ-08 | An empty state is italic, --jp-ui-font-color2, --jp-ui-font-size0 | Panel construction, Rows (empty state) | ACC-PANEL-75-NO-ITALIC, ACC-PANEL-74-TEXT-SIZE |
| DQ-09 | Ages read now, Nm ago, Nh ago, Nd ago, Nmo ago, Ny ago, and never without a time. Under 60 s the name and the time are --jp-brand-color1 with jp-mod-recentlyActive; over 7 days the name alone is at opacity 0.65 with jp-mod-stale. The brand colour 2 dot before "now" goes | Lists & rows, Recency emphasis and Time labels | ACC-ACCORD-20-AGE, ACC-ACCORD-130-NOW-DOT |
| DQ-10 | A hovered row is --jp-layout-color2, with no veil of the text colour; a selected row is --jp-layout-color2 | Panel construction, Theme contract ("Header, band, hover"); Lists & rows ("selected on layout-color2") | ACC-LISTS-211-ROW-HOVER, ACC-LISTS-210-ROW-SELECT |
| DQ-11 | Delete workspace draws label and icon in --jp-error-color1 at rest and while selected, through a danger class in its command's className; armed it reads Confirm delete with jp-mod-confirm in --jp-error-color1. The row entries Shut down terminal and Shut down kernel are destructive entries too | design-language Destructive menu entry and Two-step destructive action; Dialogs & popups build notes | ACC-ACCORD-148-MENU-ICONS, ACC-ACCORD-155-ARMED-COLOUR, ACC-LISTS-212-DANGER-ENTRIES |
| DQ-12 | The card header counts as a header: every header and toolbar icon keeps its place on every view; an icon that does not apply is disabled, never removed. Open workspace, Close all tabs, the eye and ... show on every card at all times | design-language Header icons never hide between views; Panel construction, Icon states (Disabled: "Glyph holds its place") | ACC-ACCORD-98-HOVER-ACTIONS, ACC-HIDDEN-213-EYE-TOGGLE, ACC-PANEL-214-HEADER-PLACE, ACC-ACCORD-167-NO-BUTTONS; rejected ACC-ACCORD-153-HOVER-NAME |
| DQ-13 | A status dot has its word in the line, in the title and in the aria-label, kernel rows in cards included | Badges & indicators ("Colour never carries meaning alone"); icon inventory, status dot | ACC-KERNEL-49-STATE, ACC-KERNEL-48-ROW |
| DQ-14 | In the New workspace, Set description and shutdown dialogs the affirmative action is the only filled button; Cancel is the surface button; a destructive action is unfilled with error-coloured text and border at the far left; the focus rim shows for keyboard focus only | design-language One-primary dialog footer; references/dialog-controls.md, footer classes | ACC-PANEL-204-DIALOG-FOOTER |
| DQ-15 | An inline panel message is a banner: color-mix(in srgb, var(--jp-error-color1) 15%, transparent) background and a border of the same token at 35 percent. A state line in a dialog has padding 6px 12px on --jp-layout-color2 with a 2 px left border in the state colour. The error-colour dot of section 5 goes | Banners; design-language Dialog status accent line | ACC-PANEL-96-LOAD-ERROR, ACC-PANEL-205-DIALOG-STATE |
| DQ-16 | A header button draws a 14 px glyph in a 24 px button; the card header's buttons as well, since the card header counts as a header | Panel construction, Header ("actions 24x24, glyph 14x14"); Icons ("14px in buttons") | ACC-PANEL-147-HEADER-ORDER, ACC-PANEL-214-HEADER-PLACE |
| DQ-17 | Every row, KERNELS rows included, carries only a status dot, a name and a time; everything else - the terminal's process, the kernel type, the document, memory and CPU, a card's purpose and counts - appears on selection. Replaces the 2026-10-26 requirement that KERNELS rows show memory and CPU in the row | Side panel: "Default rows carry only a status dot, name and time; everything else appears on selection" | ACC-LISTS-209-ROW-LINE, ACC-LISTS-210-ROW-SELECT, ACC-TERM-42-PROCESS, ACC-TERM-44-PROCESS-UNREAD, ACC-TERM-46-NAME, ACC-TERM-113-PROCESS-LIVE, ACC-KERNEL-48-ROW, ACC-KERNEL-156-DISPLAY-NAME, ACC-KERNEL-196-KERNEL-DETAILS, ACC-ACCORD-18-PURPOSE, ACC-ACCORD-22-COUNTS, ACC-ACCORD-70-COUNT-TABS, ACC-ACCORD-99-PURPOSE-DIALOG, ACC-PANEL-181-PURPOSE-WRAP, ACC-LISTS-154-TAB-SHRINK, ACC-DOCS-186-SHOT-CURRENT, ACC-PANEL-157-OTHERS-ACTIONS, ACC-LISTS-109-CONSOLE, ACC-ACCORD-97-ELLIPSIS, ACC-KERNEL-151-ROW-CLICK, ACC-LISTS-104-ROW-MENU |
| DQ-18 | Identifiers - terminal names, kernel ids, paths - are set in --jp-code-font-family | Panel construction, Rows ("identifiers --jp-code-font-family") | ACC-PANEL-206-CODE-FONT |
| DQ-19 | The focus outline sits 1 px outside the element, and 1 px inside it only within cards, where the card clips its content | Panel construction, Icon states (Focus: "1px --jp-brand-color1 outline, offset 1px, :focus-visible only") | ACC-PANEL-93-FOCUS |
| KERN-02 | Where a KERNELS row shows its document, a long file name shows whole at a 300 px panel, and the kernel type and the folder give way first. Replaces the 2026-10-26 shrink order "Type keeps a minimum" | Panel construction, Rows ("only the text span ellipsises") | ACC-KERNEL-196-KERNEL-DETAILS, ACC-LISTS-154-TAB-SHRINK |
| OPT-1 | The terminals route leaves out a terminal whose pty has ended (pty.ptyproc.terminated, or not isalive()). This replaces the panel's map of shut-down terminals, the route's fingerprint cache, fingerprint() and the fingerprint field; the row of a shut-down terminal leaves at the panel's next load in every window | design-language Timing independence | ACC-TERM-200-ROW-LEAVES |
| OPT-2 | iconButton stops the propagation of Enter and Space only, so the arrow keys reach the row from a button inside it | Panel construction, Rows ("one tab stop per section, roving tabindex") | ACC-PANEL-207-BUTTON-ARROWS, ACC-LISTS-104-ROW-MENU |
Workspace colours as theme tokens
The theme defines five hue families as tokens: red (error), orange (warn), green (success), blue (brand) and cyan (info). No token has a yellow or a purple hue, so lemon takes the lighter orange step and lavender takes cyan, and the Colour menu names the hue each token shows. The stored names stay, so records, the server's validation and the command line do not change. The rotation stays sky first. Section 6 draws the six.
| Stored name | Menu label | Token |
|---|---|---|
rose | Red | --jp-error-color1 |
peach | Orange | --jp-warn-color1 |
lemon | Amber (was Yellow) | --jp-warn-color2 |
mint | Green | --jp-success-color1 |
sky | Blue | --jp-brand-color1 |
lavender | Cyan (was Purple) | --jp-info-color1 |
Dialogs and the panel's banner
How this design reads the decisions
Each point below is a reading this stage made where a decision left a detail open. Each is stated in the criteria named and can be changed there.
- Selection: a click on a row, or the arrow keys, selects it; the panel has one selected row; it paints
--jp-layout-color2and shows a detail line under its name; the selection survives a reload while its item exists (ACC-LISTS-210-ROW-SELECT). The click still opens the row's item. For a card, selection is being open: the purpose and the counts show while the card is open - The name of a kernel row is the file name of the notebook or console it serves, or the kernel id when no session uses it; the kernel type, the document path, memory and CPU are its detail (
ACC-KERNEL-48-ROW). The detail line repeats the file name inside the path, which KERN-02 keeps whole - The name of a terminal row is
terminal <n>; its process is the detail. Terminals have no state, so their rows show no dot. Tab rows show the file name, and the folder is the detail. Rows keep their 16 px type icon, which the decision does not list among the details - The tab of a terminal row: a click or Enter on a terminal row, in a card or in TERMINALS, activates the tab of that terminal's running process - the same session name and a session JupyterLab has not disposed - so a tab whose terminal ended never matches, also after a new terminal takes the name; without a match the row opens a tab (
ACC-TERM-215-TAB-MATCH) - The tab a terminal row keeps: once a row opened or activated a tab, every later click or Enter on that row activates that tab, never a second tab of the terminal; the link ends when the terminal ends or the tab closes, and the row then opens a new tab (
ACC-TERM-216-TAB-KEPT) - Language server rows keep the replaced panel's label,
pylsp (python), and its shutdown button - The eye on every card: DQ-12 keeps the eye's place on shown cards too, so on a shown card it hides the workspace, as the brief's "hidden" toggle with an eye icon asks; it is disabled on this window's card; the ... button is disabled on a hidden card (
ACC-HIDDEN-213-EYE-TOGGLE) - Shut down all sits on the section band, which is
--jp-layout-color2, so it is a surface button:--jp-layout-color1with a 1 px--jp-border-color1border, as the design system's Buttons section draws a secondary action - Section header padding: "the padding of Sections & headers" is 6 px above and below the text, with the caret on the 4 px inset and the label at 18 px, which the same section prescribes
- Shutdown dialogs have no filled button: Shut down is the destructive action, unfilled and at the far left; Cancel is the surface button
- The filter still searches process names and kernel types; a row found by its detail shows its name, and selecting it shows the detail
- The recessed filter field keeps its 4 percent black over
--jp-layout-color1, which the design language prescribes for recessed surfaces; it is the one literal colour word left
Consequences
- With the four card header buttons always shown (96 px) and the longer time labels ("12m ago"), a workspace name gets about 40 px at the 250 px sidebar width and about 90 px at 300 px; it ends in an ellipsis and the tooltip holds it whole
- Workspaces are told apart by the strip alone; Amber and Orange, and Blue and Cyan, are the closest pairs
- The criteria above are open again; each closes when the implementation proves it. The README screenshot is retaken after the implementation (
ACC-DOCS-186-SHOT-CURRENT)
Appendix - the alternatives compared on 2026-10-23
The first drafts, kept as the record of the choice; they are not maintained.