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

Feat/images upload #77

Merged
merged 4 commits into from
Jul 15, 2024
Merged

Feat/images upload #77

merged 4 commits into from
Jul 15, 2024

Conversation

kjarret
Copy link
Collaborator

@kjarret kjarret commented Jul 15, 2024

No description provided.

@DavyR01 DavyR01 merged commit c4a0d38 into dev Jul 15, 2024
2 checks passed
@kjarret kjarret deleted the feat/images-upload branch July 17, 2024 19:41
DavyR01 added a commit that referenced this pull request Aug 1, 2024
* ci(test-e2e): 💚 Remove some tests

* feat(frontend): ✨ Add category and prices to CardProductRent

* fix(frontend): 🐛 Fix category name from CardProductRent

* fix(test-e2e): 🐛 change localhost to frontend

* feat: ✨ First iteration of the product details page

* fix: 🐛 Fix remotePatterns for images in next.config.js

* refactor: 💄 Update Layout component styling

* feat(frontend): ✨ Add products to home page section and add component LoadingProgress

* complete TU

* add port db docker compose

* Change general configuration and handle hot reload

* modification docker compose e2e

* Modification des Dockerfile

* change password docker compose e2e

* test

* clean code

* change port backend 4000 into 4001

* change port frontend 3000 into 3001

* change other ports

* add images for uploads

* modification handling picture card Product

* add default values if empty values in db

* Re arrange InputType backend

* add modification configuration

* add hot reload from pull project on windows and modification configuration

* change port postgres => 5434 : 5432

* fix(frontend): 🔥 Modify heartButton

* refactor(frontend): 📦 Remove Lyket from package.json

* ci: 🐛 change dockerfile in e2e

* change Dockerfile

* Change Dockerfile in e2e

* Set Dockerfile by default

* resolution conflits and dependances

