8 Commits
Author SHA1 Message Date
traberphandClaude Opus 5.5 3dc2c28330 Review fixes: forwarded IP, sign-in errors, revoking access
- take the visitor IP from the last X-Forwarded-For entry (the one
  the proxy adds); the first can be set by the client to fake unique
  visitors
- show "Sign-in failed" with a retry link when the identity provider
  rejects the callback instead of a generic 500 page
- report concurrent unique-constraint conflicts (e.g. two requests
  claiming the same shortcode) as 409 instead of 500
- admins can revoke a user's access (end sessions, delete API tokens)
  from Administration; previously a removed user kept working tokens
- README: security notes on the proxy header, offboarding and rate
  limiting

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-14 17:49:30 +02:00
traberphandClaude Opus 5.5 50dfdf53b9 Show which link pages use a short link
Page summaries include `usedOn` (the link pages with a button to the
short link). The short link list shows it as a badge next to the
path: "on /home" for one page, "on 2 pages" for several, with all
paths in the tooltip.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-14 17:26:15 +02:00
traberphandClaude Opus 5.5 ab2150330a Show website logos and the logo.dev credit in the appearance preview
The preview of unsaved changes now draws button icons like the public
page: website logos when logos are enabled, the first letter when
not, plus the "Logos provided by Logo.dev" credit. /me exposes the
publishable logo.dev key for this (it's already part of every public
logo URL).

Also fixes the sticky phone preview on the content and appearance
tabs, which scrolled away because its column was only as tall as the
phone itself.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-14 17:00:28 +02:00
traberphandClaude Opus 5.5 e44e56fd2d Save imported palettes per user and assign single palette colors
- imported coolors.co palettes are stored per user (new palettes
  table, GET/POST/DELETE /palettes, duplicates ignored, max 50) and
  listed under "Your palettes" with a remove button
- clicking a single color of any palette opens a menu to use it as
  background, text, buttons or button text; the name row still
  applies the whole palette
- theme picker moved into its own component

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-14 16:46:36 +02:00
traberphandClaude Opus 5.5 c3640c8966 Create short links directly from the link button dialog
The "Add link button" dialog can now either pick an existing short
link or create a new one (destination + optional shortcode) in the
page's namespace. The block API accepts `newLink` as an alternative
to `targetId`; link and button are created in one transaction, so a
failed request leaves nothing behind. Field errors such as a taken
shortcode are shown inline, and the label is suggested from the
destination's hostname.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-14 16:37:50 +02:00
traberphandClaude Opus 5.5 55d2b9433f Let page owners turn logo.dev logos on and off
Link pages get a "Website logos" switch on the appearance tab
(stored as pages.show_logos, default on). When off, buttons show
the letter placeholder and the logo.dev credit is hidden. The switch
is disabled with a hint when the server has no LOGO_DEV_TOKEN, which
/me now reports as `logoDev`.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-14 16:31:56 +02:00
traberphandClaude Opus 5.5 90cc10de10 Allow renaming shortcodes
Shortcodes can now be changed via PATCH /pages/:id with the same
validation as on create (format, collisions, reserved root codes,
usernames). Stats, link buttons and the homepage pin follow the page.

The settings tab shows a warning while editing and asks for
confirmation, since the old URL stops working immediately.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-14 16:02:52 +02:00
traberphandClaude Opus 5.5 b217214512 v2: rewrite on Hono + SQLite with user namespaces
Replaces the Next.js/Prisma/next-auth app with a single-container
Hono server, SQLite via Drizzle, OIDC login against Authentik and a
React/Vite admin UI that talks to a JSON API.

- users get /<username>/<code>, admins (Authentik group) get root
  codes, pinning and full access
- link pages with link and Markdown text blocks, themes, avatars
- editable 302 redirects, random or custom codes
- personal API tokens, CSRF-protected cookie sessions
- privacy-friendly stats: daily-rotating visitor salt, 90-day click
  retention with daily totals kept
- QR codes as PNG/SVG
- tests for permissions, auth, redirects and stats; CI runs them
  before publishing images

See REQUIREMENTS.md for the full requirement list.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-14 13:57:47 +02:00