feat: reuse verified same-site banners in article imports #282
No reviewers
Labels
No labels
activitypub
admin
api
architecture
articles
auth
bug
cleanup
cli
comments
compatibility
config
contacts
content
database
deployment
design
dev-env
diagnostics
docs
documentation
email
enhancement
feature
federation
feed
health
homepage
implementation
integration
logging
mastodon
media
navigation
npm-packages
openapi
opengraph
packages
passkeys
preview
priority:high
priority:low
priority:medium
production
proof
proxy
public-routes
public-ui
release
safety
slug-api
slug-auth
slug-core
slug-federation
slug-media
slug-template
social
sources
status:active
status:canceled
status:done
status:inprogress
status:waiting
syndication
tailwind
template
test
web
webauthn
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
erik/slugkit!282
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "feat/task-79102318-reusable-banner-keys"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
Task: task-79102318 — Support reusable media keys in article imports
banner: banners/technology.pngas a same-site/media/<key>reference andbanner: ./banner.pngas a post-specific local upload../migration for existing local references, and shared-image replacement/deletion behavior.Verification
./scripts/pre-pr.sh— passed (generated CSS, formatting, lint, all workspace typechecks and tests, including integration tests).npm run build— passed.npm run test:visual— 29 passed, including absent/deleted banner behavior.Compatibility and limitations
banner: images/hero.pngmust becomebanner: ./images/hero.png./media/route; arbitrary external URLs are not supported by article import.Review update
3b6f1913058493810581ac2f6c225d6cb32e8a89Acceptance criteria
/media/banners/technology.pngURL, issue HEAD requests without downloading image bodies to the CLI, and perform no uploads (cli/src/__tests__/commands.test.ts).cli/src/banner-import.ts; API regression verifies reuse without media records)../paths resolve relative to the Markdown file and upload underposts/<slug>/banner.<extension>; the existing create/update upload test exercises this behavior.cli/README.mdincludes upload-once reuse, both frontmatter forms, API-origin derivation,./migration, replacement/deletion effects, and import-time versus view-time behavior.Verification and pipeline
3b6f191305, jobbuild-lint-test: success. Used this known result rather than the brokenfj pr statusrelative-URL parser./tmp/slug-banner-pre-pr.logreports all checks passed;/tmp/slug-banner-build.logrecords successful workspace builds;/tmp/slug-banner-visual.logreports 29 passed.Findings and verdict