diff --git a/docs/decisions.md b/docs/decisions.md index 4627d84a3..e413df3c6 100644 --- a/docs/decisions.md +++ b/docs/decisions.md @@ -15173,3 +15173,79 @@ Team and a Personal Environment, at 1440 and 700 px, with and without size of the card and the stage per explanation, no running animation and a settled frame from the first moment with less motion, and a fork-like page with the shell, `` and a "?" but no `provideGuides` drawing nothing. + +### F56 addendum (4) of 2026-10-19: Trezor's video is the first thing the page shows + +**Decided by Matěj (Organization Admin) on 2026-10-19, about 14:15Z, in the DEV-6631 +thread, with a screenshot of an Automated Environment's Trezor without a vault showing the +video:** „tady tohle video je super. Myslím si, že úplně krásně vysvětluje, jak Bitwarden +funguje, a i v prostředích, kde je Bitwarden aktivní, si myslím, že by tohle mělo být úplně +jako první věc, kterou člověk vidí ve chvíli, kdy chce s Bitwardenem nějakým způsobem +interagovat z Launchpadu." It changes point 4 of the addendum of 2026-10-18, where the +person's press of the "?" opened the video. Now the approved video `vault-overview` +(design-system-lazurio#93) is the first thing Trezor shows wherever its words are true. + +1. **Where: unchanged** (point 3 of the addendum of 2026-10-18, `vaultHelp`). The video + shows where the person is a member of the vault, or where the Environment has no + vault. Elsewhere the page shows no video, and the "?" plays its explanation as before: + - where nobody who enters is added (`vault-agents`); + - where the person is not a member, or that is not known yet; + - in a Personal Environment, whose vault is the person's own Bitwarden. + + The video says that people share from their own Bitwarden, which a visitor of a shared + Team Environment cannot do (#499). +2. **How it shows.** Once the page knows that the video is true (it has read the vault's + state and the person's membership), the box `#vault-video` opens first, under the + page's heading. It shows the video's poster: + - nothing plays, and nothing but the poster loads; + - the focus stays where it is, and nothing scrolls. + + The person starts it with the player's own control. The line under it + (`vaultVideoLine`) is unchanged. +3. **The "?"** beside the heading closes the video and opens it again; when it opens it, + the video plays from the start (with less motion, it waits at its poster). Escape + closes it. +4. **Closed by the person, it stays closed until the page moves on.** Reading the status + again, a change of language or the membership arriving do not reopen it. The next + visit opens it again (`helpVideoDrawing` in `src/launchpad/page-help.ts`, per visit of + a route). +5. **Unchanged:** + - The served page keeps the box hidden, so nothing flashes where the video is not + true. + - The video never plays by itself and has no sound. + - The page keeps no sentence that explains the vault. + - The guide's card plays `vault-agents` and the Personal adaptation. + +| Alternative | Trade-off / disposition | +| --- | --- | +| The video in every Organization's Environment, the `vault-agents` places included | It would say that people share from their own Bitwarden where nobody is added (#499). Rejected. A variant for a shared Team Environment can come from the host's facts later | +| Muted autoplay | Motion and data the person did not ask for; `prefers-reduced-motion` would need its own path. Rejected | +| Open only until the person has seen it once | Matěj asked for the first thing on every approach to Bitwarden, and a remembered "seen" needs a store per person. Rejected for now | +| The video behind the "?" (the addendum of 2026-10-18) | What this addendum changes. Rejected | + +**Honest limits.** + +- **The first look.** While the membership is being asked (a few seconds on the first + look), the page shows no video. Then the box opens, and the vault's row and actions move + down once. +- **The words.** The video's words speak of an Organization's vault. A Work Environment + whose vault adds people shows it also where the vault is reached by a Lazurio sign-in + (the addendum of 2026-10-18's honest limit stands). + +Verified by: +- `tests/launchpad-guide-video.test.ts`: the box served hidden at the top of the page, and + the visit rule (open where true, closed by the person until the page moves on, open + again on the next visit); +- `tests/launchpad-guide.test.ts`: where the video is true, unchanged; +- headless Chrome against the hosted preview (root decision 0178, `bun + scripts/preview-launchpad.ts hosted cs owner …`), in three states: + - `vault-member`: the work Environment's vault with the person a member, which this + addendum adds to the preview; + - `no-vault`: no vault; + - no option: the vault with the person not a member. + + In the first two, the box is open first at the video's start, paused, with the focus + outside it. The "?" closes it, and reading the status again keeps it closed. The "?" + opens it again and it plays, and Escape closes it. Moving on and coming back, in the + app or by a reload, opens it again at its start. In the third state the box never + opens, and the "?" plays `vault-agents`. diff --git a/docs/launchpad-development.md b/docs/launchpad-development.md index de1d8b7ae..6149f5e27 100644 --- a/docs/launchpad-development.md +++ b/docs/launchpad-development.md @@ -989,8 +989,9 @@ guide's mark and a card beside it, and the layer lets every click through. member (no account or no master password yet, removed), and while that is not known, the Launchpad's `vault-agents`, which promises no Bitwarden of one's own; where the person is a member of the vault, or the Environment has no vault, the approved video - `vault-overview`, which the "?" opens in place (`page-help.ts`, `#vault-video`) with - the one line it does not say; nothing until the page read the vault's state. One + `vault-overview`, open in place as the page opens and the first thing it shows (F56's + addendum (4) of 2026-10-19), with the one line it does not say; the "?" closes and reopens + it (`page-help.ts`, `#vault-video`); nothing until the page read the vault's state. One agent's request has no "?"; - Settings ([F56's addendum (2) of 2026-10-18](decisions.md#f56-addendum-2-of-2026-10-18-every-section-of-settings-has-its--and-loses-its-explaining-sentences)): Začínáme `settings-start` (only where it has the basics: not on a public Environment's demo @@ -1033,7 +1034,9 @@ guide's mark and a card beside it, and the layer lets every click through. variant is chosen only by facts the page knows, never by an Organization's name (#499). - **Check it in a browser** (root decision 0178): `bun scripts/preview-launchpad.ts - hosted|personal cs|en owner [team|automated|no-vault|composio-off]`, then every + hosted|personal cs|en owner [team|automated|no-vault|vault-member|composio-off]` + (`vault-member`: the person already a member of the work Environment's vault, where + Trezor shows its video first), then every page with its "?" at 1440 and 700 px, with and without `prefers-reduced-motion`: one "?" right after the heading, the ring on each step's element (or the card in the middle where it is not on the page), "Dokumentace" at the last step of Integrace, @@ -2560,8 +2563,9 @@ the fake bw of `tests/fixtures/fake-vault.ts`. **An Environment without a vault** ([F53's addendum of 2026-10-17](decisions.md#f53-addendum-of-2026-10-17-an-environment-without-a-vault-explains-the-vault)) says why in the page's line; how a vault works in an Organization is the guide video -`vault-overview`, which the "?" beside the heading opens in place (since F56's addendum of -2026-10-18 the page no longer has the group "Jak trezor funguje"). +`vault-overview`, open in place under the heading as the page opens (F56's addendum (4) of +2026-10-19; since its addendum of 2026-10-18 the page no longer has the group "Jak trezor +funguje", and the "?" beside the heading closes and reopens the video). The line depends on the vault's reason (`vaultPageView`'s `note`): a public Organization's Environment, whose handover names no tailnet (`no-tailnet`), has none on purpose, since the Organization is a public demo; any other (`no-vault`) is not @@ -2688,12 +2692,15 @@ language's, paused. The pure part, `guideVideoPlayer`, decides the markup and th `#vault-bitwarden-video` at the top of "V Codex Desktopu a ve vašem prohlížeči" (`vault-page-panel.ts`, hidden for a personal Environment's own Bitwarden, whose steps differ). Trezor's "?", where its words are true of the Environment's vault (an Organization's -vault the person is in, or no vault here; [the guide](#the-guide-decision-f56)), mounts -`vault-overview` in `#vault-video-player` with `open` the first time it is pressed -(`src/launchpad/page-help.ts`): the box `#vault-video` opens under the page's heading, the -press plays the video (with less motion it waits at its poster), the line under it -(`vaultVideoLine`) says what the video does not, and the "?" again, Escape or the page -moving on closes it, the focus back on the "?". +vault the person is in, or no vault here; [the guide](#the-guide-decision-f56)), is the +first thing the page shows (F56's addendum (4) of 2026-10-19, `src/launchpad/page-help.ts`): +as the page knows the video is true, the box `#vault-video` opens under the page's heading +with `vault-overview` in `#vault-video-player` at its poster, playing nothing and moving no +focus, and the person starts it; the line under it (`vaultVideoLine`) says what the video +does not. The "?" closes it and opens it again, and then plays it (with less motion it +waits at its poster); Escape closes it, the focus back on the "?". Closed by the person, it +stays closed until the page moves on (`helpVideoDrawing`, per visit), and the next visit +opens it again. The files are `src/launchpad/videos/-.mp4` and their posters `-.webp`, embedded in the executable with `{ type: "file" }` like the shell's diff --git a/scripts/preview-launchpad.ts b/scripts/preview-launchpad.ts index 0f408ce81..2fbc81939 100644 --- a/scripts/preview-launchpad.ts +++ b/scripts/preview-launchpad.ts @@ -80,8 +80,12 @@ // hosted preview's work Environment is the example Organization's Team // Environment or a persona's Automated Environment instead (its handover's // assignment `team` or `automation`), to see how a page names each kind -// (decision F28's addendum of 2026-10-18). Synthetic names only; stop it -// with Ctrl-C. +// (decision F28's addendum of 2026-10-18). With `vault-member` anywhere +// after the mode, the fictional person jana already has her Lazurio account +// with a master password in the hosted work Environment's vault, so Apps → +// Trezor adds and confirms her and finds her a member: the vault's video +// stands open first (F56's addendum (4) of 2026-10-19). Synthetic names only; +// stop it with Ctrl-C. import { chmod, mkdir, @@ -112,6 +116,7 @@ import { toolsEnvironmentOf } from "../src/tools/overview"; import { runTool } from "../src/tools/status"; import { readConnection } from "../src/vault/connection"; import { vaultSetup } from "../src/vault/flow"; +import { personAddress } from "../src/vault/members"; import { writeModule, writeOrganization, @@ -155,6 +160,7 @@ const composioOrgMissing = process.argv .includes("composio-org-missing"); const composioSignedOut = process.argv.slice(3).includes("composio-signed-out"); const bitwardenUs = process.argv.slice(3).includes("bitwarden-us"); +const vaultMemberPerson = process.argv.slice(3).includes("vault-member"); const noVault = process.argv .slice(3) @@ -617,6 +623,9 @@ async function previewBitwarden() { async function previewVault() { const vault = await startFakeVault(home); vault.allow(workAccount); + // The gateway's person (jana) with her own account in the vault, master + // password set: the membership adds and confirms her. + if (vaultMemberPerson) vault.person(personAddress("jana"), true); const zip = zipOf("bw", fakeBw); const pin = fakePin(zip); // No vault, for the reason asked for: nothing to set up. diff --git a/src/launchpad/index.html b/src/launchpad/index.html index cd564bc07..188b52729 100644 --- a/src/launchpad/index.html +++ b/src/launchpad/index.html @@ -1499,11 +1499,13 @@

Product updat
+ the approved guide video `vault-overview`, the first thing the page shows + where its words are true: open as the page opens, at its poster, with + the one line it does not say under it; the "?" beside the page's heading + closes it and opens it again (decision F56's addenda of 2026-10-18 and + (4) of 2026-10-19, page-help.ts). Hidden where it is not true and + until the page knows. The page itself keeps no sentence that explains + the vault. -->