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

stacklok / toolhive-studio / 23744290094
61%

Build:
DEFAULT BRANCH: main
Ran 30 Mar 2026 12:20PM UTC
Jobs 1
Files 415
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

30 Mar 2026 12:17PM UTC coverage: 60.386% (+1.3%) from 59.044%
23744290094

push

github

web-flow
feat(registry): handle authentication for registry server api (#1783)

* feat(registry): add OAuth fields and API URL server support

- Add client_id/issuer_url OAuth fields for Registry Server API type
- Add login/logout flow when saving api_url with auth credentials
- Show registry_auth_required error with field-level feedback:
  - Empty auth fields: red borders + general OIDC message
  - Populated fields: REGISTRY_WRONG_AUTH_TOAST on client_id
- Preserve source URL after login failure (keepDirtyValues)
- Clear form errors on registry type dropdown change
- Refactor into useRegistryData + useRegistryForm hooks
- Extract REGISTRY_FORM_TYPE constant for type-safe comparisons
- Add OIDC_DISCOVERY_PATTERN and error constants to registry-list-error

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>

* test(registry): add tests for OAuth and API URL registry flows

- Test OIDC discovery failure shows issuer_url field error
- Test dropdown type change clears previous form errors
- Test source URL is preserved after login failure (keepDirtyValues)
- Test issuer URL format validation
- Test registry_auth_required with existing auth config shows
  client_id field error instead of general OIDC box message

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>

* refactor(registry): replace string literals with REGISTRY_FORM_TYPE constants and extract OAuthField

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>

* feat(registry): simplify submit button label — always Save at rest, Signing in.../Saving... on load

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>

* fix conflicts

* feat(registry): handle 503 registry_unavailable error in frontend

Display a dedicated error page and form-level error when the backend
returns a 503 with code `registry_unavailable` (misconfigured API URL).
Pre-fill the source field with the URL extracted from the error so the
user can correct it directly. Refactor submit error handling into a
switch-bas... (continued)

2974 of 5202 branches covered (57.17%)

Branch coverage included in aggregate %.

221 of 252 new or added lines in 25 files covered. (87.7%)

4 existing lines in 4 files now uncovered.

4855 of 7763 relevant lines covered (62.54%)

125.44 hits per line

Uncovered Changes

Lines Coverage ∆ File
8
0.0
0.0% renderer/src/routes/__root.tsx
6
85.25
renderer/src/common/components/settings/registry/use-registry-form.ts
6
0.0
renderer/src/routes/root/hooks/use-registry-error-toast.ts
4
83.15
renderer/src/common/components/settings/registry/use-registry-update-mutation.ts
3
80.21
-1.51% main/src/toolhive-manager.ts
1
0.0
0.0% main/src/ipc-handlers/toolhive.ts
1
48.78
0.21% renderer/src/common/hooks/use-toast-mutation.ts
1
0.0
0.0% renderer/src/routes/(registry)/registry.tsx
1
71.43
renderer/src/routes/root/guards/ensure-toolhive-running.ts

Coverage Regressions

Lines Coverage ∆ File
1
0.0
0.0% main/src/ipc-handlers/toolhive.ts
1
79.31
-2.51% renderer/src/common/components/settings/registry/utils.ts
1
48.78
0.21% renderer/src/common/hooks/use-toast-mutation.ts
1
0.0
0.0% renderer/src/routes/__root.tsx
Jobs
ID Job ID Ran Files Coverage
1 23744290094.1 30 Mar 2026 12:20PM UTC 415
60.39
GitHub Action Run
Source Files on build 23744290094
  • Tree
  • List 415
  • Changed 17
  • Source Changed 12
  • Coverage Changed 16
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Repo
  • Github Actions Build #23744290094
  • 92859793 on github
  • Prev Build on main (#23743986528)
  • Next Build on main (#23744537856)
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