Compare commits

..
2 Commits
Author SHA1 Message Date
Florian Schmidt ebf8649ab6 docs(mind): record app icon (#14) 2026-11-16 15:21:07 +01:00
Florian Schmidt 6350f1e6f4 feat(web): app icon and logo (#14)
A notebook with a shell prompt on a dark tile, as one SVG used for the
favicon, the top bar, sign-in, setup and the README. PNG renders (192,
512, apple-touch) and a web manifest let browsers and phones show it
when the app is added to the home screen.
2026-11-16 15:21:07 +01:00
13 changed files with 53 additions and 4 deletions
+1
View File
@@ -16,5 +16,6 @@
- [2026-11-16] **Template delivery:** `install.sh` offers each shipped notebook template once (`/etc/shellbook/templates-offered`), copied as the service user, never overwriting or restoring deleted files. - [2026-11-16] **Template delivery:** `install.sh` offers each shipped notebook template once (`/etc/shellbook/templates-offered`), copied as the service user, never overwriting or restoring deleted files.
- [2026-11-16] **Web UI shell (#12):** top bar (tabs, live state, Chat/Terminal), notebook sidebar only on Notebooks, parameter panel beside the notebook via a container query (above it when narrow), dialogs/menus from `ui.tsx`. Page and notebook live in the URL hash (`route.ts`); typed non-secret values are remembered per notebook in localStorage (`paramMemory.ts`, secrets and undeclared names are dropped on read and write). - [2026-11-16] **Web UI shell (#12):** top bar (tabs, live state, Chat/Terminal), notebook sidebar only on Notebooks, parameter panel beside the notebook via a container query (above it when narrow), dialogs/menus from `ui.tsx`. Page and notebook live in the URL hash (`route.ts`); typed non-secret values are remembered per notebook in localStorage (`paramMemory.ts`, secrets and undeclared names are dropped on read and write).
- [2026-11-16] **Collapsible parameters (#13):** the form and each included group collapse (remembered via `uiPrefs.ts`). Collapsed, only missing required values and values changed from their default are listed as chips; untouched defaults are just counted, so the bar stays one line. - [2026-11-16] **Collapsible parameters (#13):** the form and each included group collapse (remembered via `uiPrefs.ts`). Collapsed, only missing required values and values changed from their default are listed as chips; untouched defaults are just counted, so the bar stays one line.
- [2026-11-16] **Icon (#14):** `apps/web/public/shellbook.svg` (mint notebook with `>_` on a dark tile) is the single source for favicon, top bar, sign-in, setup and README. The PNGs (192, 512, 180 apple-touch on a full dark square) are rendered from it with headless Edge; give the SVG fixed px sizes, since headless Edge enforces a minimum viewport width and `100vw` overshoots.
## Archive ## Archive
+2 -2
View File
@@ -2,7 +2,7 @@
> Always-loaded. Everything else is on-demand. Update TOC when files change. > Always-loaded. Everything else is on-demand. Update TOC when files change.
## Current Focus ## Current Focus
- [2026-11-16] M0–M3 (#1–#4), UI-first follow-ups (#7–#10) and chained notebooks (#11: when/use/host, LXC + web-server templates) the UI/UX overhaul (#12) and collapsible parameters (#13) closed. - [2026-11-16] M0–M3 (#1–#4), UI-first follow-ups (#7–#10) and chained notebooks (#11: when/use/host, LXC + web-server templates) the UI/UX overhaul (#12) and collapsible parameters (#13) and the app icon (#14) closed.
- [2026-11-16] Open: #5/#6 need a real CT 501 deploy (bootstrap.sh one-liner, setup token, real SSH run, tmux terminal). Not yet verified in a real browser or against real OpenSSH. - [2026-11-16] Open: #5/#6 need a real CT 501 deploy (bootstrap.sh one-liner, setup token, real SSH run, tmux terminal). Not yet verified in a real browser or against real OpenSSH.
## Invariants ## Invariants
@@ -15,7 +15,7 @@
- Everything doable from the web UI; files are storage, not the only way in. - Everything doable from the web UI; files are storage, not the only way in.
## Table of Contents ## Table of Contents
- `architecture.md` — 15 entries — why custom app, stack, AI integration, workspace split, deploy/update, chained notebooks, template delivery, web UI shell, collapsible params - `architecture.md` — 16 entries — why custom app, stack, AI integration, workspace split, deploy/update, chained notebooks, template delivery, web UI shell, collapsible params, app icon
- `attempts.md` — 4 entries — marimo + marimo-pair trial and why it was dropped - `attempts.md` — 4 entries — marimo + marimo-pair trial and why it was dropped
- `open.md` — 2 entries — open design questions (sudo password, chat history) - `open.md` — 2 entries — open design questions (sudo password, chat history)
- `gotchas.md` — 17 entries — integration foot-guns (CRLF, host-key events, tmux/systemd, env names, pct exec PATH, TUN, chat paths, watcher timing, capture-default deadlock, heredocs, YAML flow commas, orphaned dev servers) - `gotchas.md` — 17 entries — integration foot-guns (CRLF, host-key events, tmux/systemd, env names, pct exec PATH, TUN, chat paths, watcher timing, capture-default deadlock, heredocs, YAML flow commas, orphaned dev servers)
+2
View File
@@ -1,3 +1,5 @@
<img src="apps/web/public/shellbook.svg" alt="" width="72" height="72">
# ShellBook # ShellBook
Notebook-style runbooks for Linux servers. Notebook-style runbooks for Linux servers.
+5
View File
@@ -4,6 +4,11 @@
<meta charset="UTF-8" /> <meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" /> <meta name="viewport" content="width=device-width, initial-scale=1" />
<meta name="color-scheme" content="dark light" /> <meta name="color-scheme" content="dark light" />
<meta name="theme-color" content="#141a22" />
<link rel="icon" href="/shellbook.svg" type="image/svg+xml" />
<link rel="icon" href="/icon-192.png" type="image/png" sizes="192x192" />
<link rel="apple-touch-icon" href="/apple-touch-icon.png" />
<link rel="manifest" href="/manifest.webmanifest" />
<title>ShellBook</title> <title>ShellBook</title>
</head> </head>
<body> <body>
Binary file not shown.

After

Width:  |  Height:  |  Size: 3.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 13 KiB

+14
View File
@@ -0,0 +1,14 @@
{
"name": "ShellBook",
"short_name": "ShellBook",
"description": "Notebook-style server runbooks",
"start_url": "/",
"display": "standalone",
"background_color": "#11151b",
"theme_color": "#141a22",
"icons": [
{ "src": "/shellbook.svg", "type": "image/svg+xml", "sizes": "any" },
{ "src": "/icon-192.png", "type": "image/png", "sizes": "192x192" },
{ "src": "/icon-512.png", "type": "image/png", "sizes": "512x512" }
]
}
+12
View File
@@ -0,0 +1,12 @@
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 64 64" role="img" aria-label="ShellBook">
<!-- Dark tile so the mark reads on light and dark tabs alike. -->
<rect width="64" height="64" rx="14" fill="#141a22"/>
<!-- Notebook: mint cover with a darker spine. -->
<rect x="11" y="7" width="42" height="50" rx="6" fill="#86dab9"/>
<path d="M17 7h5v50h-5a6 6 0 0 1-6-6V13a6 6 0 0 1 6-6z" fill="#4fa985"/>
<!-- Bookmark ribbon. -->
<path d="M41 7h7v16l-3.5-3-3.5 3z" fill="#f2c56b"/>
<!-- Shell prompt: >_ -->
<path d="M28.5 25.5l8 6.5-8 6.5" fill="none" stroke="#141a22" stroke-width="5" stroke-linecap="round" stroke-linejoin="round"/>
<path d="M39.5 41.5h8" fill="none" stroke="#141a22" stroke-width="5" stroke-linecap="round"/>
</svg>

After

Width:  |  Height:  |  Size: 759 B

+3 -1
View File
@@ -44,7 +44,7 @@ import { StepCard } from "./StepCard";
import { ChatPanel } from "./ChatPanel"; import { ChatPanel } from "./ChatPanel";
import { parseRoute, routeHash } from "./route"; import { parseRoute, routeHash } from "./route";
import { recallValues, rememberValues } from "./paramMemory"; import { recallValues, rememberValues } from "./paramMemory";
import { Dialog } from "./ui"; import { Dialog, Logo } from "./ui";
import { readFlag, writeFlag } from "./uiPrefs"; import { readFlag, writeFlag } from "./uiPrefs";
const TerminalSlot = lazy(() => const TerminalSlot = lazy(() =>
import("./TerminalSlot").then((module) => ({ default: module.TerminalSlot })), import("./TerminalSlot").then((module) => ({ default: module.TerminalSlot })),
@@ -453,6 +453,7 @@ export function App({ api }: { api: Api }) {
return ( return (
<main className="login"> <main className="login">
<h1> <h1>
<Logo size={48} />
ShellBook<span>RUNBOOKS</span> ShellBook<span>RUNBOOKS</span>
</h1> </h1>
<p className="muted">Sign in to your workspace</p> <p className="muted">Sign in to your workspace</p>
@@ -492,6 +493,7 @@ export function App({ api }: { api: Api }) {
<div className="app"> <div className="app">
<header className="topbar"> <header className="topbar">
<span className="brand"> <span className="brand">
<Logo />
ShellBook ShellBook
{import.meta.env.VITE_MOCK === "1" && <span className="chip">demo</span>} {import.meta.env.VITE_MOCK === "1" && <span className="chip">demo</span>}
</span> </span>
+5 -1
View File
@@ -1,9 +1,13 @@
import { PasswordForm } from "./PasswordForm"; import { PasswordForm } from "./PasswordForm";
import { settingsApi } from "./settingsApi"; import { settingsApi } from "./settingsApi";
import { Logo } from "./ui";
export function SetupScreen({ onComplete }: { onComplete: () => void }) { export function SetupScreen({ onComplete }: { onComplete: () => void }) {
return ( return (
<main className="login"> <main className="login">
<h1>Set up ShellBook</h1> <h1>
<Logo size={48} />
Set up ShellBook
</h1>
<p> <p>
Enter the one-time token from the setup-token file in the server data Enter the one-time token from the setup-token file in the server data
directory. directory.
+4
View File
@@ -980,6 +980,10 @@ pre.script {
.login h1 { .login h1 {
margin-bottom: 4px; margin-bottom: 4px;
} }
.login h1 .logo {
display: block;
margin-bottom: 14px;
}
.login h1 span { .login h1 span {
display: block; display: block;
font-size: 10px; font-size: 10px;
+5
View File
@@ -1,6 +1,11 @@
import { useEffect, useId, useRef, useState, type ReactNode } from "react"; import { useEffect, useId, useRef, useState, type ReactNode } from "react";
/** Modal dialog: Escape and the backdrop cancel; focus moves into it on open. */ /** Modal dialog: Escape and the backdrop cancel; focus moves into it on open. */
/** The ShellBook mark (public/shellbook.svg); decorative next to the product name. */
export function Logo({ size = 22 }: { size?: number }) {
return <img className="logo" src="/shellbook.svg" width={size} height={size} alt="" />;
}
export function Dialog({ export function Dialog({
title, title,
onClose, onClose,