- Replace the gear/username button with a round initials avatar (per-user deterministic color via a new daybook_extras template filter); dropdown now shows the username and keeps Settings/About/theme/logout. Sets up an optional profile photo later. - Regroup the settings nav into "You" (Account, API Keys, Storage, Demo Data) and a superuser-only "Admin" (Users), About separate — the split now reflects who each setting affects, not a flat list. - Register ApiKey (key read-only) and TagColor in Django admin so /admin/ is complete as the operator break-glass tool, distinct from the themed Settings product surface. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
105 lines
4.7 KiB
Markdown
105 lines
4.7 KiB
Markdown
# Changelog
|
|
|
|
All notable changes to Daybook are recorded here. Format loosely follows
|
|
[Keep a Changelog](https://keepachangelog.com/); versions are SemVer and match
|
|
the git tags (`vX.Y.Z`) and `daybook_project.__version__`.
|
|
|
|
## [Unreleased]
|
|
|
|
_Nothing yet._
|
|
|
|
## [0.2.1] — 2026-09-04
|
|
|
|
### Added
|
|
- Top-bar **avatar**: a round initials badge (deterministic per-user color)
|
|
replaces the gear/username button; lays the groundwork for profile photos.
|
|
- Django admin now registers `ApiKey` and `TagColor`, so `/admin/` is complete
|
|
as an operator break-glass tool (key value shown read-only).
|
|
|
|
### Changed
|
|
- Settings nav regrouped into **You** (Account, API Keys, Storage, Demo Data)
|
|
and a superuser-only **Admin** (Users) section, with About on its own — the
|
|
personal/admin split now mirrors who each setting affects.
|
|
|
|
## [0.2.0] — 2026-09-04
|
|
|
|
### Added
|
|
- **Multiple named API keys per user.** Each user can now hold several keys —
|
|
one per agent or script — named and revocable individually, managed from a
|
|
new **Settings → API Keys** page (a table with name, key, created, last-used,
|
|
and per-row revoke). Keys are viewable on demand (`dbk_`-prefixed).
|
|
- **Gated key-provisioning API** for automated test installations:
|
|
`GET/POST /api/keys` and `DELETE /api/keys/{id}`, controlled by
|
|
`DAYBOOK_KEY_PROVISIONING_API` (unset → follows `DJANGO_DEBUG`, so **off in
|
|
deployment**). Advertised as `key_provisioning_api` in `/api/capabilities`;
|
|
returns 403 when disabled.
|
|
- API keys track `last_used_at` (throttled to one write/minute) so stale keys
|
|
are visible before you revoke them.
|
|
|
|
### Changed
|
|
- Auth now resolves bearer tokens against the new `ApiKey` model instead of the
|
|
single DRF `authtoken.Token`. Existing tokens are migrated 1:1 into named
|
|
("default") keys with the same value — no client reconfiguration needed.
|
|
- Settings → Account no longer manages a single token; it links to API Keys.
|
|
Creating a user (Settings → Users) issues an initial named key.
|
|
|
|
## [0.1.1] — 2026-09-03
|
|
|
|
### Fixed
|
|
- Deployment crash-loop: the vendored `gridjs.umd.js` referenced a
|
|
`gridjs.umd.js.map` sourcemap that isn't in the repo, so `collectstatic`
|
|
(strict manifest storage) failed on container start and v0.1.0 never came
|
|
up. Removed the dangling sourcemap trailer (debug-only, no runtime effect).
|
|
|
|
### Added
|
|
- `GET /api/skill` serves the bundled agent-posting skill as Markdown (or
|
|
`?format=json`), with `DAYBOOK_URL` pre-filled to the instance's own
|
|
origin so the instructions are ready to hand to an AI. Advertised as
|
|
`skill_url` in `/api/capabilities`.
|
|
|
|
### Changed
|
|
- Rewrote the posting skill (`skills/daybook-posting/SKILL.md`) to be
|
|
location-agnostic: no longer assumes a local source checkout, reframes
|
|
`DAYBOOK_URL` as set-your-instance, and adds a raw `curl` fallback.
|
|
|
|
## [0.1.0] — 2026-09-03
|
|
|
|
First tagged release.
|
|
|
|
### Artifacts & rendering
|
|
- Artifact kinds: `markdown`, `html_fragment`, `html_full`, `deck`, `json`,
|
|
`csv`, `image`, `pdf`, `binary`.
|
|
- `.xlsx` uploads convert server-side to a `csv` artifact (active sheet,
|
|
saved formula results).
|
|
- Markdown code blocks get syntax highlighting; tables (markdown &
|
|
html_fragment) render styled — monospace cells, sans-serif headers.
|
|
- `json`/`csv` render as an interactive collapsible tree / sortable table
|
|
(Grid.js + renderjson, vendored locally).
|
|
- Unified off-white document background; system sans-serif body text.
|
|
|
|
### API
|
|
- `POST/GET/PATCH/DELETE /api/artifacts`, list filters (source/label/day/
|
|
kind/q), `/api/assets` image upload, `/api/capabilities` (reports
|
|
`version`). Per-user bearer-token ingest; session-authed reads.
|
|
- Server-side validation: per-kind content shape, field length limits,
|
|
string-typed source fields, valid-JSON for `json`.
|
|
|
|
### Sharing, quotas, security
|
|
- Per-artifact public share links (`/s/{token}`), owner-toggled, revocable.
|
|
- Per-user disk quotas with oldest-unkept auto-eviction and a Keep flag.
|
|
- Allowlist HTML sanitization (nh3) + `script-src 'none'` CSP for the themed
|
|
kinds; deep-JSON parse errors return 400 (not 500).
|
|
|
|
### UI
|
|
- Multi-user auth; feed with source sidebar + label filtering; settings area
|
|
(Account, Storage, Demo Data, Users, About); light/dark toggle; app icon.
|
|
|
|
### Deployment
|
|
- Dockerised (Gunicorn + whitenoise), SQLite, `git`-based deploy with a
|
|
runbook (`deploy/cloud_agent_deploy.md`) and health check.
|
|
|
|
[Unreleased]: https://git.cygnus.systems/peter/daybook/compare/v0.2.1...HEAD
|
|
[0.2.1]: https://git.cygnus.systems/peter/daybook/compare/v0.2.0...v0.2.1
|
|
[0.2.0]: https://git.cygnus.systems/peter/daybook/compare/v0.1.1...v0.2.0
|
|
[0.1.1]: https://git.cygnus.systems/peter/daybook/compare/v0.1.0...v0.1.1
|
|
[0.1.0]: https://git.cygnus.systems/peter/daybook/releases/tag/v0.1.0
|