Scaffold Phase 0: Django project, deploy config, base layout
Django 5.2 with dev/test/prod settings, SQLite tuned for Litestream
(WAL, IMMEDIATE transactions), ULID primary keys via a shared base
model, and a custom User model ahead of the first migration.
Minimal accessible base template with dark mode via color-scheme and
an optional theme picker. /healthz answers before host validation so
Fly checks pass.
Dockerfile (dev and prod targets), compose for local dev, fly.toml
with placeholder app/region, Litestream backups to B2, and a Forgejo
Actions workflow. Migrations run in bin/start because Fly release
machines don't mount volumes.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-27 06:59:34 -04:00
|
|
|
/*
|
|
|
|
|
* Intent's whole stylesheet: a thin layer over browser defaults.
|
|
|
|
|
* If this file fails to load, layout should suffer but look-and-feel should not.
|
|
|
|
|
* Colors come from the browser via color-scheme; no custom palette.
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
:root {
|
|
|
|
|
color-scheme: light dark;
|
Harden for launch: limits, CSP, moderation, admin 2FA (Phase 5)
- Rate limits in the shared cache for comments, issues, uploads and
invites; a limited HTMX reply keeps the draft.
- Content-Security-Policy (self only, no inline script or style, bucket
origin for images and frames) and Permissions-Policy on every page.
htmx configured not to inject styles or eval.
- Moderation: deactivating a user ends their sessions and keeps their
content; deleted accounts show as "ghost"; reserved usernames; the
admin won't delete an org's last owner.
- Admin requires a TOTP code (django-otp), with add_admin_totp to enrol.
- Email provider chosen by environment through django-anymail.
- Playwright browser tests: axe WCAG 2.1 AA on every page in light and
dark, no CSP violations, keyboard walkthrough, theme toggle. Explicit
Canvas/CanvasText on :root fixes dark-mode contrast detection.
- bin/start creates the data dir if missing; docs/operations.md runbook.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-27 10:51:06 -04:00
|
|
|
/* The same system colours the browser would use, made explicit so tools (and embeds)
|
|
|
|
|
that can't see the canvas don't assume black on white. */
|
|
|
|
|
background-color: Canvas;
|
|
|
|
|
color: CanvasText;
|
Scaffold Phase 0: Django project, deploy config, base layout
Django 5.2 with dev/test/prod settings, SQLite tuned for Litestream
(WAL, IMMEDIATE transactions), ULID primary keys via a shared base
model, and a custom User model ahead of the first migration.
Minimal accessible base template with dark mode via color-scheme and
an optional theme picker. /healthz answers before host validation so
Fly checks pass.
Dockerfile (dev and prod targets), compose for local dev, fly.toml
with placeholder app/region, Litestream backups to B2, and a Forgejo
Actions workflow. Migrations run in bin/start because Fly release
machines don't mount volumes.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-27 06:59:34 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
:root[data-theme="light"] {
|
|
|
|
|
color-scheme: light;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
:root[data-theme="dark"] {
|
|
|
|
|
color-scheme: dark;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
body {
|
|
|
|
|
max-width: 72rem;
|
|
|
|
|
margin: 0 auto;
|
|
|
|
|
padding: 0 1rem;
|
|
|
|
|
line-height: 1.5;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
header,
|
|
|
|
|
footer {
|
|
|
|
|
padding-block: 1rem;
|
|
|
|
|
}
|
|
|
|
|
|
2026-10-27 07:10:27 -04:00
|
|
|
nav ul {
|
|
|
|
|
display: flex;
|
|
|
|
|
flex-wrap: wrap;
|
|
|
|
|
align-items: center;
|
|
|
|
|
gap: 0.5rem 1.5rem;
|
|
|
|
|
margin: 0;
|
|
|
|
|
padding: 0;
|
|
|
|
|
list-style: none;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
nav form {
|
|
|
|
|
margin: 0;
|
|
|
|
|
}
|
|
|
|
|
|
2026-10-27 07:58:16 -04:00
|
|
|
.breadcrumb {
|
|
|
|
|
display: flex;
|
|
|
|
|
flex-wrap: wrap;
|
|
|
|
|
gap: 0.5rem;
|
|
|
|
|
margin: 0 0 0.5rem;
|
|
|
|
|
padding: 0;
|
|
|
|
|
list-style: none;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.breadcrumb li + li::before {
|
|
|
|
|
content: "/";
|
|
|
|
|
content: "/" / "";
|
|
|
|
|
margin-inline-end: 0.5rem;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
textarea {
|
|
|
|
|
box-sizing: border-box;
|
|
|
|
|
width: 100%;
|
|
|
|
|
max-width: 80ch;
|
|
|
|
|
}
|
|
|
|
|
|
2026-10-27 07:10:27 -04:00
|
|
|
table {
|
|
|
|
|
border-collapse: collapse;
|
|
|
|
|
}
|
|
|
|
|
|
2026-10-27 07:58:16 -04:00
|
|
|
.diff tbody + tbody {
|
|
|
|
|
border-top: 1px solid;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.diff td:last-child {
|
|
|
|
|
white-space: pre-wrap;
|
|
|
|
|
font-family: monospace;
|
|
|
|
|
}
|
|
|
|
|
|
2026-10-27 07:10:27 -04:00
|
|
|
th,
|
|
|
|
|
td {
|
|
|
|
|
padding: 0.25rem 0.75rem 0.25rem 0;
|
|
|
|
|
text-align: start;
|
|
|
|
|
vertical-align: top;
|
|
|
|
|
}
|
|
|
|
|
|
Scaffold Phase 0: Django project, deploy config, base layout
Django 5.2 with dev/test/prod settings, SQLite tuned for Litestream
(WAL, IMMEDIATE transactions), ULID primary keys via a shared base
model, and a custom User model ahead of the first migration.
Minimal accessible base template with dark mode via color-scheme and
an optional theme picker. /healthz answers before host validation so
Fly checks pass.
Dockerfile (dev and prod targets), compose for local dev, fly.toml
with placeholder app/region, Litestream backups to B2, and a Forgejo
Actions workflow. Migrations run in bin/start because Fly release
machines don't mount volumes.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-27 06:59:34 -04:00
|
|
|
p,
|
|
|
|
|
li,
|
|
|
|
|
dd {
|
|
|
|
|
max-width: 70ch;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
img {
|
|
|
|
|
max-width: 100%;
|
|
|
|
|
height: auto;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
:focus-visible {
|
|
|
|
|
outline: 2px solid currentColor;
|
|
|
|
|
outline-offset: 2px;
|
|
|
|
|
}
|
|
|
|
|
|
Add issues and comment threads (Phase 3)
Issues: per-project numbers, statuses (open, accepted, rejected,
withdrawn, duplicate), feature links, edits, and a timeline of comments
and events. From an issue, collaborators create or update a feature
with the revision tied to the issue and an option to accept it.
Comments: general and line-anchored threads on features, one
discussion thread per issue, edit history, tombstone deletes, resolve,
and promoting a feature thread to an issue. Line threads attach to
top-level Markdown blocks and go outdated only when the text changes.
HTMX swaps threads in place with focus management; every action also
works as a plain form post. Markdown headings are re-levelled so user
text never skips heading levels on the page.
The example flow from concept.md (steps 1-7) is covered end to end in
tests/test_example_flow.py.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-27 09:18:45 -04:00
|
|
|
/* Discussion. Threads and comments are indented by a rule, nothing more. */
|
|
|
|
|
|
|
|
|
|
.thread,
|
|
|
|
|
.timeline > li {
|
|
|
|
|
margin-block: 0.75rem;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.thread {
|
|
|
|
|
padding-inline-start: 0.75rem;
|
|
|
|
|
border-inline-start: 2px solid color-mix(in srgb, CanvasText 30%, Canvas);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.comment {
|
|
|
|
|
margin-block: 0.75rem;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.comment > header {
|
|
|
|
|
font-size: 0.9em;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.timeline {
|
|
|
|
|
padding: 0;
|
|
|
|
|
list-style: none;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.actions {
|
|
|
|
|
display: flex;
|
|
|
|
|
flex-wrap: wrap;
|
|
|
|
|
align-items: start;
|
|
|
|
|
gap: 0.5rem 1rem;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
form.inline {
|
|
|
|
|
display: inline;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.line-comment > summary {
|
|
|
|
|
font-size: 0.85em;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.block:target,
|
|
|
|
|
.comment:target,
|
|
|
|
|
.thread:target {
|
|
|
|
|
outline: 2px dashed currentColor;
|
|
|
|
|
outline-offset: 4px;
|
|
|
|
|
}
|
|
|
|
|
|
Add feature files, image pins and implementations (Phase 4)
Files: prototype and documentation files on features, with versions.
Adding, replacing or removing a file is a feature revision with a
change note. Types come from the extension; uploads are capped at
25 MB and stored under opaque paths. Every file URL checks project
access, then redirects to a short-lived signed URL on the bucket, or
streams with nosniff and a CSP sandbox when no bucket is configured.
HTML prototypes run in a sandboxed iframe without same-origin access.
Threads: whole-file threads and pins at a point on an image, drawn as
an SVG overlay in percentages. Pins are placed with number fields, or
by clicking the image with JS.
Implementations: name, link and status, plus a per-feature status grid
stamped with the feature revision, marked behind when the feature
changes, and confirmable without changing the status.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-27 10:15:30 -04:00
|
|
|
/* Files. Pins are an SVG overlay positioned in percentages, so they track the image. */
|
|
|
|
|
|
|
|
|
|
.pinboard {
|
|
|
|
|
position: relative;
|
|
|
|
|
display: inline-block;
|
|
|
|
|
margin: 0;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.pinboard img {
|
|
|
|
|
display: block;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.pinboard.placing img {
|
|
|
|
|
cursor: crosshair;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.pins {
|
|
|
|
|
position: absolute;
|
|
|
|
|
inset: 0;
|
|
|
|
|
width: 100%;
|
|
|
|
|
height: 100%;
|
|
|
|
|
overflow: visible;
|
|
|
|
|
pointer-events: none;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.pins a {
|
|
|
|
|
pointer-events: auto;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.pins circle {
|
|
|
|
|
fill: Mark;
|
|
|
|
|
stroke: MarkText;
|
|
|
|
|
stroke-width: 2;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.pins circle.pending {
|
|
|
|
|
fill: none;
|
|
|
|
|
stroke-dasharray: 4 3;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.pins text {
|
|
|
|
|
fill: MarkText;
|
|
|
|
|
font: bold 12px sans-serif;
|
|
|
|
|
text-anchor: middle;
|
|
|
|
|
dominant-baseline: central;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.pins a:focus-visible circle {
|
|
|
|
|
stroke-width: 4;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.prototype {
|
|
|
|
|
width: 100%;
|
|
|
|
|
height: 70vh;
|
|
|
|
|
border: 1px solid;
|
|
|
|
|
}
|
|
|
|
|
|
Add issues and comment threads (Phase 3)
Issues: per-project numbers, statuses (open, accepted, rejected,
withdrawn, duplicate), feature links, edits, and a timeline of comments
and events. From an issue, collaborators create or update a feature
with the revision tied to the issue and an option to accept it.
Comments: general and line-anchored threads on features, one
discussion thread per issue, edit history, tombstone deletes, resolve,
and promoting a feature thread to an issue. Line threads attach to
top-level Markdown blocks and go outdated only when the text changes.
HTMX swaps threads in place with focus management; every action also
works as a plain form post. Markdown headings are re-levelled so user
text never skips heading levels on the page.
The example flow from concept.md (steps 1-7) is covered end to end in
tests/test_example_flow.py.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-27 09:18:45 -04:00
|
|
|
pre.quote {
|
|
|
|
|
white-space: pre-wrap;
|
|
|
|
|
padding-inline-start: 0.75rem;
|
|
|
|
|
border-inline-start: 2px solid;
|
|
|
|
|
}
|
|
|
|
|
|
Scaffold Phase 0: Django project, deploy config, base layout
Django 5.2 with dev/test/prod settings, SQLite tuned for Litestream
(WAL, IMMEDIATE transactions), ULID primary keys via a shared base
model, and a custom User model ahead of the first migration.
Minimal accessible base template with dark mode via color-scheme and
an optional theme picker. /healthz answers before host validation so
Fly checks pass.
Dockerfile (dev and prod targets), compose for local dev, fly.toml
with placeholder app/region, Litestream backups to B2, and a Forgejo
Actions workflow. Migrations run in bin/start because Fly release
machines don't mount volumes.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-27 06:59:34 -04:00
|
|
|
.skip-link {
|
|
|
|
|
position: absolute;
|
|
|
|
|
left: -100vw;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.skip-link:focus {
|
|
|
|
|
position: static;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.muted {
|
|
|
|
|
color: color-mix(in srgb, CanvasText 70%, Canvas);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.visually-hidden {
|
|
|
|
|
position: absolute;
|
|
|
|
|
width: 1px;
|
|
|
|
|
height: 1px;
|
|
|
|
|
overflow: hidden;
|
|
|
|
|
clip-path: inset(50%);
|
|
|
|
|
white-space: nowrap;
|
|
|
|
|
}
|