feat(webui): shortener UI — links, collections, analytics (B6)#64
Open
PenguinzTech wants to merge 3 commits into
Open
feat(webui): shortener UI — links, collections, analytics (B6)#64PenguinzTech wants to merge 3 commits into
PenguinzTech wants to merge 3 commits into
Conversation
React/TypeScript UI on the hardened cookie-auth webui: - Links page: tenant links table (copyable short URL, click count, status), create/edit modals with validation, soft-delete, QR display via GET /urls/:id/qr, pagination + search + collection/active filters. Create/edit/delete role-gated (Admin/Maintainer); Viewer read-only. - Collections page: nested (parent_id) collection tree, CRUD, role-gated. - Analytics page: tenant summary (total links/clicks, clicks-over-time inline chart), top links, per-link drill-down. Advanced breakdowns (referer/device/browser) degrade gracefully to an 'Enterprise feature' card on 402/403. - Routes in App.tsx, Shortener nav group in Sidebar, API calls centralized in useApi shortenerApi (withCredentials cookie auth). Sanitized [Component] logging. Vite build passes. Note: pre-existing (v1.x) tsc errors in Login.tsx/Users.tsx are unrelated to this change and flagged for a separate fix. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
There was a problem hiding this comment.
Sorry @PenguinzTech, you have reached your weekly rate limit of 500000 diff characters.
Please try again later or upgrade to continue using Sourcery
…to feature/shortener-webui # Conflicts: # services/webui/src/client/hooks/useApi.ts
…ixes Merge typecheck fixes from #59 into #64: - Removed unused onToggle prop from Sidebar + Layout - Removed unused imports: externalApi from useApi, setTokens/clearTokens/getAccessToken from useAuth - Fixed unused parameter 'get' in useAuth zustand store - Removed unused 'login' import from Login page - Fixed user property mapping and GDPRConfig in Login - Fixed role type narrowing in Users form Additional #64 fixes: - Remove unused ShortLink import from Analytics - Remove unused barWidth variable from chart renderer - Remove unused RoleGuard import from Links - Remove unused user destructuring from Links All tsc errors now resolved; npm run typecheck passes clean. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Feature (Track B) — shortener React UI
Stacked on #59 (base =
fix/frontend-infra-hardening, so it builds on the cookie-auth/helmet hardening). Targetsrelease/v0.1.x. Consumes the shortener API (#63 + redirect/analytics PR).GET /urls/:id/qr, pagination + search + collection/active filters. Create/edit/delete gated to Admin/Maintainer; Viewer read-only.useApi.shortenerApi(axioswithCredentialscookie auth); sanitized[Component]logging.Vite build passes; new files TypeScript-strict clean.
tscerrors inLogin.tsx/Users.tsx(inherited from v1.x, unrelated to this change) will fail the new webui CI typecheck gate — flagged for a separate fix PR.🤖 Generated with Claude Code