• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

umputun / revdiff / 24287986461
90%

Build:
DEFAULT BRANCH: master
Ran 11 Apr 2026 05:43PM UTC
Jobs 1
Files 43
Run time 1min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

11 Apr 2026 05:42PM UTC coverage: 87.736% (-0.4%) from 88.175%
24287986461

push

github

web-flow
refactor(ui): extract sidepane sub-package with FileTree and TOC (#93)

* add plan: sidepane-extraction

* feat(sidepane): bootstrap sidepane package with enums, interfaces, and shared helper

Add app/ui/sidepane/ sub-package skeleton with Motion/Direction enums
(via go-pkgz/enum), consumer-side Resolver/Renderer interfaces,
FileTreeRender/TOCRender option structs, and shared ensureVisible helper.
Includes table-driven tests for ensureVisible and enum exhaustiveness.

* feat(sidepane): implement FileTree type with all methods

Port filetree.go logic into app/ui/sidepane/filetree.go with exported
API: NewFileTree, Move(Motion), StepFile(Direction), HasFile(Direction),
Rebuild, SelectedFile, TotalFiles, FileStatus, FilterActive, ReviewedCount,
ToggleFilter, RefreshFilter, ToggleReviewed, SelectByPath, EnsureVisible,
and Render(FileTreeRender).

* feat(sidepane): port FileTree tests to sidepane package

* feat(sidepane): implement TOC type with all methods

* feat(sidepane): port TOC tests to sidepane package

* feat(sidepane): add consumer-side interfaces and factory injection to Model

Add FileTreeComponent and TOCComponent exported interfaces to ui/model.go,
change Model.tree and Model.mdTOC field types from concrete to interface,
add NewFileTree/ParseTOC factory fields to ModelConfig and Model, validate
factories in NewModel, and initialize m.tree with empty tree for nil-safety.

* feat(sidepane): migrate loaders.go call sites to new API

* feat(sidepane): migrate view.go call sites to new API

* feat(sidepane): migrate diffnav.go call sites to new API

* feat(sidepane): migrate handlers, annotate, annotlist, model call sites to new API

* feat(sidepane): wire factory closures in main.go

* feat(sidepane): delete old filetree.go and mdtoc.go from ui package

Remove the original filetree.go, filetree_test.go, mdtoc.go, and
mdtoc_test.go files that were ported to app/ui/sidepane/ in earlier
tasks. Relocate isMarkdownFile and isFullContext helper method... (continued)

443 of 517 new or added lines in 13 files covered. (85.69%)

2 existing lines in 1 file now uncovered.

6367 of 7257 relevant lines covered (87.74%)

359.75 hits per line

Uncovered Changes

Lines Coverage ∆ File
24
31.43
app/ui/sidepane/direction_enum.go
24
44.19
app/ui/sidepane/motion_enum.go
9
47.61
-0.74% app/main.go
4
92.26
0.46% app/ui/diffnav.go
4
80.88
-0.14% app/ui/loaders.go
4
85.58
-0.94% app/ui/model.go
4
96.99
app/ui/sidepane/filetree.go
1
97.92
0.0% app/ui/handlers.go

Coverage Regressions

Lines Coverage ∆ File
2
92.26
0.46% app/ui/diffnav.go
Jobs
ID Job ID Ran Files Coverage
1 24287986461.1 11 Apr 2026 05:43PM UTC 43
87.74
GitHub Action Run
Source Files on build 24287986461
  • Tree
  • List 43
  • Changed 6
  • Source Changed 0
  • Coverage Changed 6
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • 6e47da47 on github
  • Prev Build on master (#24277848828)
  • Next Build on master (#24294082649)
  • Delete
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc