Phase 2: command screens

- /help: a short introduction with the user's default format, how to be
  asked every time and the limits on one line, plus buttons Commands,
  Account, Groups, Open app and Upgrade that switch the same message to
  a section. Group commands are hidden in private chats; "Add me to a
  group" takes their place.
- /quality: Ask every time, Best that fits my limit, Best, 1080p, 720p,
  480p and Audio only, with the active one checked. Free users see which
  qualities may go over their limit.
- /history: pages of five compact buttons (site, title, format, when),
  a view per download with Send again, Thumbnail, Remove from history,
  and Clear history with a confirmation. Thumbnails are grouped under
  their video. Migration 00007 stores extractor, title, uploader and
  profile on deliveries and adds a hidden flag.
- docs/SCREENS.md shows every screen in en, es and nl, generated by the
  language test.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Michilis
2026-11-18 20:46:13 +00:00
co-authored by Claude Opus 5.5
parent 6843053582
commit 123cede7f3
21 changed files with 3758 additions and 183 deletions
+27
View File
@@ -0,0 +1,27 @@
-- +goose Up
-- What /history shows, kept on the delivery itself so the list needs no
-- join and survives the job being cleaned up. Filled when a delivery is
-- sent. hidden is set by "delete from history"; the row stays, because
-- deliveries also carry usage and billing.
ALTER TABLE deliveries ADD COLUMN extractor TEXT NOT NULL DEFAULT '';
ALTER TABLE deliveries ADD COLUMN title TEXT NOT NULL DEFAULT '';
ALTER TABLE deliveries ADD COLUMN uploader TEXT NOT NULL DEFAULT '';
ALTER TABLE deliveries ADD COLUMN profile TEXT NOT NULL DEFAULT '';
ALTER TABLE deliveries ADD COLUMN hidden BOOLEAN NOT NULL DEFAULT FALSE;
UPDATE deliveries SET
extractor = COALESCE((SELECT j.extractor FROM jobs j WHERE j.id = deliveries.job_id), ''),
title = COALESCE((SELECT j.title FROM jobs j WHERE j.id = deliveries.job_id), ''),
uploader = COALESCE((SELECT j.uploader FROM jobs j WHERE j.id = deliveries.job_id), ''),
profile = COALESCE((SELECT j.profile FROM jobs j WHERE j.id = deliveries.job_id), '')
WHERE status = 'sent';
CREATE INDEX deliveries_history_idx ON deliveries (user_id, status, hidden, created_at);
-- +goose Down
DROP INDEX deliveries_history_idx;
ALTER TABLE deliveries DROP COLUMN hidden;
ALTER TABLE deliveries DROP COLUMN profile;
ALTER TABLE deliveries DROP COLUMN uploader;
ALTER TABLE deliveries DROP COLUMN title;
ALTER TABLE deliveries DROP COLUMN extractor;