# Dailies day

> One frame of Dailies opened: the pages you saved that day, each a link back to the work, with the kind of work as a band. Private, on this device, and honest when the links have expired.

Source: https://kwark.space/designSystem/components/dailies-day

## Usage

### What it is
Dailies, on a film, are yesterday's footage watched today. In Kwark, [Dailies](https://kwark.space/designSystem/components/dailies-frame.md) is a person's own record of the kinds of work they saved: a week as a film strip, a frame per day. Opening a frame shows this: **the pages you saved that day, each a link straight back to the work** (Decision 0043, Dailies; Decision 0036). It answers *what was I working on* and returns the person to it in one tap.

### When to use
- When someone opens a frame in Dailies.
- Only for that person's own saved work, on the device where it was saved.

### When not to
- As a log of time spent or effort. There are no durations, counts or totals.
- To show anyone else's work. Dailies is private; there is no team view (Decision 0001).
- For production records the crew shares. That is the production report and the call sheet.

### Anatomy in use
- **Heading**: the date in words, *Thursday 21 November*.
- **Privacy line**: *Private to you, on this device.* Always shown, because the device scope is the promise (Decision 0036).
- **Rows**: one per project area saved that day, newest first: the kind band, *Project · thing* in the writer's own names, and the module as a quiet second label.
- **Expired day**: after 30 days the frame keeps its bands but the links are gone. The day says so plainly and shows which kinds of work there were.

### Edge cases
- Repeated autosaves of the same scene on one day are one row.
- Sample films and scaffolding never appear.
- A deleted project's rows read *A project you deleted* and are not links.
- A day with nothing saved has no frame to open; never an empty day saying *You did nothing*.

### Writing
Rows name the work as the person named it: *Blank Pages · Scene 12*, *Day 4 call sheet*. The expired sentence names kinds, not amounts: *You saved story and prep work this day.*

**Do:** Four links with their kind bands, the privacy line, and an older day that says honestly why its links are gone.

**Don't:** *You worked 3 h 12 min. Best day this month.*, or an expired day that shows an error.

## Style

### Anatomy

1. **Card**: `--k-surface`, 1px `--k-line`, 10px corners, 24px padding, at most 420px wide.
2. **Heading**: Raleway 600, 16px.
3. **Privacy line**: 12px `--k-text-2`, 4px under the heading.
4. **Row**: a link, 44px tall (`--k-tap`), 8px × 12px padding, `--k-raise` ground, 6px corners, 2px between rows.
5. **Kind band**: 4 × 24px in `--k-kind-story`, `--k-kind-prep` or `--k-kind-performance`.
6. **Module**: 12px `--k-text-2`, right-aligned.
7. **Expired**: the bands side by side, then one sentence in 13px `--k-text-2`.

### Tokens

| Token | Light | Dark |
|---|---|---|
| `--k-surface` | #ffffff | #1a1a1a |
| `--k-raise` | #f1f5f9 | #252525 |
| `--k-kind-story` | #a8734c | #e8b58b |
| `--k-kind-prep` | #627d5c | #a9bfa3 |
| `--k-kind-performance` | #5f7393 | #a9b8cf |
| `--k-text-2` | #5b6779 | #9ca3af |
| `--k-tap` | 44px |  |
| `--k-radius-card` | 10px |  |
| `--k-radius-control` | 6px |  |

### States
| State | Look |
|---|---|
| Row hover | Ground steps 7% toward the text colour |
| Row focus | 2px `--k-focus` outline, 2px offset |
| Expired (over 30 days) | Bands and a sentence, no links |
| Deleted project | Row not a link, `--k-text-2` |

## Code

### React

In the Kwark app: `import Dailies from '@/pages/Project/components/Dailies'`.

```tsx
// Selecting a frame lists that day's saved project links (kept 30 days, at most 200 records, on this device).
```

| Prop | Type | Notes |
|---|---|---|

### HTML and CSS

Works anywhere with `kwark.css`.

```html
<section class="kw-dailies-day" aria-label="Thursday 21 November">
  <h3>Thursday 21 November</h3>
  <p class="kw-meta" style="margin:4px 0 0">Private to you, on this device.</p>
  <ul class="kw-dailies-day__rows">
    <li><a href="#scene-12"><span data-work-kind="story"></span>Blank Pages · Scene 12<small>Screenplay</small></a></li>
    <li><a href="#mira"><span data-work-kind="story"></span>Blank Pages · Mira<small>Characters</small></a></li>
    <li><a href="#day-4"><span data-work-kind="prep"></span>Blank Pages · Day 4 call sheet<small>Schedule</small></a></li>
    <li><a href="#sc12-lines"><span data-work-kind="performance"></span>Scene 12 · Off book<small>Your scenes</small></a></li>
  </ul>
</section>
<section class="kw-dailies-day" aria-label="Tuesday 8 October">
  <h3>Tuesday 8 October</h3>
  <p class="kw-meta" style="margin:4px 0 0">Private to you, on this device.</p>
  <p class="kw-dailies-day__expired"><span data-work-kind="story"></span><span data-work-kind="prep"></span>You saved story and prep work this day. The page links are kept for 30 days.</p>
</section>
```

## Accessibility

### Screen readers
- A `<section>` named with the date; rows are links whose text says the project and the thing.
- The kind is in the module label (*Screenplay*, *Schedule*, *Your scenes*), so the colour band is never the only signal; bands are decorative.

### Keyboard
Tab moves through the rows; Enter opens the work. Escape closes the day and returns focus to its frame.

## For agents

### Rules

- **Never** show durations, counts or comparisons on a dailies day (Decision 0036).
- **Must** say honestly when links have expired, and keep the kind bands.
- **Always** show the privacy line.
- **Never** show another person's Dailies.

### AI readiness test

**Task:** Open a Dailies frame from 40 days ago.

**Give the agent:** Dailies day, Dailies frame, Decision 0043 Dailies, Decision 0036.

**Constraint:** Links expire after 30 days.

**A reliable answer:**
- Bands still shown
- Plain sentence that links are kept 30 days
- No empty error
- No durations
- Privacy line kept
