-
Notifications
You must be signed in to change notification settings - Fork 1
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
Stockage des médias dans Appwrite Storage au lieu de l'application #37
Open
luclu7
wants to merge
11
commits into
main
Choose a base branch
from
5-external-medias
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
…as sur Appwrite Storage dans un bucket
- Add react-error-boundary for robust image loading - Create ArtistImage component with suspense and error handling - Implement image preloading in PWA service worker - Add runtime caching for Appwrite storage assets - Refactor image loading logic to use Appwrite storage
✅ Deploy Preview for stamp-rally-devel ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
Deploying sedeto-vtube-stamp-rally with
|
Latest commit: |
7d9d78a
|
Status: | ✅ Deploy successful! |
Preview URL: | https://a68a587a.sedeto-vtube-stamp-rally.pages.dev |
Branch Preview URL: | https://5-external-medias.sedeto-vtube-stamp-rally.pages.dev |
…v et crash si mal config
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
C'est un peu une moyenne-grosse PR, mais promis, c'est pas trop compliqué.
Actuellement, les médias (les avatars des artistes) sont stockés dans
web/src/assets/avatars
, ce qui n'est pas terrible. Il a donc été décidé de migrer les assets dans le stockage proposé par Appwrite, pour être intégré avec le reste de l'application.Présentement, dans la table des standistes, il y a une entrée « image » qui contient le nom du fichier de leur avatar. On va alors réutiliser ce champ pour stocker l'identifiant de l'image dans Appwrite Storage.
Côté scripts
Création d'un fichier helper pour gérer l'upload et la suppression des avatars, lors de la création/suppression des utilisateurs.
Côté web
Passage du petit bricolage avec
import.meta.glob("/src/assets/avatars/*.jpg"
à un composant dédié qui affiche l'avatar de l'artiste, avec alt avec son nom, en fonction de son id et de son nom.Resolves #5