@alis-build/design-system 0.13.2 → 0.14.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/alisx.css CHANGED
@@ -129,6 +129,7 @@
129
129
  --detail-width: 360px;
130
130
  --breakpoint-compact: 600px;
131
131
  --breakpoint-medium: 840px;
132
+ --breakpoint-large: 1200px;
132
133
  --breakpoint-expanded: 1200px;
133
134
  --breakpoint-large: 1600px;
134
135
  --container: 1280px;
@@ -487,6 +488,47 @@ a.app-row,a.app-card{text-decoration:none}
487
488
  .app-shell__nav-close{display:none}
488
489
  @media (max-width:599px){.app-shell,.app-shell--detail{grid-template-columns:minmax(0,1fr)}.app-shell__nav{display:none;position:fixed;inset:0;z-index:3;width:auto;padding:calc(var(--space-8) + env(safe-area-inset-top,0px)) calc(var(--space-12) + env(safe-area-inset-right,0px)) calc(var(--space-16) + env(safe-area-inset-bottom,0px)) calc(var(--space-12) + env(safe-area-inset-left,0px));overflow-y:auto;background:var(--background);border-right:0}.app-shell--nav-open .app-shell__nav{display:flex}.app-shell__nav-close{display:inline-flex;position:absolute;top:calc(var(--space-12) + env(safe-area-inset-top,0px));right:calc(var(--space-8) + env(safe-area-inset-right,0px));color:var(--on-surface)}.app-tab{padding:0 var(--space-16)}.app-tab.is-selected::after{left:var(--space-16);right:var(--space-16)}.app-shell__detail{width:100%}}
489
490
 
