Skip to content

Wrap webhooks list#191

Merged
mikewheeleer merged 6 commits into
Agentpay-Org:mainfrom
gloskull:wrap-webhooks-list
Jun 28, 2026
Merged

Wrap webhooks list#191
mikewheeleer merged 6 commits into
Agentpay-Org:mainfrom
gloskull:wrap-webhooks-list

Conversation

@gloskull

Copy link
Copy Markdown
Contributor

Added loading and empty states to the webhooks management page. The implementation uses shared UI components (Spinner, EmptyState) to maintain consistency across the dashboard. Webhooks are now rendered within an accessible region. Testing has been expanded to cover all new states and edge cases, ensuring stability and accessibility compliance.

Closes #163

google-labs-jules Bot and others added 6 commits June 28, 2026 06:48
- Implemented a loading spinner using the shared `Spinner` component for the initial fetch.
- Added an empty state using the `EmptyState` component when no webhooks are registered.
- Wrapped the registered webhooks list in an accessible `<section>` region.
- Improved UX by hiding the loading spinner when an error is present.
- Updated documentation in `README.md` to reflect these changes.
- Added comprehensive tests in `src/app/webhooks/page.test.tsx` covering all new states and error scenarios, achieving >95% coverage.
- Ensured all tests are robust by using specific selectors and proper cleanup.

Co-authored-by: gloskull <189399494+gloskull@users.noreply.github.com>
…ading-states-2611946595185874243

Wrap the webhooks list in an empty state and accessible region
…ases

- Update `validateNumber.ts` to strictly reject empty strings and negative zero.
- Add explicit roles and aria-labels to `KeyValueGrid` for improved testability and accessibility.
- Refine error display in `UsagePage` to prevent duplicate alerts.
- Refactor `ConfirmDialog` to separate backdrop from panel, fixing dismissal logic and tests.
- Ensure all tests pass and build is successful.

Co-authored-by: gloskull <189399494+gloskull@users.noreply.github.com>
…-2918715579922504197

Fix CI failures, accessibility, and validation edge cases
- Fixes 'act(...)' warning in AgentsPage tests by properly mocking stats request.
- Increases test coverage for Header component to 100% by adding tests for mobile menu, focus management, and desktop menu blur/route-change behavior.
- Increases function coverage for Pagination component.
- Refactors Header.tsx to use explicit null checks on refs to aid coverage reporting.

Co-authored-by: gloskull <189399494+gloskull@users.noreply.github.com>
…473670917

Fix CI test warnings and coverage thresholds
@gloskull

gloskull commented Jun 28, 2026

Copy link
Copy Markdown
Contributor Author

Task done and Errors resolved.

@mikewheeleer Please merge and give and high review.
Please if there are any more tasks, assign them to me, i'd make sure to get them done quickly and submit my PR's in under 5 hours

@mikewheeleer

Copy link
Copy Markdown
Contributor

clean diff — in it goes 👍

@mikewheeleer mikewheeleer merged commit 6b3d093 into Agentpay-Org:main Jun 28, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Wrap the webhooks list in an empty state and accessible region

2 participants