* Fix/test workflows (#39)

* test(test-e2e): 🧪 Test GitHub Actions

* test(test-e2e): 🧪 Test GitHub Action

* test end-to-end

* feat(frontend): 💄 Add color to category (#41)

* Maj branche (#42)

* fix(frontend): 💄 Fix picture in cardProductRent (#43)

* fix(frontend): 💄 Fix picture in cardProductRent

* Remove Module CardProductRent

* establish port 5432 into 5434 and re-established other ports

* test staging

* change variable environnements 4000

* Fix/workflows docker test (#46)

* fix: 🐛 Change context defaut by context racine client

* Comment if in jest-ci.yml

* fix(many): 🐛 Build and push on 3 sides

* set default remove :client on context

* test context .

* separate docker push frontend & backend

* test

* feat: test-2

* test-3

* test-4

* test-5

* test-6

* fix: 🐛 Separate Build and push frontend & backend on test docker

* fix: 🐛 Fix/ CI Github Action

Docker build and push backend & frontend only staging branch

* Feat/filter-page-product-by-category (#47)

* feat(frontend): ✨ Add Filter Page product filtered by categoryid

* Add getProductsByCategoryId on resolvers and add page product filtered by categoryId

* feat(frontend): ✨ Add products filter by category

In click on category in CardProductRent products has been filtered by category

* feat(frontend): ✨ Add category name in filterPage

* fix(frontend): 🐛 Fix hover on category button

* Fix/main header add style (#48)

* style(frontend): 💄 Styling MainHeader

* feat(frontend): ✨ Add video on homepage

* Feat/authentification GitHub (#49)

* feat(frontend): ✨ Add NextAuth and register with github

* feat(frontend): ✨ Add login form

* fix(frontend): 🐛 removing .env from dockerignore

* Feat/add product from frontend (#50)

* style(frontend): 💄 Styling MainHeader

* feat(frontend): ✨ Add category on Select radix-ui

* style(frontend): 🐛 Fix categories select

* style(frontend): 💄 Add animation svg on select

* feat(frontend): ✨ Add CategorySelect component and add props to add product page

* fix mutation query

* product add form

* add toastify for add product form

* change the button submit to component button

* add Product via front end

---------

Co-authored-by: kjarret <jarretkenny@gmail.com>

* Feat/add category page (#51)

* test staging

* Add createNewCategoryPage

* add @isnotempty validator for category resolver

* add category page

* fix dev to remote dev

* Add list articles backoffice + add modal to remove one of them

* add articles from database

* handling delete article

* add path import root src in tsconfig.json

* add dropdown mainHeader

* Create categoriesFilter in productsPage and remove categories page

* add TODO component DeleteModal in productslist page

* create component DeleteModal in productslist

* clean code

* add scripts root for docker compose

* fix colors categories

* Feat/add backend cache with redis: 1502664284 (#56)

* feat(backend): ✨ Add cache server Redis to backend

* fix(backend): 🐛 change legacymode on redis client

* fix(test-e2e): 🐛 Add redis to docker compose test

* fix(backend): 🐛 removing legacy mode to test

* [FRONT] - Fix dropdown menu et replace categoryFilter :1504227809

* feat(many): ✨ Update product dts page, add missing db field and update search logic

* fix(backend): 🐛 Fix backend build errors

* fix(backend): 🐛 Fix backend build errors (#60)

* feat(many): 🐛 Fix multiples bugs

* fix(frontend): 🐛 Fix backoffice UI bugs

* Feat/add sections and register page (#65)

* feat(backend): ✨ Add user to backend

* feat(backend): ✨ Add resolvers, entity, input for user and admin in backend

* fix(backend): 🐛 comment admin to use admin query & mutations

* fix(backend): 🐛 fix login query

* feat(frontend): ✨ Add second section to main page

* feat(frontend): ✨ add contact-section page and backnavigation component

* feat(frontend): ✨ Modify style in login and add register page

* fix(backend): 🔥 remove line break

* Remove line break

* feat(frontend): ✨ Add BackNavigation to Products Details

* feat(frontend): ⚡ Change a tag to link with Next & icon dashboard to mainHeader

* Fix import index file backend

* fix(backend): 🐛 import checkAuth

* feat(many): ✨ Register an user in frontend

* refactor(backend): 🎨 Use service in resolvers files

* fix(backend): 🐛 Resolve bad import

* filter product on products page

* fix backNavigation

* move around class UserInfo into user resolver

* Modification validator register user

* delete auth with next auth github and google on form login

* add inputLoginUser

* add reset button for categories filter

* move object UserInfo

* style(frontend): 💄 Add margin to reset filter button

* delete nextauth and create context Layout

* test context and jwt

* change mutation loginuser into query

* add auth link in app

* add context jwt token index.js

* change profil page

* set up authChecker with context

* add contexts in comment

* add createContext && query LOGIN

* separate InputUserCreate and InputUserLogin

* add comments

* add authChecker and decorator @Authorized in product resolver

* Fix/refacto solvings error (#67)

* refactor(frontend): ♻️ Refacto and solving error in console

* fix(frontend): 🐛 solving bugs in productslist

* feat(frontend): ✨ Add props in backnavigation to control redirection

* fix(frontend): 🐛 Fix LoadingProgress

* Update info product via front

* fix variable naming errors and add &apos in Productslist

* delete session in _app.tsx

* modification form login and query login

* attempt to set jwt in local storage

* Modifiy parameters InputUserCreate in mutation for registerUser

* add toast login and register

* attempt to display pop up login success

* add restriction page addproducts redirection with router push

* set up context in resolver product

* transmit username in payload when login

* handle jwt local storage

* test dropdown menu profil and redirection

* clean code

* clean code and add TODOs

* feat(many): ✨ Add account query in backend and configure profile page

* test staging

* test staging

* test

* Add configuration deploy app

* recover ports docker-compose.e2e.yml

* Expose port Gateway nginX to 7000:80

* Add deploy_branch_main.sh

* Expose port Gateway nginX to 7000:80

* Edit links in README.md (#70)

Co-authored-by: Axel P <piglow19@gmail.com>

* delete logs useless folder

* CI / CD (#71)

* test staging

* test staging

* test

* Add configuration deploy app

* recover ports docker-compose.e2e.yml

* Expose port Gateway nginX to 7000:80

* Add deploy_branch_main.sh

* Expose port Gateway nginX to 7000:80

* delete logs useless folder

---------

Co-authored-by: Yilmaz Kadir <kadir-yilmaz_student2022@wilder.school>

* modif jest-ci

* feat(many): ✨ Add Cart and order via stripe

* modif jest-ci yml tags

* modif jest-ci yml & add Dockerfile.prod frontend and backend

* dockerfile prod

* test jest-ci & delete staging-client and staging-server

* add job front-test jest-ci pending

* add jest dependancies and script back and front

* modif jest-ci condition launching job docker

* change script test-e2e into test-playw

* change and add scripts package.json root

* change image name docker compose prod.yml

* change image name docker compose prod.yml 2

* add job redis in docker compose.yml

* modif docker compose prod.yml

* test playwright

* test playwright 2

* test playwright 3

* change env file docker compose e2e into .env.test (backend:4000)

* modif nginx and docker compose port adminer and uploadfiles

* add volume docker compose prod and add logs gitignore

* comment volume gateway nginx

* add modifiations docker compose and docker compose prod

* Change port gateway on service gateway in docker compose prod

* Change GATEWAY_PORT in .env.prod into 7000

* Modif imagesupload docker compose prod and nginx

* change script bash deploy_branch_main.sh and rename into fetch-and-deploy

* fix tests end-to-end

* Feat/images upload (#77)

* feat(many): ✨ Modify type of picture and add upload images to create product form

Modify picture type for an array of urls pictures and upload images from create product form

* feat(frontend): ✨ Upload image in create new product form

* add upload images in gitignore

* clean code and add comments

* fix scripts on package.json

* add title Wildrent in browser tab

* feat(many): ✨ Add CartPage and paiment via stripe

* modify folder Cart in cart

* modify folder Cart in cart

* edit folder cart

* fix: 🐛 change test e2e like dev

* fix: 🐛 Fix picture of product in cart and stripe

* fix: 🐛 Fix amount in stripe session

* feat(frontend): ✨ Input search product

* feat(many): ✨ Set limit of search product to redis cache

* fix(frontend): ⚡ Add refetch to home page and category select | fix add product form

* perf(frontend): ⚡ change to category component

* add changes on nginx.conf file for websockets issues

* test with env.prod file gateway service in production

* port gateway re-established

* add condition job docker on main branch in jest-ci

* add test e2e - login.spec.ts

* add changes in imageupload page

* Feat/integration-stripe (#79)

* feat(backend): ✨ Modify quantity of product

* feat: 🔐 Secrure stripe API key in env file and change style to cart page

* Stop tracking .env.apikey

* add changes in docker-compose.e2e.yml

* launching "pnpm i" in imagesupload folder

* add comments in Dockerfile e2e folder

* arrange frontend.spec.ts and comment login.spec.ts

* Teste2e 2 (#80)

Modification and add test in frontend.spec.ts file

* test e2e - 1 (#81)

* Test e2e with firefox (#82)

* test e2e

* test e2e - 2

* test e2e with firefox

* test e2e with firefox 2

* moove tests files

* Fix/error add product (#83)

* feat(frontend): 🔒 Add errors text to add product form

* refactor(frontend): 🗑️ delete useless file categoryColor.ts

* Feat/skeleton loading (#84)

* feat(frontend): ✨ Add Skeleton on loading of product

* feat(frontend): ✨ Create CartProduct loading skeleton component

* feat(frontend): ✨ Add query for info user

* feat(frontend): 🔒 add show backoffice icon to admin

* feat(frontend): ✨ add utils isAdmin and isLoggedIn and check & add security on admin pages

* fix(frontend): 🚚 edit import in MainHeader

* solve import error

* Configuration initial migration & add Makefle for Docker commands (#86)

* migration : change script in package.json

* Feature/migration (#87)

* migration : synchronize to false, comments fillDatabaseIfEmpty in index.ts temporarily

* migration : add absolute path for migrations

* organize old initial migration

* add other migratrions for datas

* feat(frontend): ⚡ Add reload on logout and login

* feat(frontend): ✨ Add BadAuthorization component and add restricted to add product page

* feat(many): ✨ Add user context

* feat(frontend): ✨ Add UserContext and fix toast on login

* test(test-e2e): ✅ Add new test to register and login account

* fix(test-e2e): 🐛 remove test write 2 times

* test(test-e2e): ✅ Fix some test

* handle role and authorization front & back with authchecker, userContext provider... Re arrange code

* fix bugs from conflics in merge

* fix test frontend spec

* fix bug

* feat(many): 🥅 Add message error on login page (#90)

* Change permission on "ajouter au panier" for admin

* Modification uppercase folder Cart into lowercase cart

* fix cartpage uppercase (#92)

* add env_file: .env.apikey
 in backend service docker compose prod

* fix(frontend): 🐛 Fix Category select like radix docs (#93)

* chore: 🧪 Test upload with imageupload

* fix: 🧪 modify to https url

* test: 🧪 test url add product form

* Add "s" to url

* revert: ⏪ Undo previous commit

* add changes dropdown categories filter and select (#94)

* re arrange code

* fix error

* change next version => 14.2.5

* upgrade version react and react-dom

* resolve console errors

---------

Co-authored-by: kjarret <jarretkenny@gmail.com>
Co-authored-by: Axel P <piglow19@gmail.com>
Co-authored-by: Yilmaz Kadir <112877912+MrRobo1@users.noreply.github.com>
Co-authored-by: kjarret <134682611+kjarret@users.noreply.github.com>
Co-authored-by: Yilmaz Kadir <kadir-yilmaz_student2022@wilder.school>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants