Skip to content

rewrite: migrate to astro + workers w/ photos-api integration#112

Merged
kale-stew merged 8 commits into
mainfrom
rewrite/workers
May 26, 2026
Merged

rewrite: migrate to astro + workers w/ photos-api integration#112
kale-stew merged 8 commits into
mainfrom
rewrite/workers

Conversation

@kale-stew

@kale-stew kale-stew commented May 25, 2026

Copy link
Copy Markdown
Owner

rewrites to astro, workers + photos-api integration

changes include:

  • framework migration from next.js → astro
  • absorb photos-api schema and tooling
  • incorporate images across ux
  • fix cron sync and cleanup metadata

@kale-stew kale-stew changed the title rewrite: migrate to astro with photos-api integration rewrite: migrate to astro + workers w/ photos-api integration May 25, 2026
@github-actions
github-actions Bot temporarily deployed to preview May 25, 2026 22:43 Inactive
@github-actions

github-actions Bot commented May 25, 2026

Copy link
Copy Markdown

🧹 Preview cleaned up — PR merged!

The preview worker has been deleted.

@github-actions
github-actions Bot temporarily deployed to preview May 25, 2026 22:46 Inactive
@github-actions
github-actions Bot temporarily deployed to preview May 25, 2026 22:50 Inactive
@github-actions
github-actions Bot temporarily deployed to preview May 25, 2026 22:53 Inactive
@github-actions
github-actions Bot temporarily deployed to preview May 25, 2026 23:01 Inactive
@github-actions
github-actions Bot temporarily deployed to preview May 25, 2026 23:04 Inactive
@github-actions
github-actions Bot temporarily deployed to preview May 25, 2026 23:06 Inactive
@github-actions
github-actions Bot temporarily deployed to preview May 25, 2026 23:08 Inactive
@github-actions
github-actions Bot temporarily deployed to preview May 25, 2026 23:11 Inactive
@github-actions
github-actions Bot temporarily deployed to preview May 25, 2026 23:17 Inactive
@github-actions
github-actions Bot temporarily deployed to preview May 25, 2026 23:21 Inactive
@github-actions
github-actions Bot temporarily deployed to preview May 25, 2026 23:26 Inactive
@github-actions
github-actions Bot temporarily deployed to preview May 25, 2026 23:29 Inactive
@github-actions
github-actions Bot temporarily deployed to preview May 25, 2026 23:52 Inactive
@github-actions
github-actions Bot temporarily deployed to preview May 25, 2026 23:54 Inactive
@github-actions
github-actions Bot temporarily deployed to preview May 25, 2026 23:57 Inactive
@github-actions
github-actions Bot temporarily deployed to preview May 25, 2026 23:58 Inactive
@github-actions
github-actions Bot temporarily deployed to preview May 26, 2026 00:03 Inactive
Critical fixes:
- Fix SQL injection in photos-api PATCH/upload (use parameterized queries)
- Add auth middleware for /admin/* routes (Cf-Access-JWT or Bearer token)
- Move NOTION_TOKEN and CRON_SECRET from vars to wrangler secrets
- Fix sync_log INSERT to match schema (sync_type, completed_at)

Type safety:
- Add missing 'src' property to Photo interface
- Add input validation to admin API endpoints
- Add CloudflareEnv type augmentation for env bindings

Performance & UX:
- Add Cache-Control headers to OG image endpoint
- Add LIMIT 500 to photos and fallback queries
- Extract shared photo fallback logic to src/lib/photo-fallbacks.ts
- Fix deterministic short_id generation (SHA-256 vs random)

Accessibility:
- Add prefers-reduced-motion guard on scroll-behavior
- Fix mobile nav to close on link click and outside click

CSS:
- Add missing tokens: --font-size-xs, --border-radius-sm, --color-accent-hover
- Add semantic aliases: --color-bg, --color-text
@github-actions
github-actions Bot temporarily deployed to preview May 26, 2026 00:42 Inactive
@kale-stew
kale-stew merged commit c6e5e88 into main May 26, 2026
1 check passed
@kale-stew
kale-stew deleted the rewrite/workers branch May 26, 2026 00:44
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.

1 participant