Skip to content

Fix invite request and remove dead code - #2

Merged
mehfuzh merged 1 commit into
mainfrom
fix-invite-request-and-remove-dead-code
Nov 5, 2026
Merged

mehfuzh merged 1 commit into
mainfrom
fix-invite-request-and-remove-dead-code

Conversation

@mehfuzh

@mehfuzh mehfuzh commented Nov 5, 2026

Copy link
Copy Markdown
Member

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 } to POST /v1/invites with the user's token, the same call the /invite page 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, marked and typewriter-effect, which only those files used, and updates one README line.

Testing

  • npm run typecheck and npm run build pass.
  • Not tested: a real invite request from a signed-in account. The API's OpenAPI spec doesn't describe the POST /v1/invites body, so please check that it accepts this request before merging.

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.
@mehfuzh
mehfuzh merged commit 1ce1892 into main Nov 5, 2026
1 check passed
@mehfuzh
mehfuzh deleted the fix-invite-request-and-remove-dead-code branch November 5, 2026 18:54
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.

1 participant