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

umputun / stash / 19878842351
83%

Build:
DEFAULT BRANCH: master
Ran 03 Dec 2025 01:11AM UTC
Jobs 1
Files 17
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

03 Dec 2025 01:08AM UTC coverage: 82.631% (-0.3%) from 82.927%
19878842351

push

github

web-flow
Migrate manual enums to go-pkgz/enum (#22)

* refactor: migrate manual enums to go-pkgz/enum

- Add app/enum package with type-safe enums generated via go-pkgz/enum
- Migrate Permission, DbType, Format, ViewMode, SortMode, Theme types
- Add CanRead/CanWrite extension methods for Permission
- Update auth, store, and web packages to use enum types
- Exclude enum package from test coverage (generated code)

* refactor: use enum.SortMode type instead of strings

- Change getSortMode to return enum.SortMode
- Change sortByMode to accept enum.SortMode
- Change sortModeLabel to accept enum.SortMode
- Add SortMode.Next() method to eliminate switch for cycling
- Simplify sortModeLabel to capitalize first letter
- Update tests to use enum types

* refactor: use enum types for Theme, ViewMode, Format

- Add Theme.Toggle(), ViewMode.Toggle() methods
- Add Format.ContentType() method
- Update getTheme(), getViewMode() to return enum types
- Update formatToContentType() to use Format.ContentType()
- Update toggle handlers to use enum methods
- Update templateData to use enum types for Theme, ViewMode
- Update templates to use .String for comparisons

* refactor(enum): rename defs.go to enum.go

follow go convention where main file matches package name.

* test(enum): add tests for permission extension methods

test CanRead() and CanWrite() for all permission values.

* docs: document enum types, web ui structure and playwright selectors

add documentation for:
- enum types with all values (format, viewmode, sortmode, theme, permission, dbtype)
- web ui structure (templates, modals, highlighting)
- additional web routes (view-mode, sort)
- playwright testing selectors for future ui tests

47 of 47 new or added lines in 6 files covered. (100.0%)

2255 of 2729 relevant lines covered (82.63%)

88.87 hits per line

Jobs
ID Job ID Ran Files Coverage
1 19878842351.1 03 Dec 2025 01:11AM UTC 17
82.63
GitHub Action Run
Source Files on build 19878842351
  • Tree
  • List 17
  • Changed 7
  • Source Changed 0
  • Coverage Changed 7
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • 8c001a0c on github
  • Prev Build on master (#19851504967)
  • Next Build on master (#19879117142)
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