Skip to content

Conversation

35C4n0r
Copy link
Collaborator

@35C4n0r 35C4n0r commented Sep 26, 2025

Description

  • Add new route /upload to upload the files/folders.
  • Add Upload Button in chat-box ui that opens a dialog (image below)

@35C4n0r 35C4n0r self-assigned this Sep 26, 2025
@35C4n0r 35C4n0r marked this pull request as draft September 26, 2025 18:37
@35C4n0r 35C4n0r marked this pull request as ready for review September 27, 2025 10:34
@BrunoQuaresma
Copy link
Contributor

From a UX perspective, I think showing a dialog after clicking the upload button feels different from how similar tools usually behave. IMO, clicking the upload button should immediately open the file picker. Drag and drop could happen directly on the screen or be tied to the “prompt area.” This would align more closely with the approach used by ChatGPT or Gemini.

That said, I’m not sure what you’ve already aligned on with the PMs. cc: @matifali

@35C4n0r 35C4n0r marked this pull request as draft September 30, 2025 16:35
Copy link

github-actions bot commented Oct 1, 2025

✅ Preview binaries are ready!

To test with modules: agentapi_version = "agentapi_98" or download from: https://github.com/coder/agentapi/releases/tag/agentapi_98

Copy link

github-actions bot commented Oct 1, 2025

✅ Preview binaries are ready!

To test with modules: agentapi_version = "agentapi_98" or download from: https://github.com/coder/agentapi/releases/tag/agentapi_98

@35C4n0r 35C4n0r marked this pull request as ready for review October 1, 2025 15:44
@35C4n0r
Copy link
Collaborator Author

35C4n0r commented Oct 1, 2025

From a UX perspective, I think showing a dialog after clicking the upload button feels different from how similar tools usually behave. IMO, clicking the upload button should immediately open the file picker. Drag and drop could happen directly on the screen or be tied to the “prompt area.” This would align more closely with the approach used by ChatGPT or Gemini.

That said, I’m not sure what you’ve already aligned on with the PMs. cc: @matifali

@BrunoQuaresma addressed the comment, requesting a re-review

@35C4n0r 35C4n0r requested a review from johnstcn October 1, 2025 15:44
Copy link
Contributor

@BrunoQuaresma BrunoQuaresma left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

My main concern is the use of any in several places—we should avoid it when possible. TypeScript has good guidance on typing errors more precisely; I’m happy to share a reference if that helps.

https://kentcdodds.com/blog/get-a-catch-block-error-message-with-typescript

That said, I’m approving the PR so you’re not blocked. For significant changes, it would be great to include a screenshot or short demo next time.

@35C4n0r
Copy link
Collaborator Author

35C4n0r commented Oct 3, 2025

@BrunoQuaresma thanks for sharing the blog, it was very helpful.
I have removed the anys from the error and handled the ts properly.

Copy link

github-actions bot commented Oct 3, 2025

✅ Preview binaries are ready!

To test with modules: agentapi_version = "agentapi_98" or download from: https://github.com/coder/agentapi/releases/tag/agentapi_98

@35C4n0r 35C4n0r requested a review from johnstcn October 6, 2025 05:21
Copy link

github-actions bot commented Oct 6, 2025

✅ Preview binaries are ready!

To test with modules: agentapi_version = "agentapi_98" or download from: https://github.com/coder/agentapi/releases/tag/agentapi_98

1 similar comment
Copy link

github-actions bot commented Oct 6, 2025

✅ Preview binaries are ready!

To test with modules: agentapi_version = "agentapi_98" or download from: https://github.com/coder/agentapi/releases/tag/agentapi_98

@35C4n0r 35C4n0r merged commit 6663ede into coder:main Oct 6, 2025
3 checks 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.

3 participants