Repository navigation
Fix invite request and remove dead code - #2
Merged
Merged
Conversation
The invite-verify page posted to /v1/invites/request, which the API no longer serves (404), so "Request invite" always failed with "Not Found". It now posts to /v1/invites, the same call the /invite page makes. Removes the chat component, the document upload dialog and the project service. Nothing imported them, and they called API routes that no longer exist (/projects, /openai). Also drops the openai, marked and typewriter-effect packages, which only those files used.
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.
Invite request
The invite-verify page posted to
/v1/invites/request. The API no longer has that route and returns 404, so Request invite always failed with "Not Found". The page now posts{ email }toPOST /v1/inviteswith the user's token, the same call the/invitepage already makes.Dead code
Removes three files that nothing imported, all of which called API routes that no longer exist:
src/app/components/chat.tsx(/openai, message feedback)src/app/components/document-upload-dialog.tsx(project document upload)src/app/services/project.service.ts(/projects)It also drops
openai,markedandtypewriter-effect, which only those files used, and updates one README line.Testing
npm run typecheckandnpm run buildpass.POST /v1/invitesbody, so please check that it accepts this request before merging.