Repository navigation
fix(ui,db): dead scroll space below footer + 9s workspace delete - #66
Merged
Merged
Conversation
Two dogfooding hits on the Home page: 1. ~1,400px of scrollable void below the footer. Visually-hidden (.sr-only / clip:rect) elements inside scroll containers used position:absolute; with no positioned ancestor their containing block is the document, so they escaped the container's overflow clip and extended the page's scrollable height (2,844px for 1,469px of real content). Switched to position:fixed — anchored to the viewport they can never add scroll overflow. Same swap on .rtable thead and the icon-rail label block, which share the pattern inside scrollers. 2. "Remove this workspace" spun on Working for 6-9s+. The cascading DELETE had no index on findings.analyzer_run_id (full 88k-row scan per deleted analyzer_run) or metrics.scan_id. Migration 010 adds both; measured 8.5s -> 0.6s on a 14k-finding workspace. Also: FindingNotes tie-broke equal created_at on random UUID (~50% flake) — now rowid (insertion order, covered by the scope index). And the DSN gains journal_mode(WAL): Vacuum already checkpointed a WAL log that delete-mode never produced, and external readers no longer block behind writers. Generated with [Devin](https://devin.ai) Co-Authored-By: Devin <158243242+devin-ai-integration[bot]@users.noreply.github.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
.sr-only/clip-rect elements inside scroll containers usedposition:absolute→ escaped the clip and stretched document height by ~1,400px of dead space (2,844px measured vs 1,469px of content). Switched toposition:fixedon.sr-only,.rtable thead, and icon-rail labels.analyzer_run/scan— migration 010 addsidx_findings_analyzer_run+idx_metrics_scan(8.5s → 0.6s measured).FindingNotestie-broke on random UUID → nowrowid(insertion order, covered by existing index).journal_mode(WAL)—Vacuumalready assumed WAL; external readers stop blocking behind writers.Test plan
go test ./internal/database/ -count=2— passscrollHeight2,844 → 1,469; page ends at footerjournal_mode=walGenerated with Devin