Skip to content

refactor: from astro to vite+preact & radically simple#877

Merged
gildesmarais merged 25 commits intofeat/revamp-frontendfrom
fix/frontend-simpliyfiy
Mar 14, 2026
Merged

refactor: from astro to vite+preact & radically simple#877
gildesmarais merged 25 commits intofeat/revamp-frontendfrom
fix/frontend-simpliyfiy

Conversation

@gildesmarais
Copy link
Copy Markdown
Member

@gildesmarais gildesmarais commented Mar 14, 2026

This pull request updates project documentation and developer tooling to reflect the migration of the frontend from Astro to Preact (built with Vite), and introduces improvements to the API feed creation boundary and CI workflow. The changes modernize the stack, clarify documentation, and strengthen type safety and API contract boundaries.

Frontend migration and documentation updates:

  • Updated all references in .github/copilot-instructions.md and README.md from Astro to Preact and Vite, including architecture descriptions, dev server instructions, and documentation links. [1] [2] [3] [4] [5] [6] [7]
  • Updated Makefile targets and descriptions to refer to the Preact frontend, replacing Astro terminology. [1] [2] [3]
  • Updated Dockerfile to copy the new frontend build output location.

Continuous Integration and developer tooling:

  • Added a frontend typecheck step (npm run typecheck) to the CI workflow and Makefile, ensuring type safety for the Preact frontend. [1] [2]
  • Added check-frontend and quick-check Makefile targets for streamlined local and CI checks, and improved the ready target to include these checks. [1] [2]
  • Renamed CI and Makefile build steps for clarity (e.g., "Build frontend static assets"). [1] [2]

API feed creation boundary improvements:

  • Refactored app/api/v1/feeds/create_feed.rb to clarify and simplify the API boundary: removed redundant comments, introduced FEED_ATTRIBUTE_KEYS for explicit response shaping, and factored out feed metadata normalization into dedicated private methods. [1] [2] [3] [4] [5] [6] [7] [8]
  • Moved the extract_site_title logic to the API edge (feeds.rb) and updated it to use Html2rss::Url directly for improved encapsulation. [1] [2] [3]

Other improvements:

  • Cleaned up Makefile and Dockerfile to remove obsolete Astro-specific artifacts and references. [1] [2]

These changes collectively modernize the stack, improve developer experience, and clarify the API and documentation.

@gildesmarais gildesmarais changed the title Fix/frontend simpliyfiy refactor: from astro to vite+preact Mar 14, 2026
@gildesmarais gildesmarais changed the title refactor: from astro to vite+preact refactor: from astro to vite+preact & radically simple Mar 14, 2026
@gildesmarais gildesmarais marked this pull request as ready for review March 14, 2026 23:33
@gildesmarais gildesmarais merged commit da8025c into feat/revamp-frontend Mar 14, 2026
5 of 8 checks passed
@gildesmarais gildesmarais deleted the fix/frontend-simpliyfiy branch March 14, 2026 23:33
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