1087-imageView-display-image #1184
No reviewers
Labels
No labels
_CRITICAL_
API
app
backEnd
Blocked, waiting for further changes
bug
cleanup
close
design
duplicate
enhancement
feature request
frontEnd
help wanted
invalid
low priority
needs input
needs review
project documentation
question
research
reviewed
script
security
SQL
style
testing
topLevel
wontfix
No milestone
No project
No assignees
3 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Andras/BoundlessFlowCampus2K!1184
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "1087-imageView-display-image"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Changes to imageView and fileService
imageView now displays images fetched from the fileService api.
Files modified and added
DockerCompose/stacks/file/example_files,DockerCompose/stacks/file/init_sql/04-files.sqlservice/fileService/fileService/DatabaseLogic/,IDatabaseQueries.cs,DatabaseQueries.csEndpoints/FileEndpoints.csModels/request,Models/responseModels/request/ManyRequest.csModels/response/DataResponse.csServices/,IFileService.cs,FileService.csfrontend/src/features/image/useImage.jsimageView.jsOG issue: #1087
Review on #1184
Whats done
Reviewed PR #1184 for issue #1087, ImageView display image.
Tested on Windows using Chrome
fileServiceworks after rebuilding the Docker environment.http://localhost:8080/many?ContentType=image&Limit=4Inspected following files
frontend/src/features/image/ImageView.jsimageandPlease choose an image :).Choose an image, or place the instruction next to the dropdown.frontend/src/features/image/useImage.js.finally(...)usage.service/fileService/fileService/Endpoints/FileEndpoints.cs/manyendpoint works when tested directly.package.jsonWhat needs to be done
frontend/src/features/image/ImageView.jsChoose an image, instead of selecting the first image immediately.frontend/src/features/image/useImage.js.finally(...)usage.Conclusion
This PR is mostly for the functionality, I have for that reason not focused on the UI or persistance. I have fixed a default dropdown option so that an image doesnt load instantly, localisation, the .finally() and I switched one api call to use useApi for standardization
@b25marem is this ready to be merged?
I tested the PR again and most of the earlier review comments seem resolved now.
However, I still noticed that the selected image is not persisted after the card is added to the dashboard. The image preview works correctly before adding the card, but after the card is placed on the dashboard the image disappears and only the dropdown remains visible.
So there still seems to be an issue with saving/restoring the selected image state/configuration for the dashboard card.
@b25marem This will possibly be fixed later, we want to merge this as the presentation is tomorrow, thank you for the review and we will try to fix it!