Files
loki/drizzle/0086_away.sql
CatoandClaude Fable 5.1 a508c1ed16 feat(away): "back in 30 minutes" — the next screen says what happened; fewer things thrown together (#1126)
* feat(away): "back in 30 minutes" — the next screen says what happened; fewer things thrown together

"Back in 30 minutes"
- Say it to Loki and set_away records when you left and when you said
  you would be back (user_preferences.away_since/away_until, migration
  0086). Nothing is recorded during the absence.
- On return, Control and the chat's start screen lead with one card:
  what needs you, what went live, what finished (ok / failed, on which
  projects), what still runs, what arrived — each line a link to where
  it is acted on, gone in one tap. While still away, one quiet line.
  Derived at read time from the runs and the feedback that moved
  (lib/away.ts); the rules and the lines are pure and tested
  (lib/away-rules.ts, scripts/test/away.ts). GET/POST/DELETE /api/away.

Fewer things thrown together (owner's screenshots, 2026-10-10)
- A feedback row's context is one sentence that wraps like one: the
  project link wrapped onto its own line above "· home · today".
- The pickers under the lens strip are words with a chevron, not a third
  bordered box between the bordered strip and the bordered list.
- "Pointed at “Welcome to Kestrel”" instead of a mono tag beside a quote.
- The thumbs-down form in the chat is part of the thread: no second box
  with its own border and fill, no filled call to action.
- A review files the mobile screenshot it judged with its first finding,
  so the owner reads the finding beside the picture it came from.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_011L2dmcydDLYAiNQwK4XcF4

* chore(demo): classify /api/away for the demo sandbox

Own-tenant data only: two timestamps on the caller's preferences and a
summary derived from their own runs and feedback.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_011L2dmcydDLYAiNQwK4XcF4

---------

Co-authored-by: Claude <noreply@anthropic.com>
2026-10-10 01:52:13 -07:00

6 lines
391 B
SQL
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
-- Migration: "back in 30 minutes" — when the operator said they would be away
-- and when they promised to return, so the next screen they open leads with
-- what happened since. See src/lib/away.ts. Hand-written, like 0073–0085.
ALTER TABLE user_preferences ADD COLUMN IF NOT EXISTS away_since timestamptz;
ALTER TABLE user_preferences ADD COLUMN IF NOT EXISTS away_until timestamptz;