Commit Graph
29 Commits
Author SHA1 Message Date
Matthias G 7e2a00842e Turn a channel name into an id before touching a message
conversations.history and chat.delete only take ids, so a stored name like
logbuch answered channel_not_found. The name is resolved through
conversations.list first, and the hint asks for the id.
2026-08-03 13:13:31 +02:00
Matthias G 05e131a0c0 Fit the run history into its space
Two columns showed the same long date, the trigger printed a whole mail
address and the error text pushed the table past its container. Dates are
short now, the trigger reads Verwaltung or Zeitsteuerung with the detail in
the tooltip, and long cells clamp instead of stretching.
2026-08-03 13:07:29 +02:00
Matthias G bb5028ee55 Report what Slack actually answers
The lookup swallowed Slack's error and the interface guessed at a cause.
It now shows the raw reason, widens the search window to six hours and
falls back to matching the message prefix.
2026-08-03 13:03:32 +02:00
Matthias G 7a10754e70 Refuse a bot token without a channel
Saving a token and leaving the channel empty produced a state that could
neither send nor delete, and only said so at the next attempt.
2026-08-03 12:59:34 +02:00
Matthias G 768bbca59c Delete webhook messages too by looking up their id
A message sent through the webhook has no stored id, but it belongs to the
same Slack app, so the bot token may remove it. The delete button now looks
the message up in the channel by its text and time before deleting.
2026-08-03 12:53:13 +02:00
Matthias G 81d0489c78 Send through a bot token so messages can be deleted again
Incoming webhooks return no message id, so nothing can be removed later.
Settings now take a bot token plus channel, chat.postMessage records channel
and timestamp on the run, and the history carries a delete button per
message. The webhook stays as a fallback and is marked as not deletable.
2026-08-03 12:45:04 +02:00
Matthias G 6c78acdd6d Make the digest read like a newsletter
Each project leads with up to three cards: title, teaser and the cover
image as a thumbnail, the rest follows as a compact list. Entries sort by
number inside a project instead of jumping, and the project name links to
its archive.
2026-08-03 12:23:13 +02:00
Matthias G 0fd6da62d1 Manage the Slack digest in the admin
New settings area: the webhook lives in the database and is only shown
shortened afterwards, the environment variable stays as a fallback. A switch
decides whether internal entries travel, a button sends the digest right
away, and every run is recorded with period, count, projects, result and
who triggered it.
2026-08-03 12:13:57 +02:00
Matthias G 65346d0c09 Send a weekly digest to Slack
POST /api/v1/weekly-report collects everything published in the last seven
days, groups it by project and posts one message. dry=1 returns the message
instead of sending it, no publications means no message, a missing webhook
answers 501 instead of failing quietly. scripts/cron.mjs runs the due
publishing first, then the digest.
2026-08-03 11:39:54 +02:00
Matthias G c425102d87 Use the width on the API page
Prose ran at reading width while the tables next to it spanned the window.
The text blocks widen, the addresses now use the full row, and the hint
counts three files instead of two.
2026-08-03 10:52:17 +02:00
Matthias G 5072ff7249 Ship a Logbuch skill and record token use
- docs/skill.md teaches a Claude what Logbuch is for, how an entry sounds
  and in which order the calls go, served at GET /api/v1/skill and as a
  download next to the spec and the guide
- a test keeps the skill from drifting: frontmatter, only endpoints that
  exist, house rules
- resolveClient stamps last_used_at, the access list said never used even
  after eleven entries
2026-08-03 10:40:48 +02:00
Matthias G 06d0184965 Stack the mark and the type in a row
The plate and the type sat next to each other and ate the width the title
needed. Now they sit under one another, and the plate itself lost the wide
gap between code and number.
2026-08-01 18:41:21 +02:00
Matthias G ea16d7a8ba Align the archive rows on one grid
Each row carried its own grid, so max-content measured per row and the
columns drifted apart. Fixed widths line them up.
2026-08-01 18:37:39 +02:00
Matthias G 03d514b3c4 Close the last gaps in the API documentation
The image endpoint, the spec itself and the scheduled publishing run were
missing from the spec and the admin page.
2026-08-01 18:27:04 +02:00
Matthias G 997f94912e Document what the API can do
The markdown had no writing section at all, so posts, blocks, drafts and
deletes were only visible in the admin. Adds them with every field, plus
date and number rules and the media delete in both places.
2026-08-01 18:20:53 +02:00
Matthias G ed5be8dd93 Work on many entries at once
Rows carry a checkbox, the bar above publishes, withdraws, resets to draft,
sets the audience or deletes drafts for the whole selection and reports
what went through.
2026-08-01 18:16:05 +02:00
Matthias G cd3bf3f2b4 Manage entries at scale
- the admin uses the full window width, table cells stop wrapping
- columns sort by number, title, project, status, date and author
- filters sit in one row with search first and a page size next to them
- entries carry a real date: publish_at on create and change, publishing
  keeps that date, a date in the past publishes backdated
