feat(frontend): Anonymous repo indexing UI components (#114)#135
Merged
DevanshuNEU merged 2 commits intoDec 26, 2025
Merged
Conversation
- Add useAnonymousSession hook with full state machine - Add playground-api.ts service (mock validation for OpenCodeIntel#134) - Add RepoModeSelector component (Demo/Custom tabs) - Add RepoUrlInput with debounced validation - Add ValidationStatus component (valid/invalid/loading) - Add IndexingProgress with real-time updates Part of OpenCodeIntel#114
- Fix NodeJS.Timeout type (use ReturnType<typeof setInterval>) - Add AbortController for request cancellation - Fix useEffect/useCallback dependencies - Add proper aria-labels for accessibility - Add APIError class for typed error handling - Improve mock validation with language detection - Add proper JSDoc comments (not excessive) - Export ProgressData type - Better number formatting (toLocaleString) - Consistent button type='button' attributes All TypeScript checks pass.
|
@DevanshuNEU is attempting to deploy a commit to the Dev's projects Team on Vercel. A member of the Team first needs to authorize it. |
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
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.
Summary
Implements the foundation for anonymous repo indexing UI (Issue #114). Adds state machine hook, API service layer, and reusable UI components.
Changes
New Files
State Machine
API Endpoints Covered
POST /playground/validate-repoPOST /playground/indexGET /playground/index/{job_id}GET /playground/sessionPOST /playground/searchTechnical Highlights
APIErrorclass for error handlingUSE_MOCKflag, flip when Bug: CacheService missing get/set methods breaks validate-repo endpoint #134 is fixedTesting
tsc --noEmitpassesRelated Issues
Next Steps
Playground.tsxUSE_MOCK = falsewhen Bug: CacheService missing get/set methods breaks validate-repo endpoint #134 is fixedScreenshots
Components ready, integration pending
Lines: ~1,180 | Files: 8 | Commits: 2