Skip to content

refactor(ui): rewrite file input component #3355

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

Erb3
Copy link
Contributor

@Erb3 Erb3 commented Mar 7, 2025

  • Rewrite file input component in TS + composition API
  • Remove unused props
  • Remove frontend duplicate component
  • Replace the emit by an async callback
  • Add a spinner in the wide display mode while the callback is uploading
    • You should be able to see this in the markdown editor
  • Add a red border and error in wide display mode
    • Should be easily testable in the markdown editor
  • Make uploading icon the default icon
    • aria-hidden
  • Remove fileUtils as it's just checking file size anyways and using alerts
  • fmt (webstorm being annoying?)

- Rewrite file input component in TS + composition API
- Remove unused props
- Remove frontend duplicate component
- Move the emit into an async callback
- Add a spinner in the wide display mode while the callback is uploading
  - You should be able to see this in the markdown editor
- Add a red border and error in wide display mode
  - Should be easily testable in the markdown editor
- fmt (webstorm being annoying?)
@Erb3 Erb3 marked this pull request as draft March 7, 2025 21:48
@Erb3 Erb3 marked this pull request as ready for review March 8, 2025 07:48
@Prospector
Copy link
Member

Unfortunately, this PR has conflicts now. Apologies I did not have time to review it sooner

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants