Skip to content

feat: page covers - #2660

Merged
Philipinho merged 30 commits into
mainfrom
feat/page-covers
Nov 9, 2026
Merged

Philipinho merged 30 commits into
mainfrom
feat/page-covers

Conversation

@Philipinho

Copy link
Copy Markdown
Member
image

Closes #853, #41.

- cover_position column for the cover's vertical position
- pages/update validates coverPhoto (preset key or an image of the same page) and coverPosition
- public shares and public spaces serve uploaded covers through tokenized links
- duplicating a page copies its cover and the cover attachment
- Add cover above the title applies a random gradient
- picker with colors, gradients, textures and image upload
- reposition by drag or arrow keys
- large uploads are resized and compressed in the browser
- covers show on public shares and public spaces
- cover changes sync to other open tabs
- cover sits below the fixed editor toolbar and the toolbar spacer is skipped
- cover owns its gap to the title, so a cover that fails to load leaves the default spacing
- original upload and reposition copy
- replace the paper, marbled and concrete textures with sand, kraft and graph paper
- keep an uploaded cover one click away while trying presets
- reposition only uploaded images; Add cover picks from calm gradients
- pill aligned with the text column, soft shadow, tap to reveal on touch screens
- check badge on the selected tile, lighter graphite, stronger dark tile edge
- picker opens below the cover; public cover fits phones; Copy page aligned with the content
- pages that show the same file share one copy instead of losing it
- the cover's own page owns the copied cover file
- focus moves to Change cover after Add cover and back to Add cover after Remove
- move up and move down buttons and Home, End, Page keys for repositioning
- picker is a labelled dialog that opens on the current cover
- upload keeps focus and announces progress
- focus rings readable on any cover, selection visible in forced colors
- only the newest preset pick updates the cover and other tabs
- ignore malformed cover values from other clients
- compression moved out of public pages; .jfif and extensionless uploads work
- smaller cover band: 120-150px on phones, up to 240px on larger screens
- Unsplash tab in the cover picker when UNSPLASH_ACCESS_KEY is set; the server searches Unsplash and resolves the chosen photo
- photo credit on the cover, shared pages and public spaces
- Reposition for every image cover and a remove button next to Change cover
- replaced or removed cover uploads are deleted an hour later unless the page still uses them
- cover_attribution column in the page covers migration
- cover uploads are stored as page-cover attachments, and only those can be covers or be cleaned up
- unused cover uploads are deleted as well, with one cleanup job per file
- the photo credit renders the photographer's name as plain text
- Unsplash requests honor the proxy settings, reject malformed answers and stop at page 50
- per-user limit on picking Unsplash photos
- picker drops its Remove button, keeps the Unsplash footer in view and announces empty results
- darker credit chips, and on phones the controls sit above the credit
- the migration keeps its original name
- the cover no longer shares its key with the editor, so the previous page's cover unmounts
- a photo repeated on a later page is dropped, so Load more can't add a duplicate tile
- clouds and northern lights take their place, rendered at 3000x1000 so they stay sharp on wide screens
- UNSPLASH_ACCESS_KEY is no longer listed in .env.example
- comments that only repeat the code next to them are removed
- the restore row is titled Unsplash; the cover and the Unsplash tab still credit the photographer
- the footer reads "Photos from Unsplash · License", both linked
- the cover and public pages no longer show it; the picker still credits each photo
- each file is copied once, to the copy of the page that owns it, whichever page shows it first
- a cover whose file name has a percent sign now loads
- a photo picked from search results is looked up again, since listed addresses carry the search term
- it used to record an edit and add the user as a contributor without changing anything
- updates ee to the commit that limits attachment search to page files
- Duplicate in the sidebar now takes you to the new copy, like Copy to space already does
- it no longer depends on the title keeping focus, which iOS drops when a button is tapped
- the delete button sits on its own, a few pixels from Change cover and Reposition
- GIF covers are refused, covers are JPG, PNG or WebP only
- cover uploads are capped at 5 MB and stop streaming past it
- uploads that send type=file are accepted again
- a refused cover keeps its own message instead of the generic upload error
- GIFs are refused, and images are compressed in the browser until they fit 5 MB
- the same file can be picked again after a failed upload
- the restored Unsplash photo shows as selected, matched by photo id
- picker thumbnails load as files instead of being inlined into every page view
- a save that returns the same photo under a new address keeps the image already on screen
- the photo list takes a page id and checks edit access on it
- photo lists stay cached for 30 minutes
@Philipinho
Philipinho merged commit 69eaba1 into main Nov 9, 2026
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add Cover Photo to Page Header

1 participant