491
+ /* ── File pane · a file opened beside the conversation (AppFilePane): the detail pane, made wide ── */
492
+ /* breakpoint-large (1200): the content takes two parts and the file three; below it, the file takes the content's place */
493
+ .app-shell--file{grid-template-columns:var(--nav-width) minmax(0,2fr) minmax(0,3fr)}
494
+ .app-shell--file .app-shell__detail{position:static;width:auto;padding:0;gap:0;overflow:hidden;background:var(--background);box-shadow:none;border-left:1px solid var(--outline-variant);z-index:auto}
495
+ .app-shell--file-expanded{grid-template-columns:var(--nav-width) minmax(0,1fr)}
496
+ .app-shell--file-expanded .app-shell__main{display:none}
497
+ @media (max-width:1199px){.app-shell--file{grid-template-columns:var(--nav-width) minmax(0,1fr)}.app-shell--file .app-shell__main,.app-file-pane__expand{display:none}}
498
+ @media (max-width:599px){.app-shell--file,.app-shell--file-expanded{grid-template-columns:minmax(0,1fr)}.app-shell--file .app-shell__detail{border-left:0}}
499
+ /* With the content narrowed beside a file, its bar's lead shows its glyph alone, as on a phone */
500
+ .app-shell--file .app-shell__main .app-titlebar:not(.app-titlebar--detail) .app-titlebar__row{flex-wrap:nowrap}
501
+ .app-shell--file .app-shell__main .app-titlebar:not(.app-titlebar--detail) .app-titlebar__actions{flex-wrap:nowrap;gap:0}
502
+ .app-shell--file .app-shell__main .app-titlebar__lead{width:40px;min-width:0;height:40px;padding:0;gap:0;border-color:transparent;background:transparent}
503
+ .app-shell--file .app-shell__main .app-titlebar__lead .app-icon{margin:0}
504
+ .app-shell--file .app-shell__main .app-titlebar__lead .app-titlebar__label{position:absolute;width:1px;height:1px;margin:-1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
505
+ .app-file-pane{display:flex;flex-direction:column;gap:0;min-width:0;min-height:0;background:var(--background)}
506
+ .app-shell__detail>.app-file-pane{flex:1}
507
+ .app-file-pane__bar{flex:none;display:flex;align-items:center;gap:var(--space-8);min-height:64px;padding:var(--space-12);border-bottom:1px solid var(--outline-variant)}
508
+ .app-file-pane__name{flex:1;min-width:0;display:flex;flex-direction:column}
509
+ .app-file-pane__name>*{margin:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
510
+ .app-file-pane__name>.text-meta{color:var(--on-surface-variant)}
511
+ .app-file-pane__tools{flex:none;display:flex;align-items:center;gap:0}
512
+ .app-file-pane__tools>.app-seg{margin-right:var(--space-8)}
513
+ .app-file-pane__body{flex:1;min-height:0;overflow:auto;position:relative}
514
+ /* A page sets its own colours: its frame is white in every theme */
515
+ .app-file-pane__frame{display:block;width:100%;height:100%;border:0;background:var(--paper-0)}
516
+ .app-file-pane__body--prose{padding:var(--space-32) var(--space-24)}
517
+ .app-file-pane__body--prose>.prose{max-width:var(--measure-prose);margin:0 auto}
518
+ .app-file-pane__body--image{display:flex;align-items:center;justify-content:center;padding:var(--space-24)}
519
+ .app-file-pane__body--image>img{display:block;max-width:100%;max-height:100%;object-fit:contain}
520
+ .app-file-pane__body--paper{background:var(--paper-0)}
521
+ .app-file-pane__body--source{background:var(--surface-container-low)}
522
+ .app-file-pane__source{margin:0;padding:var(--space-16) 0;font-family:var(--font-mono);font-size:13px;line-height:20px;color:var(--on-surface);white-space:pre;counter-reset:app-ln}
523
+ .app-file-pane__source>span{display:block;padding-right:var(--space-24)}
524
+ .app-file-pane__source>span::before{counter-increment:app-ln;content:counter(app-ln);display:inline-block;width:48px;margin-right:var(--space-16);text-align:right;color:var(--on-surface-variant)}
525
+ .app-file-pane__body--table .app-table-wrap{border:0;border-radius:0}
526
+ .app-file-pane__body--table th,.app-file-pane__body--table td{white-space:nowrap}
527
+ .app-file-pane__line{flex:none;margin:0;padding:var(--space-8) var(--space-24);border-top:1px solid var(--outline-variant);color:var(--on-surface-variant)}
528
+ .app-file-pane__state{display:flex;flex-direction:column;min-height:100%}
529
+ .app-file-pane__body>.app-skel{max-width:var(--measure-prose);margin:0 auto;padding:var(--space-32) var(--space-24)}
530
+ @media (max-width:599px){.app-file-pane__bar{min-height:56px;padding:env(safe-area-inset-top,0px) var(--space-4) 0;gap:var(--space-4)}.app-file-pane__bar .app-icon-btn{color:var(--on-surface)}.app-file-pane__tools>.app-seg{margin-right:0}.app-file-pane__tools .app-seg__item{padding:0 var(--space-12)}.app-file-pane__word{position:absolute;width:1px;height:1px;margin:-1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}}
531
+
490
532
  /* ── Navigation pane · brand, account card ── */
491
533
  .app-brand{display:flex;align-items:center;min-height:48px;padding:0 var(--space-16);margin-bottom:var(--space-16)}
492
534
  .app-brand__wordmark{display:block;width:auto}
@@ -674,6 +716,17 @@ span.app-account__avatar{display:flex;align-items:center;justify-content:center;
674
716
  .app-attachment--message{width:100%;height:auto;min-height:56px}
675
717
  a.app-attachment{color:inherit;text-decoration:none}
676
718
  .app-attachment__external{flex:none;font-size:16px;color:var(--on-surface-variant)}
719
+ button.app-attachment{border:0;color:inherit;font:inherit;text-align:left;cursor:pointer}
720
+ /* A file Alis made stands in her reply, wider for a title from her description */
721
+ .prose .app-attachment{width:320px;margin:0 0 var(--prose-gap,24px)}
722
+ @media (max-width:599px){.prose .app-attachment{width:100%}}
723
+ /* Open: its file is in the pane */
724
+ .app-attachment.is-selected{background:var(--secondary-container);color:var(--on-secondary-container)}
725
+ .app-attachment.is-selected .text-label{font-weight:700}
726
+ .app-attachment.is-selected .app-attachment__text>.text-meta{color:var(--on-secondary-container)}
727
+ /* Gone since: not pressable, the glyph on an outline */
728
+ .app-attachment.is-gone{color:var(--on-surface-variant)}
729
+ .app-attachment.is-gone .app-attachment__glyph{background:transparent;box-shadow:inset 0 0 0 1px var(--outline-variant)}
677
730
 
678
731
  /* ── Voice view · a live call given the content area (focus) or the whole screen (phone) ── */
679
732
  .app-voice{position:relative;display:flex;flex-direction:column;gap:var(--space-24);height:100%;min-height:0;padding:var(--space-16) var(--space-24) var(--space-32);background:var(--background);overflow:hidden}
@@ -737,6 +790,8 @@ a.app-attachment{color:inherit;text-decoration:none}
737
790
  .app-turn__line.is-error{color:var(--error)}
738
791
  .app-turn__line-action{margin-left:var(--space-4);padding:0;border:0;background:none;color:var(--primary);font:inherit;font-weight:600;cursor:pointer}
739
792
  @media (hover:none){.app-turn__tools,.app-turn--alis:not(.is-latest) .app-turn__foot{display:none}}
793
+ /* What your message was about: the context chip as you sent it */
794
+ .app-turn__about{max-width:80%;color:var(--on-surface-variant);text-align:right}
740
795
  @media (max-width:599px){.app-turn__bubble,.app-turn__files{max-width:85%}}
741
796
 
742
797
  /* ── Voice note · a sent recording: play, the waveform, the time, then its transcript ── */
@@ -11,6 +11,10 @@ A file, recording or queued message waiting in the composer's tray, and the same
11
11
  - **States**: ready (type · size on the meta line); uploading (a 2px `primary` bar along the bottom edge); failed ("Didn't upload" in `error`, with retry); not accepted ("Can't be read here" in `error`, no retry, and the composer's line lists what works).
12
12
  - **A thing** opens what it names: the whole tile is the link, with no button in it. Its glyph names the kind, in ink, always a Material Symbol (a capability mark names a tool, not an object): `videocam` a meeting, `edit_note` its notes, `record_voice_over` an interview, `monitor_heart` diagnostics, `extension` a skill, `assignment` an issue, `terminal` an agent session. Its name is the label; the meta line is where it lives and its state: "Google Meet · recording", "Linear · BUI-29", "Diagnostics · 2 min ago". A provider's logo never replaces the glyph.
13
13
  - **Inside the product it opens in place; outside, in a new tab, and says so**: a 16px `open_in_new` at the tile's end (`.app-attachment__external`), and "opens in a new tab" in its accessible name.
14
+ - **A file Alis made** stands in her reply where she put it, 320 wide (the full column on a phone), and opens [AppFilePane](AppFilePane.md) beside the conversation: the whole tile is a `<button>` with `aria-expanded`, nothing inside it, and no Download (that's in the pane). The label is her description of the file, or else its name; the meta line its kind and size ("HTML page · 6 KB"). Glyphs: `web` an HTML page, `article` Markdown, `code` code, `text_snippet` plain text, `shapes` an SVG; a PDF, a CSV and anything else as above. An image she made shows itself, as any image does, and opens in the pane. No thumbnail of a page: it would mean running the page in every tile.
15
+ - **Open** (`is-selected`): its file is in the pane. `secondary-container`, the label at 700, the glyph filled, `aria-expanded="true"` on every tile for that file. Pressing it again closes the pane.
16
+ - **Can't be shown** (an archive, a spreadsheet, a binary): a link that downloads, with a 16px `download` at its end (`.app-attachment__external`) and "downloads" in its accessible name.
17
+ - **Gone** (`is-gone`, deleted since): a `div`, not pressable and with no state layer; the meta line says "Deleted", in ink, and the glyph sits on an outline. Not red: nothing failed.
14
18
  - **A queued message** (`app-attachment--message`) takes the tray's full width: `schedule`, the text, "Sends when Alis finishes", edit and remove.
15
19
 
16
20
  ## Markup
@@ -53,6 +57,25 @@ A file, recording or queued message waiting in the composer's tray, and the same
53
57
  </a>
54
58
  <!-- Inside the product: no target, no open_in_new -->
55
59
 
60
+ <!-- A file Alis made, in her prose; is-selected while it is open in the pane -->
61
+ <button type="button" class="app-attachment app-state" aria-expanded="false" aria-controls="file-pane">
62
+ <span class="app-attachment__glyph"><span class="app-icon" aria-hidden="true">web</span></span>
63
+ <span class="app-attachment__text"><span class="text-label">Pricing page</span><span class="text-meta">HTML page · 6 KB</span></span>
64
+ </button>
65
+
66
+ <!-- One that can't be shown: it downloads -->
67
+ <a class="app-attachment app-state" href="…" download aria-label="Interview recordings, ZIP archive, 412 MB, downloads">
68
+ <span class="app-attachment__glyph"><span class="app-icon" aria-hidden="true">folder_zip</span></span>
69
+ <span class="app-attachment__text"><span class="text-label">Interview recordings</span><span class="text-meta">ZIP archive · 412 MB</span></span>
70
+ <span class="app-icon app-attachment__external" aria-hidden="true">download</span>
71
+ </a>
72
+
73
+ <!-- Gone since -->
74
+ <div class="app-attachment is-gone" role="group" aria-label="Pricing page, deleted">
75
+ <span class="app-attachment__glyph"><span class="app-icon" aria-hidden="true">web</span></span>
76
+ <span class="app-attachment__text"><span class="text-label">Pricing page</span><span class="text-meta">Deleted</span></span>
77
+ </div>
78
+
56
79
  <!-- A queued message -->
57
80
  <div class="app-attachment app-attachment--message">
58
81
  <span class="app-attachment__glyph"><span class="app-icon" aria-hidden="true">schedule</span></span>
@@ -71,4 +94,4 @@ A file, recording or queued message waiting in the composer's tray, and the same
71
94
 
72
95
  ## Classes
73
96
 
74
- `.app-attachment`, `.app-attachment--image`, `.app-attachment--message`, `.is-error`, `.app-attachment__glyph`, `.app-attachment__text`, `.app-attachment__bar`, with `.app-icon-btn` and `.app-state` on its buttons.
97
+ `.app-attachment`, `.app-attachment--image`, `.app-attachment--message`, `.is-error`, `.is-selected`, `.is-gone`, `.app-attachment__glyph`, `.app-attachment__text`, `.app-attachment__bar`, with `.app-icon-btn` and `.app-state` on its buttons.
@@ -17,7 +17,7 @@ Where you write to Alis, an agent or a person. One floating surface with three b
17
17
  | **Editor** | Body type, 16/24. Grows to eight lines, then scrolls inside itself. The placeholder says what to write | The product writes the placeholder |
18
18
  | **Suggestions** (only while you type `/` or `@`) | An [AppMenu](AppMenu.md) band right above the editor, divided by a hairline: commands, or people and things to mention. Below an open ask | The product supplies the commands and what can be mentioned |
19
19
  | **Row**: Add | `add` icon button: an [AppMenu](AppMenu.md) of what you can bring in, then the commands | The product fills the menu |
20
- | **Row**: Context | Label [AppChip](AppChip.md)s you can remove, for what Alis can see or act on *in this conversation* (a project, chosen resources, staged comments). Sticky until removed, where the tray goes with one message. Never a mode or a setting | The product decides which, if any |
20
+ | **Row**: Context | Label [AppChip](AppChip.md)s you can remove, for what Alis can see or act on *in this conversation* (a project, chosen resources, staged comments). Sticky until removed, where the tray goes with one message. Never a mode or a setting. A file open in [AppFilePane](AppFilePane.md) is the chip while it is open: its glyph and file name; removing the chip keeps the pane, closing the pane removes the chip | The product decides which, if any |
21
21
  | **Row**: voice | A plain mic icon button beside live (see below) | The product decides whether there's voice, and which mic mode |
22
22
  | **Row**: trailing button | The one filled icon button in the system: `primary`, 40px, round | The system |
23
23
  | **Line** (below the surface) | One line at most, meta type, 20 in: a hint, the trust note, why it's locked, or an error | The product writes it |
@@ -0,0 +1,120 @@
1
+ # AppFilePane
2
+
3
+ A file Alis made, opened beside the conversation: a page, a document, an image, a table, code. You look at it and talk about it; you never edit it here.
4
+
5
+ ## Use / don't use
6
+
7
+ See [page.md](../rules/page.md) § A file beside the conversation.
8
+
9
+ - **It is the shell's detail pane, made wide** ([AppShell](AppShell.md)): `app-shell--file` on the shell, the pane in `.app-shell__detail` with `data-detail-pane`. It has a URL, back closes it, Esc closes it, and the shortcut sheet covers it as it covers any detail pane.
10
+ - **From 1200px wide (`breakpoint-large`) it sits beside the conversation**, which takes two parts to its three: at 1440 that is a 707px file, the width of a page of prose. Below 1200 the conversation would wrap every few words, so the file takes the content's place and closing it brings the conversation back. The edge doesn't drag.
11
+ - **Opened from a tile** ([AppAttachment](AppAttachment.md)) where Alis put the file in her reply. **It opens by itself only live**: when the turn that made it ends, you are on the conversation, no other detail pane is open and the window is 1200 or wider. Never when a conversation is reopened, never on a phone, and never where it would cover her reply.
12
+ - **Never the word "artifact"**: the pane is named by the file, its description or else its file name.
13
+ - **No versions.** The file is overwritten in place, so every tile for it opens what is there now, and the meta line says *Latest*.
14
+
15
+ | Part | What it holds |
16
+ |---|---|
17
+ | **Bar** | Close leading, as on every detail pane; the title in `text-section-title`, the meta under it ("HTML page · Latest"); then the tools |
18
+ | **Tools** | Preview / Code as an [AppSegmented](AppSegmented.md), only where a file reads two ways (HTML and SVG: Preview / Code; Markdown: Preview / Source). Then icon buttons, each with its tooltip: Copy (the source, so "Copy code" where there's a Preview; none for an image or a PDF), Download (always), Expand (beside the conversation only) |
19
+ | **Body** | One per kind, below |
20
+ | **Line** | Optional, meta, at the foot: a table cut short says how many rows show |
21
+
22
+ | Kind | Body |
23
+ |---|---|
24
+ | HTML page | A sandboxed frame (`.app-file-pane__frame`) on `paper-0`, white in every theme: the page sets its own colours, and on a dark ground half of them would vanish. Nothing of AlisX reaches inside |
25
+ | SVG | Preview: as an image (never inline, so its scripts don't run) on `paper-0` (`--image` with `--paper`) |
26
+ | Markdown | Preview: `.prose` at the prose measure, centred (`--prose`) |
27
+ | Image | Fitted: contained, never cropped, never past its own size (`--image`) |
28
+ | PDF | The browser's own viewer, in a frame. Its controls are the browser's |
29
+ | CSV | [AppTable](AppTable.md), sticky header, its first row as the headings as written, cells unwrapped and scrolling sideways (`--table`). Past the product's row limit, the line: "The first 1,000 of 24,310 rows. Download it for the rest." |
30
+ | Code, plain text, any Code or Source view | Mono 13/20, numbered, on `surface-container-low`, the statement ground: you read it, you don't act on it (`--source`). No wrapping, no colouring by syntax |
31
+
32
+ - **States.** The bar is there from the first frame, since the tile knows the title and the kind; only the body waits. *Loading*: [AppSkeleton](AppSkeleton.md)'s text shape, after 300ms ([loading.md](../rules/loading.md)). *Can't load*: "Couldn't load this file", one supporting line, an outlined Try again, in ink (nothing you did failed). *Too large to show*: "Too large to show here", the name and size, an outlined Download. The product sets the limits per kind.
33
+ - **Expand** (`open_in_full`, "Expand") lets the file take the conversation's place; the navigation pane stays. The same button, now `close_fullscreen` and "Show the chat", brings it back, and so does Esc. Below 1200 there is no Expand: the file already has the content's place.
34
+ - **On a phone** the pane is the whole screen, a step deeper: back (`arrow_back`) leads, and the phone's back gesture closes it. The switch shows its glyphs alone (`visibility`, `code`), each still named, and Copy and Download go into ⋯ ([AppMenu](AppMenu.md)). No Expand.
35
+ - **While it is open, the composer's context chip carries the file** ([AppComposer](AppComposer.md) § Row: Context): its glyph and file name. Closing the chip keeps the pane (you're still looking; you just don't tell Alis), and closing the pane takes the chip.
36
+
37
+ ## Markup
38
+
39
+ ```html
40
+ <div class="app-shell app-shell--detail app-shell--file"> <!-- + app-shell--file-expanded -->
41
+ <nav class="app-shell__nav" aria-label="Main">…</nav>
42
+ <main class="app-shell__main"><!-- the conversation --></main>
43
+
44
+ <aside class="app-shell__detail app-file-pane" id="file-pane" data-detail-pane aria-label="Pricing page">
45
+ <header class="app-file-pane__bar">
46
+ <button type="button" class="app-icon-btn app-state app-target app-wide-only" aria-label="Close" title="Close" aria-keyshortcuts="Escape"><span class="app-icon" aria-hidden="true">close</span></button>
47
+ <button type="button" class="app-icon-btn app-state app-target app-compact-only" aria-label="Back to the chat"><span class="app-icon" aria-hidden="true">arrow_back</span></button>
48
+ <div class="app-file-pane__name">
49
+ <h2 class="text-section-title" title="Pricing page">Pricing page</h2>
50
+ <span class="text-meta">HTML page · Latest</span>
51
+ </div>
52
+ <div class="app-file-pane__tools">
53
+ <div role="radiogroup" aria-label="Show" class="app-seg">
54
+ <button type="button" role="radio" aria-checked="true" tabindex="0" class="app-seg__item app-state is-selected"><span class="app-icon app-icon--filled" aria-hidden="true">visibility</span><span class="app-file-pane__word">Preview</span></button>
55
+ <button type="button" role="radio" aria-checked="false" tabindex="-1" class="app-seg__item app-state"><span class="app-icon" aria-hidden="true">code</span><span class="app-file-pane__word">Code</span></button>
56
+ </div>
57
+ <span class="app-wide-only">
58
+ <button type="button" class="app-icon-btn app-state app-target" aria-label="Copy code" title="Copy code"><span class="app-icon" aria-hidden="true">content_copy</span></button>
59
+ <button type="button" class="app-icon-btn app-state app-target" aria-label="Download" title="Download"><span class="app-icon" aria-hidden="true">download</span></button>
60
+ <button type="button" class="app-icon-btn app-state app-target app-file-pane__expand" aria-label="Expand" title="Expand"><span class="app-icon" aria-hidden="true">open_in_full</span></button>
61
+ </span>
62
+ <button type="button" class="app-icon-btn app-state app-target app-compact-only" aria-label="More" aria-haspopup="menu" aria-expanded="false"><span class="app-icon" aria-hidden="true">more_vert</span></button>
63
+ </div>
64
+ </header>
65
+
66
+ <!-- An HTML page: no allow-same-origin, so it runs in an opaque origin -->
67
+ <div class="app-file-pane__body">
68
+ <iframe class="app-file-pane__frame" sandbox="allow-scripts" srcdoc="…" title="Pricing page"></iframe>
69
+ </div>
70
+
71
+ <!-- Code or Source -->
72
+ <div class="app-file-pane__body app-file-pane__body--source">
73
+ <pre class="app-file-pane__source" tabindex="0" aria-label="Code"><span>&lt;!doctype html&gt;</span><span>&lt;html lang="en"&gt;</span><!-- one span per line --></pre>
74
+ </div>
75
+
76
+ <!-- Markdown -->
77
+ <div class="app-file-pane__body app-file-pane__body--prose"><div class="prose">…</div></div>
78
+
79
+ <!-- An image; an SVG adds app-file-pane__body--paper -->
80
+ <div class="app-file-pane__body app-file-pane__body--image"><img src="…" alt="Churn by month"></div>
81
+
82
+ <!-- A PDF -->
83
+ <div class="app-file-pane__body"><iframe class="app-file-pane__frame" src="…" title="Q3 board summary"></iframe></div>
84
+
85
+ <!-- A CSV -->
86
+ <div class="app-file-pane__body app-file-pane__body--table">
87
+ <div class="app-table-wrap"><table class="app-table app-table--sticky" aria-label="renewals-q3.csv">…</table></div>
88
+ </div>
89
+ <p class="app-file-pane__line text-meta">The first 1,000 of 24,310 rows. Download it for the rest.</p>
90
+
91
+ <!-- Loading -->
92
+ <div class="app-file-pane__body"><div class="app-skel" aria-busy="true" aria-label="Loading"><span class="app-skel__bar app-skel__bar--title"></span><span class="app-skel__bar"></span><span class="app-skel__bar app-skel__bar--short"></span></div></div>
93
+
94
+ <!-- Can't load; too large is the same with Download -->
95
+ <div class="app-file-pane__body"><div class="app-file-pane__state">
96
+ <div class="app-empty">
97
+ <h2 class="app-empty__headline text-section-title">Couldn't load this file</h2>
98
+ <p class="app-empty__line text-supporting">Check your connection, then try again.</p>
99
+ <button type="button" class="app-btn app-state app-target app-btn--outlined"><span class="app-icon" aria-hidden="true">refresh</span>Try again</button>
100
+ </div>
101
+ </div></div>
102
+ </aside>
103
+ </div>
104
+ ```
105
+
106
+ ## Behaviour you must supply
107
+
108
+ - **Opening**: add `app-shell--detail app-shell--file` and the pane; push a history entry with the pane's parameter (another file while it's open replaces the entry); move focus to the pane's title. Mark the tile that opened it `is-selected` and `aria-expanded="true"` (every tile for the same file).
109
+ - **Opening by itself**: only on the conditions above, and without taking focus: the thread keeps it, and the conversation's status region says "Pricing page is open beside the chat".
110
+ - **Closing** (close, back, Esc, the tile again): go back in history, remove the classes and the chip, and return focus to the tile that opened it, or the composer if it was opened by itself.
111
+ - **Esc steps back**: expanded to beside, then closed. When focus is inside the page's frame, its keys are the page's and Esc doesn't reach you; the bar's buttons still work, and Tab leaves the frame.
112
+ - **Expand** toggles `app-shell--file-expanded`, and swaps the glyph and the name ("Expand" / "Show the chat") together.
113
+ - **Preview / Code** re-renders the body; the choice belongs to the pane, not the file, and resets to Preview when another file opens.
114
+ - **The frame**: fetch the text and give it to `srcdoc`, with `sandbox="allow-scripts"` and never `allow-same-origin`. Serve it from a separate origin when there is one.
115
+ - **Copy** writes the source to the clipboard and says "Copied" in a snackbar; **Download** saves the file under its own name.
116
+ - **Missing** (deleted since): the pane shows "This file was deleted" in the can't-load layout with no action, and its tiles turn `is-gone`.
117
+
118
+ ## Classes
119
+
120
+ `.app-shell--file`, `.app-shell--file-expanded`, `.app-file-pane`, `.app-file-pane__bar`, `.app-file-pane__name`, `.app-file-pane__tools`, `.app-file-pane__word`, `.app-file-pane__expand`, `.app-file-pane__body`, `.app-file-pane__body--prose`, `.app-file-pane__body--image`, `.app-file-pane__body--paper`, `.app-file-pane__body--source`, `.app-file-pane__body--table`, `.app-file-pane__frame`, `.app-file-pane__source`, `.app-file-pane__line`, `.app-file-pane__state`.
@@ -17,6 +17,7 @@ See [surfaces.md](../rules/surfaces.md) and [page.md](../rules/page.md).
17
17
  - The pane is permanent chrome, so selection there is `selection-chrome`. Which destinations each product lists is product content, not part of this system.
18
18
  - **Content**: an [AppTitleBar](AppTitleBar.md), then `.app-shell__content`, which pads 24 on every side (32 below) and fills the pane, holding the filter row and the list, table or document.
19
19
  - **Detail pane** (`detail-width`, 360px): what is selected in the content, led by a detail title bar. It sits on the ground behind a divider, never on a card, and scrolls on its own. **It has a URL** (a query parameter, as search keeps `?q=`), so a refresh, a shared link and back all find it. The [AppShortcutSheet](AppShortcutSheet.md) opens in its place: the content narrows for it, or it covers an open detail pane until it closes. Below 840px it slides over the content at `elevation-3`, over a scrim.
20
+ - **A file beside the conversation** ([AppFilePane](AppFilePane.md)) is the detail pane made wide: `app-shell--file`. From 1200 the content takes two parts and the file three; below it the file takes the content's place; `app-shell--file-expanded` does the same at any width. It never slides over at `elevation-3`.
20
21
  - **On a phone** (below 600px) the shell is one column: the content, under a one-row title bar ([AppTitleBar](AppTitleBar.md) § On a phone).
21
22
  - **The navigation pane fills the screen**: the same pane, brand, groups, agent chats and foot unchanged, hidden until the title bar's menu button opens it (`app-shell--nav-open`). It lies on the ground, edge to edge inside the safe area: nothing shows behind it, so no scrim and no elevation. Its close (`.app-shell__nav-close`, "Close navigation") sits in its head beside the brand. Never a column of icons: it hid the agent chats, the place you go back to most, and left the content too little room.
22
23
  - **The detail pane covers the full width**, and its bar leads with back (`arrow_back`) instead of close: on a phone it reads as a step deeper, and the phone's own back gesture closes it.
@@ -44,6 +44,7 @@ One turn in a conversation, in an `.app-thread`. **You write in a bubble; Alis w
44
44
 
45
45
  ## What you send
46
46
 
47
+ - **What it was about**: when the composer's context chip went with your message, a meta line above your bubble names it, in `on-surface-variant` (`.app-turn__about`): "About Pricing rethink", "About pricing.html". The chip as it was when you sent, so the thread says what Alis was looking at.
47
48
  - **Files and things** keep their [AppAttachment](AppAttachment.md) tile from the tray, without remove, stacked right above your bubble; the tile opens what it names. A thing shared into the conversation (a meeting, its notes, an interview, diagnostics, a skill, an issue, an agent session) is the same tile, never a card with a button in it. An image shows itself, 240 wide. A file or a thing sent alone is a turn with no bubble.
48
49
  - **A voice note** is its own bubble (`.app-voice-note`): play, the waveform (played in `primary`, the rest in `outline`) and the time, then the transcript in body, three lines and Show all. The transcript is what Alis acted on, so a misheard word is in plain sight.
49
50
 
@@ -103,6 +104,7 @@ One line in meta where it happened (`.app-turn__line`, as the composer's):
103
104
 
104
105
  <!-- You: files, then the bubble; hover actions beside it -->
105
106
  <div class="app-turn app-turn--you">
107
+ <span class="app-turn__about text-meta">About pricing.html</span>
106
108
  <div class="app-turn__files">
107
109
  <a class="app-attachment" href="…"><!-- AppAttachment, no remove --></a>
108
110
  <a class="app-turn__image" href="…"><img src="…" alt="Churn by month"></a>
@@ -207,4 +209,4 @@ Northwind 120 —</pre></li>
207
209
 
208
210
  ## Classes
209
211
 
210
- `.app-thread`, `.app-thread__event`, `.app-thread__typing`, `.app-thread__status`; `.app-turn`, `.app-turn--you`, `.app-turn--alis`, `.app-turn--them`, `.is-latest`; `.app-turn__who`, `.app-turn__avatar`, `.app-turn__avatar--alis`; `.app-turn__head`, `.app-turn__mark`, `.app-turn__status`, `.app-turn__worked`, `.app-turn__steps`, `.app-turn__step`, `.app-turn__output`, `.app-turn__caret`; `.app-turn__row`, `.app-turn__bubble`, `.app-turn__bubble--voice`, `.app-turn__tools`, `.app-turn__files`, `.app-turn__image`; `.app-turn__foot`; `.app-turn__line`, `.is-error`, `.app-turn__line-action`; `.app-turn__record`; `.app-turn__request`; `.app-voice-note`, `.is-open`, `.app-voice-note__player`, `.app-voice-note__wave`, `.is-played`, `.app-voice-note__time`, `.app-voice-note__transcript`, `.app-voice-note__more`; with `.prose` on her reply, `.app-icon-btn` and `.app-state` on the buttons, and `.app-loader.app-loader--line` on the mark while she thinks.
212
+ `.app-thread`, `.app-thread__event`, `.app-thread__typing`, `.app-thread__status`; `.app-turn`, `.app-turn--you`, `.app-turn--alis`, `.app-turn--them`, `.is-latest`; `.app-turn__about`, `.app-turn__who`, `.app-turn__avatar`, `.app-turn__avatar--alis`; `.app-turn__head`, `.app-turn__mark`, `.app-turn__status`, `.app-turn__worked`, `.app-turn__steps`, `.app-turn__step`, `.app-turn__output`, `.app-turn__caret`; `.app-turn__row`, `.app-turn__bubble`, `.app-turn__bubble--voice`, `.app-turn__tools`, `.app-turn__files`, `.app-turn__image`; `.app-turn__foot`; `.app-turn__line`, `.is-error`, `.app-turn__line-action`; `.app-turn__record`; `.app-turn__request`; `.app-voice-note`, `.is-open`, `.app-voice-note__player`, `.app-voice-note__wave`, `.is-played`, `.app-voice-note__time`, `.app-voice-note__transcript`, `.app-voice-note__more`; with `.prose` on her reply, `.app-icon-btn` and `.app-state` on the buttons, and `.app-loader.app-loader--line` on the mark while she thinks.
@@ -25,6 +25,7 @@ Shared conventions: `app-state` gives anything pressable its hover, focus and pr
25
25
  | AppSwitch | An on/off setting | [AppSwitch.md](AppSwitch.md) |
26
26
  | AppTooltip | Names a control that shows no words, and carries its keys | [AppTooltip.md](AppTooltip.md) |
27
27
  | AppKeys | A keyboard shortcut, one cap per key, written for the platform | [AppKeys.md](AppKeys.md) |
28
+ | AppFilePane | A file Alis made, opened beside the conversation: Preview / Code, each kind's body, its states | [AppFilePane.md](AppFilePane.md) |
28
29
  | AppShortcutSheet | Every key the screen answers to, opened by `?`, in the detail pane's place | [AppShortcutSheet.md](AppShortcutSheet.md) |
29
30
  | AppChip | A small fact: status, label, category, filter, input | [AppChip.md](AppChip.md) |
30
31
  | AppAlert | A statement carrying one status; the snackbar | [AppAlert.md](AppAlert.md) |
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@alis-build/design-system",
3
- "version": "0.13.2",
3
+ "version": "0.14.0",
4
4
  "description": "The AlisX design system for coding agents: tokens, product CSS, component markup, capability marks and rules.",
5
5
  "keywords": ["alisx", "design-system", "design-tokens", "css"],
6
6
  "homepage": "https://alisx.com",
package/rules/page.md CHANGED
@@ -77,6 +77,18 @@ back, at every width; on a phone, where the pane covers the window, its close
77
77
  becomes back (`arrow_back`) and the phone's back gesture closes it
78
78
  ([AppShell](../components/AppShell.md)).
79
79
 
80
+ ## A file beside the conversation
81
+
82
+ **A file Alis made opens beside the conversation**, in the detail pane made wide
83
+ ([AppFilePane](../components/AppFilePane.md)): you look at it and talk about it,
84
+ never edit it there. From 1200 the conversation takes two parts and the file three;
85
+ narrower, the file takes the conversation's place until it closes. It opens by
86
+ itself only live, only where it fits beside her reply, never on a phone. While it is
87
+ open the composer's context chip carries it, and your bubble's about line names it.
88
+ The tile in her reply opens it; a file a browser can't show keeps its download tile.
89
+ The pane is named by the file, never "artifact", and has no versions: it says
90
+ *Latest*.
91
+
80
92
  **On a phone** the title bar is one row: menu or back, the name, the lead as its
81
93
  glyph, ⋯ for every other verb ([AppTitleBar](../components/AppTitleBar.md) § On a
82
94
  phone). Nothing else earns a place in it.
@@ -67,7 +67,7 @@ nothing here is left out, not dimmed.
67
67
  | Keys | Does |
68
68
  | --- | --- |
69
69
  | ? | Opens or closes the sheet |
70
- | Esc | Closes what is open (a menu, a dialog, the sheet). In a field it does the field's own job first (clears a search's query, closes a `/` or `@` band, cancels a rename), and otherwise leaves the field |
70
+ | Esc | Closes what is open (a menu, a dialog, the sheet). In a field it does the field's own job first (clears a search's query, closes a `/` or `@` band, cancels a rename), and otherwise leaves the field. One step at a time: an expanded file goes back beside the conversation before it closes. Inside a page's frame (AppFilePane) keys are the page's, so Esc doesn't reach the app; the pane's bar still works |
71
71
  | / | Puts you in the screen's search field |
72
72
  | ⌘ K | Reserved for finding anything across the product ([known-gaps.md](known-gaps.md)); bind nothing to it |
73
73
 
package/tokens.json CHANGED
@@ -813,6 +813,11 @@
813
813
  "value": "840px",
814
814
  "usage": "Below it, the detail pane slides over the content at elevation-3. Custom properties can't be used in media queries: write the number, and name the token in a comment."
815
815
  },
816
+ {
817
+ "name": "breakpoint-large",
818
+ "value": "1200px",
819
+ "usage": "From here a file sits beside the conversation, two parts to three (AppFilePane); below it, the file takes the content's place. Custom properties can't be used in media queries: write the number, and name the token in a comment."
820
+ },
816
821
  {
817
822
  "name": "breakpoint-expanded",
818
823
  "value": "1200px",