2026-08-01 15:43:05 +02:00
Matthias G f8bc2d6108 Choose any allowed status in the table, set the cover on create
- the status cell offers every transition the entry allows, scheduling
  asks for the date right there
- POST /api/v1/posts takes cover_media_id, no second call needed
- the row grid follows its content so long type names stop overlapping
2026-08-01 15:34:13 +02:00
Matthias G 35a572c037 Switch an entry status straight from the table
The list showed the status but only the editor could change it. Each row
now carries the next sensible step and names the blockers when publishing
is not possible. Also real umlauts in the API texts.
2026-08-01 13:49:34 +02:00
Matthias G c95db3a044 Give the archive its signature back
- the plate carries project colour on the lead image, in the cards and in
  every row, not only when an entry lacks an image
- entries no longer fade in one after another, the page is readable at once
- detail pages lead on: previous, next and more from the project
- the month band shows from the first month, the nav item hides without one
- side cards and row teasers get room instead of ellipsis
- admin opens on drafts, scheduled and published plus what was edited last,
  and its tables use the full width
2026-08-01 13:04:08 +02:00
Matthias G a123e0bca2 Write text blocks with formatting
Tiptap replaces the plain textarea: bold, italic, subheading, lists and
links. Stored as Markdown so API clients keep reading and writing the
same field, rendered with react-markdown.
2026-08-01 12:46:34 +02:00
Matthias G 9e9703994b Keep the build output out of the test run 2026-08-01 12:30:22 +02:00
Matthias G 4dc6534dc5 Carry the cover id through the archive queries 2026-08-01 12:29:36 +02:00
Matthias G 2fd71fd406 Number entries on publish, delete media, read the cover
- drafts stay unnumbered, the number is handed out when an entry goes live
- DELETE /api/v1/media/:id and a delete control in the media library
- cover_media_id in the draft read, coverMediaId and coverUrl in the archive read
2026-08-01 12:25:01 +02:00
Matthias G afaa323848 Delete drafts from the admin editor
The editor could publish, archive and resume, but never remove. A draft
whose id was lost was unreachable from the interface.
2026-08-01 12:03:53 +02:00
Matthias G 7a594eeacf Fix container build for sharp, slug lookup and select fields
- build the runtime image so libvips lands next to the sharp binary
- GET /api/v1/posts/:slug finds drafts by slug for write clients
- media upload documented with project slug instead of a project id
- own select control instead of the browser default
- quieter sidebar footer, project name leads to its entries
2026-08-01 11:48:48 +02:00
Matthias G 58c4cb12a8 Fix sharp in container, add admin downloads and anchor mark
- ship libvips with the runtime image so POST /api/v1/media stops failing
- admin downloads openapi.json and the style guide via session, no token
- copy rows for both API addresses
- anchor mark in the wordmark and a favicon
2026-08-01 11:31:45 +02:00
Matthias Giesselmann 7582c64709 Add container build for deployment
Standalone Next output, migration script run on start, storage volume
at /app/storage, port 4700. Database connection is created lazily so
the image builds without a database.
2026-07-31 21:52:38 +02:00
Matthias Giesselmann b90ff252d1 Add Logbuch: project update blog with admin, media and API
Public archive with sidebar navigation, project pages, month archive,
search and entry pages with image blocks. Admin area for brands,
projects, post types, users, api clients, media and the entry editor
with drag and drop images, preview per audience, scheduling and
publish checks. Read and write API with bearer tokens, audience
scoping, idempotent creation, OpenAPI document and editorial guide.
Magic link login with configurable allowed domains, whole app behind
the session gate. 456 tests including design rule checks.
2026-07-31 21:33:42 +02:00