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

umputun / cronn / 17202940472
75%

Build:
DEFAULT BRANCH: master
Ran 25 Aug 2025 08:03AM UTC
Jobs 1
Files 21
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

25 Aug 2025 08:02AM UTC coverage: 72.592% (-0.7%) from 73.269%
17202940472

push

github

web-flow
feat(web): add job filter by status and refactor template rendering (#43)

* feat(web): add job filter by status and refactor template rendering

This commit introduces two major improvements:

1. Job Filtering Feature:
   - Add filter by status (all/running/success/failed)
   - Cycle through filter modes via UI button
   - Persist filter preference in cookies
   - Add visual indicators (colored dots) for active filters
   - Comprehensive test coverage for filter functionality

2. Template Rendering Refactoring:
   - Apply IsOOB pattern to eliminate HTML generation in Go code
   - Replace brittle string manipulation with template-based OOB handling
   - Extract complex handlers into smaller, focused functions
   - Create reusable templates for sort-button, filter-button, and stats-updates
   - Eliminate template duplication between base.html and partials

The refactoring addresses code review feedback by:
- Removing fmt.Fprintf HTML generation
- Following DRY principle for templates
- Improving maintainability and testability
- Creating consistent patterns across all handlers

All tests pass with 89.7% coverage.

* refactor(web): use stats-updates template in renderFilteredJobs

- Replace last fmt.Fprintf with template-based rendering
- Add test for stats template error case to improve coverage
- Coverage increased from 89.5% to 90.2%
- Achieve complete HTML template separation from Go code

196 of 283 new or added lines in 3 files covered. (69.26%)

2 existing lines in 1 file now uncovered.

1899 of 2616 relevant lines covered (72.59%)

24.88 hits per line

New Missed Lines in Diff

Lines Coverage ∆ File
24
91.28
0.07% app/web/web.go
63
0.0
app/web/enums/filter_mode_enum.go

Uncovered Existing Lines

Lines Coverage ∆ File
2
91.28
0.07% app/web/web.go
Jobs
ID Job ID Ran Files Coverage
1 17202940472.1 25 Aug 2025 08:03AM UTC 21
72.59
GitHub Action Run
Source Files on build 17202940472
  • Tree
  • List 21
  • Changed 1
  • Source Changed 0
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • 2e968537 on github
  • Prev Build on master (#17195868611)
  • Next Build on master (#17215620939)
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