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

Closed
wants to merge 3 commits into 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

@Erb3
Copy link
Contributor Author

Erb3 commented May 16, 2025

I've been debating what to do with this PR. I hadn't figured out the formatting properly when I made the PR, so the diff is pretty bloated with unrelated formatting changes. Considering the amount of files with confilicts, I've decided to put this on the shelf for now. I still think the changes I made are good, but I'm not motivated to pour time into this right now.

@Erb3 Erb3 closed this May 16, 2025
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