Commit Graph
22 Commits
Author SHA1 Message Date
traberphandClaude Opus 5.5 5f30a6d448 Remove the built-in "Colourful" palettes
Users import their own palettes from coolors.co, so the four built-in
ones aren't needed. The usage hint moved to "Your palettes"; the
palette mapping tests keep the four palettes as sample data.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-14 17:33:13 +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 6d427db2c4 Choose a palette's dark or light version from a dropdown
The two thumbnail buttons on each palette card are replaced by a menu
on the card's name row, like the one for single colors: "Dark
background" and "Light background", each with a small preview. The
active version is shown next to the name. Both menus now share one
popover component.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-14 17:22:09 +02:00
traberphandClaude Opus 5.5 03fb4dcf0c List short links before link pages, matching the sidebar
On the admin user screen the sections were reversed, and the create
buttons on that screen and the overview put link pages first.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-14 17:16:50 +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 3eea5c23ef Rename the trending palettes section to "Colourful"
The palettes are a snapshot and don't follow coolors.co's trending
list, so the heading no longer claims they do.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-14 16:58:38 +02:00
traberphandClaude Opus 5.5 26d2883935 Link to the coolors.co palette explorer instead of the generator
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-14 16:56:33 +02:00
traberphandClaude Opus 5.5 767290e1b5 Replace the palette dark/light toggle with per-palette thumbnails
The global "Dark background / Light background" switch sat in the
trending header but also affected saved palettes and meant nothing
for single colors. Each palette now shows two small page thumbnails
(dark and light version) that apply exactly what they show; the
selected one is highlighted, and editing a single color deselects it.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-14 16:56:27 +02:00
traberphandClaude Opus 5.5 35cb7da929 Separate admins' own content from managing other users
- Short links, Link pages and Overview now show only the admin's own
  namespace and root; other users' content moved to Administration
- Administration lists users with their link/page/click counts; each
  opens /~/admin/users/<name> with that user's pages and links and
  lets admins create content in their namespace
- other users' pages open under /~/admin/users/<name>/…, keep the
  Administration section active and link back to the user
- one PageTable component for all lists, so search and the namespace
  filter (All / mine / Root, admins only) behave the same everywhere
- the create dialog offers admins only their own namespace and root;
  the existing-link picker groups links by namespace

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-14 16:52:22 +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 624517e010 Add dark/light mode toggle and coolors.co palettes
Admin UI:
- system / light / dark switch in the sidebar (cycle button on
  mobile), stored in localStorage and applied before first paint
- dark mode now driven by data-theme instead of only the media query

Link page themes:
- keep the Midnight and Paper presets, replace the others with the
  4 trending palettes from coolors.co
- paste a coolors.co link (or a bare hex list) to use any palette;
  the colors are read from the URL, nothing is fetched
- palettes are mapped to background, text and button colors by
  contrast, with a dark/light background choice

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-14 16:27:21 +02:00
traberphandClaude Opus 5.5 74ce76ab8b Keep link page footer at the bottom of the screen
On pages with little content the "powered by" footer floated in the
middle of the screen. The page column now fills the viewport and the
footer is pushed to the bottom.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-14 16:09:57 +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 3929ed7663 Redesign the admin UI
Replaces the single-page dashboard with a structured app shell:
sidebar on desktop, bottom tab bar on mobile (PWA), and separate
screens for overview, short links, link pages, API tokens and
administration.

- detail view with tabs: content, appearance, analytics, QR code,
  settings
- small component kit (buttons, form controls, cards, dialogs,
  toasts, tabs) built on semantic color tokens with light and dark
  mode following the system
- native <dialog> modals for creating pages, editing blocks and
  confirmations instead of window.confirm
- theme presets and a live preview of unsaved appearance changes
- removed the v1 screenshots for now

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-14 14:21:07 +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
traberph 9758f4bf45 switch from logo.clearbit.com to logo.dev 2025-04-02 22:40:46 +02:00
traberph 96a3497aea add charts and reset stats function 2025-04-01 14:30:40 +02:00
traberph 46d10d6ef4 drag and drop for custom page links 2025-04-01 13:43:32 +02:00
traberph 01975c900e upgrade dependencies 2025-04-01 13:41:02 +02:00
traberph 527b04a17f add github action 2025-04-01 10:51:09 +02:00