diff options
| author | Peter Stone <thepeterstone@gmail.com> | 2026-03-21 21:24:02 +0000 |
|---|---|---|
| committer | Peter Stone <thepeterstone@gmail.com> | 2026-03-21 21:24:02 +0000 |
| commit | 764d4d2d07449aec72c87afe941b7c63ea05e08c (patch) | |
| tree | 042b157cfff2ab358b5bb9b891f26944133b7065 /web/templates | |
| parent | 5f4f59fc6302a4e44773d4a939ae7b3304d61f1f (diff) | |
feat: Phase 1 — remove bug feature and dead code
- Delete Bug struct, BugToAtom, SourceBug, TypeBug, TypeNote
- Remove bug store methods (SaveBug, GetBugs, ResolveBug, etc.)
- Remove HandleGetBugs, HandleReportBug, bug branches in handlers
- Remove bug routes, bugs.html template, bug UI from index.html
- Remove AddMealToPlanner stub + interface method
- Migration 018: DROP TABLE IF EXISTS bugs
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Diffstat (limited to 'web/templates')
| -rw-r--r-- | web/templates/index.html | 34 | ||||
| -rw-r--r-- | web/templates/partials/bugs.html | 12 |
2 files changed, 0 insertions, 46 deletions
diff --git a/web/templates/index.html b/web/templates/index.html index 2a07a32..87be542 100644 --- a/web/templates/index.html +++ b/web/templates/index.html @@ -135,10 +135,6 @@ class="px-3 py-1 rounded-lg text-sm font-medium text-white/60 hover:bg-white/10"> 🛒 Shopping </button> - <button onclick="switchActionTab('bug')" id="tab-bug" - class="px-3 py-1 rounded-lg text-sm font-medium text-white/60 hover:bg-white/10"> - 🐛 Bug - </button> </div> <button onclick="closeActionModal()" class="text-white/40 hover:text-white">✕</button> </div> @@ -195,31 +191,6 @@ </form> </div> - <!-- Bug Report Tab --> - <div id="panel-bug" class="p-4 hidden"> - <form hx-post="/bugs" - hx-target="#bug-list" - hx-swap="innerHTML" - hx-on::after-request="if(event.detail.successful) { this.reset(); closeActionModal(); }"> - <textarea name="description" - placeholder="Describe the bug..." - class="w-full bg-input border border-white/20 rounded-lg px-3 py-2 text-sm text-white placeholder-white/50 mb-3 h-24" - required></textarea> - <button type="submit" - class="w-full bg-red-900/50 hover:bg-red-900/70 text-red-300 px-4 py-2 rounded-lg text-sm font-medium"> - Submit Bug Report - </button> - </form> - <div class="mt-4 border-t border-white/10 pt-4"> - <h3 class="text-sm font-medium text-white/70 mb-2">Recent Reports</h3> - <div id="bug-list" - class="max-h-32 overflow-y-auto" - hx-get="/bugs" - hx-trigger="load"> - <p class="text-white/40 text-sm">Loading...</p> - </div> - </div> - </div> </div> </div> @@ -242,7 +213,6 @@ function switchActionTab(tab) { document.getElementById('panel-add').classList.toggle('hidden', tab !== 'add'); document.getElementById('panel-shopping').classList.toggle('hidden', tab !== 'shopping'); - document.getElementById('panel-bug').classList.toggle('hidden', tab !== 'bug'); // Task tab styling document.getElementById('tab-add').classList.toggle('bg-white/20', tab === 'add'); document.getElementById('tab-add').classList.toggle('text-white', tab === 'add'); @@ -251,10 +221,6 @@ document.getElementById('tab-shopping').classList.toggle('bg-green-900/50', tab === 'shopping'); document.getElementById('tab-shopping').classList.toggle('text-green-300', tab === 'shopping'); document.getElementById('tab-shopping').classList.toggle('text-white/60', tab !== 'shopping'); - // Bug tab styling - document.getElementById('tab-bug').classList.toggle('bg-red-900/50', tab === 'bug'); - document.getElementById('tab-bug').classList.toggle('text-red-300', tab === 'bug'); - document.getElementById('tab-bug').classList.toggle('text-white/60', tab !== 'bug'); // Load shopping lists when switching to shopping tab if (tab === 'shopping') { loadShoppingLists(); diff --git a/web/templates/partials/bugs.html b/web/templates/partials/bugs.html deleted file mode 100644 index cb5ba25..0000000 --- a/web/templates/partials/bugs.html +++ /dev/null @@ -1,12 +0,0 @@ -{{define "bugs"}} -{{if .}} -{{range .}} -<div class="text-sm border-b border-gray-100 py-2"> - <p class="text-gray-900">{{.Description}}</p> - <p class="text-gray-400 text-xs">{{.CreatedAt.Format "Jan 2, 3:04 PM"}}</p> -</div> -{{end}} -{{else}} -<p class="text-gray-500 text-sm">No bugs reported yet.</p> -{{end}} -{{end}} |
