Skip to content
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

Form: Updating Page: Rework infobox image #66

Closed
Lenni009 opened this issue Apr 7, 2024 · 0 comments
Closed

Form: Updating Page: Rework infobox image #66

Lenni009 opened this issue Apr 7, 2024 · 0 comments
Labels
enhancement New feature or request
Milestone

Comments

@Lenni009
Copy link
Member

Lenni009 commented Apr 7, 2024

The infobox image is required for new bases, but isn't for existing bases.

We cannot input files into the file input like we can with other input types.

This means that if you don't upload a new file, it will be flagged as invalid.

-> There should be some form of visualisation of what you uploaded -> Take inspiration from https://www.nmswikiboilerplate.com/civ

The image property in the state should be replaced with a FileItem (or similar). This allows us to have a file or just a URL. The URL can also be used for the image element to show the uploaded image.

@Lenni009 Lenni009 added the enhancement New feature or request label Apr 7, 2024
@Lenni009 Lenni009 added this to the Release milestone Apr 7, 2024
@Lenni009 Lenni009 closed this as completed Apr 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant