Add Web Push, guided start screen, SVG icons, chunked uploads, rename

- Web Push (VAPID + RFC 8291, pure Rust): permission/question/finished
  notifications while no app window is visible; settings with test button
- Guided new-session flow: task, craft target (website/app/game/old
  software/fresh), clean room or deep, description, model, folder
  (new, existing or cloned git repository); originals upload to original/
- Craft phase bar (craft_phase tool) for study/specify/build/check/ready
- Chunked uploads (8 MB) up to server.max_upload_mb (default 500 MB)
- All UI glyphs and emojis replaced by themeable SVG icons
- Rename dialog with manual name or model-generated suggestion

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Richard ZinkandClaude Opus 5.5 committed 2026-11-08 21:03:26 +01:00
1 parent 013695722a
commit a0d0e707f2
48 files changed
+2724 -228

No files matched your search

+477
View File
@@ -2317,3 +2317,480 @@ button.danger-solid {
.menu-pop-body a:hover {
background: var(--bg2);
}
/* --- new session wizard ------------------------------------------------------------ */
.wizard {
max-width: 980px;
}
.wiz-title {
font-size: 30px;
margin: 8px 0 4px;
color: var(--fg0);
}
.wiz-sub {
color: var(--fg3);
margin: 0 0 18px;
}
.wiz-panel {
padding: 22px 24px;
}
.wiz-step {
margin-bottom: 26px;
}
.wiz-step h3 {
display: flex;
align-items: center;
gap: 12px;
font-size: 19px;
margin: 0 0 14px;
color: var(--fg0);
}
.wiz-num {
display: inline-grid;
place-items: center;
width: 30px;
height: 30px;
border-radius: 50%;
border: 1px solid var(--bg3);
background: var(--bg2);
font-size: 14px;
font-weight: 600;
color: var(--fg1);
flex-shrink: 0;
}
.wiz-cards {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
gap: 12px;
}
.wiz-cards.five {
grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
}
.wiz-cards.two {
grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
}
.wiz-card {
position: relative;
display: flex;
align-items: center;
gap: 12px;
text-align: left;
padding: 14px 16px;
min-height: 64px;
border-radius: 10px;
border: 1px solid var(--bg3);
background: var(--bg0);
color: var(--fg1);
font-size: 15px;
cursor: pointer;
transition: border-color 0.15s, background 0.15s;
}
.wiz-card:hover {
border-color: var(--fg3);
}
.wiz-card.active {
border: 2px solid var(--accent);
padding: 13px 15px;
background: color-mix(in srgb, var(--accent) 12%, var(--bg0));
}
.wiz-card-text {
display: flex;
flex-direction: column;
gap: 2px;
min-width: 0;
padding-right: 18px;
}
.wiz-card-title {
font-weight: 600;
color: var(--fg0);
}
.wiz-card-desc {
font-size: 12.5px;
color: var(--fg3);
line-height: 1.35;
}
.wiz-icon {
width: 26px;
height: 26px;
flex-shrink: 0;
fill: none;
stroke: currentColor;
stroke-width: 1.6;
stroke-linecap: round;
stroke-linejoin: round;
}
.wiz-card .wiz-icon {
color: var(--fg2);
}
.wiz-card.active .wiz-icon {
color: var(--accent);
}
.wiz-check {
position: absolute;
top: 10px;
right: 10px;
width: 18px;
height: 18px;
fill: none;
stroke: var(--accent);
stroke-width: 2.4;
stroke-linecap: round;
stroke-linejoin: round;
}
.wiz-url {
width: 100%;
margin-bottom: 10px;
font-size: 15px;
}
.wiz-input {
border: 1px solid var(--bg3);
border-radius: 12px;
background: var(--bg0);
padding: 12px 14px 8px;
}
.wiz-input:focus-within {
border-color: var(--accent);
}
.wiz-input textarea {
width: 100%;
min-height: 96px;
border: none;
background: transparent;
resize: vertical;
font-size: 15px;
outline: none;
padding: 0;
}
.wiz-input-foot {
display: flex;
align-items: center;
gap: 8px;
font-size: 12.5px;
color: var(--fg3);
}
.wiz-input-foot .wiz-icon {
width: 20px;
height: 20px;
}
.wiz-ideas {
display: flex;
flex-wrap: wrap;
align-items: center;
gap: 8px;
margin-top: 12px;
color: var(--fg2);
}
.chip-btn {
border: 1px solid var(--bg3);
border-radius: 8px;
background: var(--bg0);
color: var(--fg1);
padding: 6px 12px;
cursor: pointer;
}
.chip-btn:hover {
border-color: var(--accent);
}
.wiz-foot {
display: flex;
flex-direction: column;
gap: 14px;
border-top: 1px solid var(--bg2);
padding-top: 18px;
}
.wiz-foot-row {
display: flex;
align-items: center;
gap: 12px;
flex-wrap: wrap;
}
.wiz-foot-row label {
color: var(--fg2);
}
.wiz-folder {
display: flex;
align-items: center;
gap: 10px;
flex-wrap: wrap;
color: var(--fg2);
}
.wiz-folder .wiz-icon {
width: 20px;
height: 20px;
}
.wiz-folder-text {
display: inline-flex;
align-items: center;
gap: 6px;
flex-wrap: wrap;
}
.wiz-folder-name {
width: 220px;
font-family: var(--mono);
}
.link-btn {
background: none;
border: none;
color: var(--blue);
cursor: pointer;
padding: 0;
text-decoration: underline;
text-underline-offset: 3px;
}
.wiz-picker .dir-list button .wiz-icon {
width: 18px;
height: 18px;
color: var(--fg3);
}
.wiz-start-row {
display: flex;
justify-content: flex-end;
}
.wiz-start {
display: inline-flex;
align-items: center;
gap: 8px;
font-size: 16px;
padding: 12px 26px;
border-radius: 10px;
}
.wiz-start .wiz-icon {
width: 20px;
height: 20px;
}
@media (max-width: 700px) {
.wiz-panel {
padding: 16px;
}
.wiz-title {
font-size: 24px;
}
.wiz-cards,
.wiz-cards.five,
.wiz-cards.two {
grid-template-columns: 1fr 1fr;
}
.wiz-card {
padding: 10px 12px;
}
.wiz-card-desc {
display: none;
}
}
/* --- craft phase bar ----------------------------------------------------------------- */
.phase-bar {
display: flex;
align-items: center;
gap: 0;
padding: 8px 16px;
border-bottom: 1px solid var(--bg2);
overflow-x: auto;
font-size: 12.5px;
}
.phase-bar .phase {
display: inline-flex;
align-items: center;
gap: 6px;
color: var(--fg3);
white-space: nowrap;
}
.phase-bar .phase .dot {
width: 18px;
height: 18px;
border-radius: 50%;
border: 1.5px solid var(--bg3);
display: inline-grid;
place-items: center;
font-size: 10px;
}
.phase-bar .phase.done {
color: var(--fg2);
}
.phase-bar .phase.done .dot {
background: var(--green);
border-color: var(--green);
}
.phase-bar .phase.done .dot svg {
width: 11px;
height: 11px;
fill: none;
stroke: var(--bg0);
stroke-width: 3;
stroke-linecap: round;
stroke-linejoin: round;
}
.phase-bar .phase.current {
color: var(--accent);
font-weight: 600;
}
.phase-bar .phase.current .dot {
border-color: var(--accent);
box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 25%, transparent);
animation: glow 1.6s ease-in-out infinite;
}
.phase-bar .sep {
flex: 1;
min-width: 18px;
max-width: 60px;
height: 1.5px;
background: var(--bg3);
margin: 0 8px;
}
.phase-bar .sep.done {
background: var(--green);
}
.wiz-drop {
display: flex;
align-items: center;
gap: 14px;
margin-top: 14px;
padding: 18px;
border: 2px dashed var(--bg3);
border-radius: 12px;
cursor: pointer;
color: var(--fg1);
}
.wiz-drop:hover {
border-color: var(--accent);
}
.wiz-drop .wiz-icon {
width: 32px;
height: 32px;
color: var(--accent);
}
.wiz-originals {
display: flex;
flex-direction: column;
gap: 6px;
margin-top: 10px;
}
.wiz-original {
display: flex;
align-items: center;
gap: 10px;
padding: 6px 10px;
border-radius: 8px;
background: var(--bg1);
font-size: 13px;
}
.wiz-original .name {
flex: 1;
min-width: 0;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.wiz-original .size {
color: var(--muted);
}
.wiz-original .bar {
width: 120px;
height: 6px;
border-radius: 3px;
background: var(--bg3);
overflow: hidden;
}
.wiz-original .bar i {
display: block;
height: 100%;
background: var(--accent);
transition: width 0.2s;
}
.wiz-folder-modes {
display: flex;
flex-wrap: wrap;
gap: 8px;
}
.wiz-folder-mode {
display: inline-flex;
align-items: center;
gap: 8px;
padding: 8px 14px;
border-radius: 8px;
border: 1px solid var(--bg3);
background: var(--bg0);
color: var(--fg1);
cursor: pointer;
}
.wiz-folder-mode .wiz-icon {
width: 18px;
height: 18px;
}
.wiz-folder-mode.active {
border-color: var(--accent);
color: var(--accent);
background: color-mix(in srgb, var(--accent) 10%, var(--bg0));
}
/* --- icons (SVG, coloured by the theme via currentColor) --------------------- */
.icon {
width: 1.15em;
height: 1.15em;
vertical-align: -0.2em;
fill: none;
stroke: currentColor;
stroke-width: 1.8;
stroke-linecap: round;
stroke-linejoin: round;
flex-shrink: 0;
}
.icon .fill {
fill: currentColor;
stroke: none;
}
.icon.tiny {
width: 0.85em;
height: 0.85em;
vertical-align: -0.08em;
}
.icon.ok {
color: var(--green);
}
.icon.ficon {
color: var(--fg3);
}
.icon.ficon.dir {
color: var(--accent);
}
.icon.nav-icon {
width: 1.15em;
margin-right: 8px;
}
.file-chip .icon.file-chip-icon {
color: var(--fg3);
}
.theme-toggle .icon {
width: 17px;
height: 17px;
}
.title-edit {
margin-left: 6px;
opacity: 0;
transition: opacity 0.15s;
vertical-align: middle;
padding: 2px 6px;
}
.topbar h1:hover .title-edit,
.title-edit:focus-visible {
opacity: 0.8;
}
@media (pointer: coarse) {
.title-edit {
opacity: 0.6;
}
}
.rename-gen {
display: flex;
align-items: center;
gap: 8px;
flex-wrap: wrap;
margin-top: 12px;
}
.rename-gen button {
display: inline-flex;
align-items: center;
gap: 6px;
}