chore: delete examples/patterns (folded into docs/recipes/patterns)#99
Conversation
The patterns app moved to livetemplate/docs at content/recipes/patterns/_app/ in livetemplate/docs#10 (B1, May 9). The B2 routing flip (livetemplate/docs#11) repointed the public catalog at /patterns/* to serve from the docs binary's in-process recipes server, and the e2e suite was relocated to docs/e2e/patterns/. After livetemplate/livetemplate#400 (just merged) added the test-docs cross-repo job that runs the relocated patterns suite against core livetemplate changes, the patterns app's "runs against core changes" coverage is preserved with no gap. This PR completes the migration: - Delete examples/patterns/ entirely (62 files, ~8.5k lines: 22 .go source files, 30 templates, Dockerfile, fly.toml, .dockerignore, README, plus the patterns/ subtree). - Remove "patterns" from test-all.sh's WORKING_EXAMPLES so the test-examples cross-repo job (in livetemplate/livetemplate) auto- skips it without erroring. - Update README.md to reflect that the /patterns docs catalog is now served from livetemplate/docs's recipes/patterns/_app/ package (not from this repo). Manual ops (not in this PR): - Decommission the lt-patterns.fly.dev Fly app — has been receiving zero production traffic since livetemplate/docs#11 deployed (May 10 ~04:30 UTC). Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Code Review — PR #99: Delete
|
Per Claude review on #99 — the README sentence pointing to the docs catalog source named the path but didn't link it. Direct URL keeps the trail navigable for contributors arriving here post-deletion. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
|
On the two non-code review notes: Confirming #400 is merged. livetemplate/livetemplate#400 merged at Fly decommission tracking. Not opening a separate issue — it's a single one-shot manual op ( |
There was a problem hiding this comment.
Pull request overview
Removes the patterns/ example application from this repo after it was migrated into the livetemplate/docs recipes app, and updates local docs/test tooling to stop referencing the deleted directory.
Changes:
- Deleted the
patterns/application subtree (handlers, templates, tests, and deploy artifacts). - Removed
patternsfromWORKING_EXAMPLESintest-all.shto prevent missing-directory failures. - Updated the top-level README to clarify
/patternsis now served from the docs repo.
Reviewed changes
Copilot reviewed 61 out of 62 changed files in this pull request and generated no comments.
Show a summary per file
| File | Description |
|---|---|
| test-all.sh | Removes patterns from the working examples list so the test runner doesn’t fail on a missing directory. |
| README.md | Updates documentation to point /patterns hosting to the docs repo app location. |
| patterns/templates/search/url-filters.tmpl | Deleted as part of removing the patterns/ app templates. |
| patterns/templates/search/active-search.tmpl | Deleted as part of removing the patterns/ app templates. |
| patterns/templates/realtime/server-push.tmpl | Deleted as part of removing the patterns/ app templates. |
| patterns/templates/realtime/reconnection.tmpl | Deleted as part of removing the patterns/ app templates. |
| patterns/templates/realtime/presence.tmpl | Deleted as part of removing the patterns/ app templates. |
| patterns/templates/realtime/multi-user-sync.tmpl | Deleted as part of removing the patterns/ app templates. |
| patterns/templates/realtime/live-preview.tmpl | Deleted as part of removing the patterns/ app templates. |
| patterns/templates/realtime/broadcasting.tmpl | Deleted as part of removing the patterns/ app templates. |
| patterns/templates/navigation/tabs.tmpl | Deleted as part of removing the patterns/ app templates. |
| patterns/templates/navigation/spa-navigation.tmpl | Deleted as part of removing the patterns/ app templates. |
| patterns/templates/navigation/modal-dialog.tmpl | Deleted as part of removing the patterns/ app templates. |
| patterns/templates/navigation/keyboard-shortcuts.tmpl | Deleted as part of removing the patterns/ app templates. |
| patterns/templates/navigation/confirm-dialog.tmpl | Deleted as part of removing the patterns/ app templates. |
| patterns/templates/loading/progress-bar.tmpl | Deleted as part of removing the patterns/ app templates. |
| patterns/templates/loading/lazy-loading.tmpl | Deleted as part of removing the patterns/ app templates. |
| patterns/templates/loading/async-operations.tmpl | Deleted as part of removing the patterns/ app templates. |
| patterns/templates/lists/value-select.tmpl | Deleted as part of removing the patterns/ app templates. |
| patterns/templates/lists/sortable.tmpl | Deleted as part of removing the patterns/ app templates. |
| patterns/templates/lists/large-table.tmpl | Deleted as part of removing the patterns/ app templates. |
| patterns/templates/lists/infinite-scroll.tmpl | Deleted as part of removing the patterns/ app templates. |
| patterns/templates/lists/delete-row.tmpl | Deleted as part of removing the patterns/ app templates. |
| patterns/templates/lists/click-to-load.tmpl | Deleted as part of removing the patterns/ app templates. |
| patterns/templates/layout.tmpl | Deleted as part of removing the patterns/ app shared layout. |
| patterns/templates/index.tmpl | Deleted as part of removing the patterns/ app index template. |
| patterns/templates/forms/reset-input.tmpl | Deleted as part of removing the patterns/ app templates. |
| patterns/templates/forms/preserve-inputs.tmpl | Deleted as part of removing the patterns/ app templates. |
| patterns/templates/forms/inline-validation.tmpl | Deleted as part of removing the patterns/ app templates. |
| patterns/templates/forms/file-upload.tmpl | Deleted as part of removing the patterns/ app templates. |
| patterns/templates/forms/edit-row.tmpl | Deleted as part of removing the patterns/ app templates. |
| patterns/templates/forms/click-to-edit.tmpl | Deleted as part of removing the patterns/ app templates. |
| patterns/templates/forms/bulk-update.tmpl | Deleted as part of removing the patterns/ app templates. |
| patterns/templates/feedback/loading-states.tmpl | Deleted as part of removing the patterns/ app templates. |
| patterns/templates/feedback/highlight.tmpl | Deleted as part of removing the patterns/ app templates. |
| patterns/templates/feedback/flash-messages.tmpl | Deleted as part of removing the patterns/ app templates. |
| patterns/templates/feedback/animations.tmpl | Deleted as part of removing the patterns/ app templates. |
| patterns/state_search.go | Deleted as part of removing the patterns/ app state definitions. |
| patterns/state_realtime.go | Deleted as part of removing the patterns/ app state definitions. |
| patterns/state_navigation.go | Deleted as part of removing the patterns/ app state definitions. |
| patterns/state_loading.go | Deleted as part of removing the patterns/ app state definitions. |
| patterns/state_lists.go | Deleted as part of removing the patterns/ app state definitions. |
| patterns/state_forms.go | Deleted as part of removing the patterns/ app state definitions. |
| patterns/state_feedback.go | Deleted as part of removing the patterns/ app state definitions. |
| patterns/README.md | Deleted as part of removing the patterns/ app documentation. |
| patterns/main.go | Deleted as part of removing the patterns/ app server entrypoint and routing. |
| patterns/large_table_bench_test.go | Deleted as part of removing the patterns/ app benchmarks. |
| patterns/handlers_search.go | Deleted as part of removing the patterns/ app handlers. |
| patterns/handlers_realtime.go | Deleted as part of removing the patterns/ app handlers. |
| patterns/handlers_navigation.go | Deleted as part of removing the patterns/ app handlers. |
| patterns/handlers_loading.go | Deleted as part of removing the patterns/ app handlers. |
| patterns/handlers_lists.go | Deleted as part of removing the patterns/ app handlers. |
| patterns/handlers_forms.go | Deleted as part of removing the patterns/ app handlers. |
| patterns/handlers_feedback.go | Deleted as part of removing the patterns/ app handlers. |
| patterns/fly.toml | Deleted as part of removing the patterns/ app deployment configuration. |
| patterns/Dockerfile | Deleted as part of removing the patterns/ app container build/deploy setup. |
| patterns/data.go | Deleted as part of removing the patterns/ app data/model helpers. |
| patterns/cross_handler_nav_test.go | Deleted as part of removing the patterns/ app E2E navigation tests. |
| patterns/api_index.go | Deleted as part of removing the patterns/ app JSON catalog endpoint. |
| patterns/api_index_test.go | Deleted as part of removing the patterns/ app JSON catalog endpoint tests. |
| patterns/.dockerignore | Deleted as part of removing the patterns/ app Docker build context config. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Code Review — PR #99 (follow-up)SummaryThis is a clean, low-risk cleanup PR. The code changes are minimal: one line removed from Assessment of Author ResponsesBoth concerns from the prior review have been resolved:
Final Check
VerdictReady to merge. All concerns addressed. The PR is correct and the description is thorough. Coverage is maintained via the cross-repo 🤖 Generated with Claude Code |
Summary
Final piece of the patterns migration. The patterns app already lives in livetemplate/docs — public catalog at
https://livetemplate.fly.dev/patterns/*is served by the docs binary's in-process recipes server since livetemplate/docs#11 (May 10).This PR deletes the now-unused source from this repo.
Coverage continuity
Cross-repo
test-examplescoverage was preserved by livetemplate/livetemplate#400 (just merged) which adds a paralleltest-docsjob that runs the relocated patterns suite (now atdocs/e2e/patterns/) against core livetemplate changes. No coverage gap.Diff
patterns/(62 files, ~8.5k lines): 22.gosource files, 30 templates,Dockerfile,fly.toml,.dockerignore,README.md, plus thepatterns/subtree.test-all.shline 44: remove"patterns"fromWORKING_EXAMPLESso the cross-repotest-examplesjob auto-skips it without erroring on missing dir.README.mdline 5: now describes the/patternscatalog as served from the docs repo'scontent/recipes/patterns/_app/, not this repo.Test plan
WORKING_EXAMPLESdirectory existence sanity check — all 12 remaining dirs exist,patterns/confirmed gonegrep -rn "patterns/\|examples/patterns"— no stale refs in source/scripts/configs (onlydialog-patterns/remains, which is a separate example)test-examplesjob in livetemplate runs without erroring on missing patterns dirtest-docsjob (added in ci: add test-docs cross-repo job for patterns e2e coverage livetemplate#400) keeps patterns coverage aliveManual ops (not in this PR)
lt-patterns.fly.devFly app (zero production traffic since feat(routing): flip /patterns/* to in-process cmd/site (B2 PR-1) docs#11 deployed ~04:30 UTC May 10).🤖 Generated with Claude Code