Remove Jinja2 frontend (dead code after SvelteKit migration) #150
Labels
No labels
domain:backend
domain:devops
domain:frontend
status:approved
status:in-progress
status:needs-fix
status:qa
type:bug
type:devops
type:feature
No milestone
No project
No assignees
1 participant
Due date
No due date set.
Dependencies
No dependencies set.
Reference
ldraney/pal-e-api#150
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
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?
Lineage
plan-pal-e-docs→ Phase 4 → Phase 4b (Jinja2 removal)Repo
forgejo_admin/pal-e-docsUser Story
As a platform maintainer
I want the dead Jinja2 frontend removed from the backend
So that the codebase is clean and there's no confusion about which frontend serves notes
Context
SvelteKit (pal-e-app) now renders all note types from the blocks API (PR #9 on pal-e-app, merged). The Jinja2 frontend at
/browse/*is dead code — ~320 lines of Python routing + ~460 lines of HTML/CSS templates + dependencies.File Targets
Files to delete:
src/pal_e_docs/routes/frontend.py— all/browse/*routessrc/pal_e_docs/templates/— entire directory (base.html, note.html, landing.html, projects.html, project_notes.html, tags.html, tag_notes.html, repos.html, login.html)Files to modify:
src/pal_e_docs/app.py(or wherever routers are included) — removefrontend.routerincludepyproject.tomlorrequirements.txt— removeJinja2,itsdangerousif no longer neededFiles to investigate before removing:
src/pal_e_docs/autolink.py— check if used by anything besides frontend.pysrc/pal_e_docs/sanitize.py— check if used by anything besides frontend.pysrc/pal_e_docs/wrap_tables.py— check if used by anything besides frontend.pyFiles NOT to touch:
src/pal_e_docs/routes/notes.py— API routes, still neededsrc/pal_e_docs/routes/blocks.py— block API, still neededsrc/pal_e_docs/blocks/— parser, compiler, sync — still neededsrc/pal_e_docs/models.py— no changesAcceptance Criteria
/browse/*routes no longer existtemplates/directory deleted/notes/*,/blocks/*,/boards/*, etc.) unaffectedTest Expectations
pytest tests/ -vpytest tests/ -vConstraints
autolink.py,sanitize.py,wrap_tables.pyif they are used by non-frontend code (e.g.from_templateendpoint uses sanitize). Check imports first.html_contentcolumn — it's still used for search and revisionsChecklist
Related
pal-e-docs— project