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

Feature: Add chat actions #104

Merged
merged 11 commits into from
Nov 21, 2023
Merged

Feature: Add chat actions #104

merged 11 commits into from
Nov 21, 2023

Conversation

vcwild
Copy link
Collaborator

@vcwild vcwild commented Nov 17, 2023

Description

Adds chat actions tooltip

Closes #61

Copy link

vercel bot commented Nov 17, 2023

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
42-transcendence ✅ Ready (Inspect) Visit Preview 💬 Add feedback Nov 20, 2023 11:15pm

- add mock chats to seed database
- reenable auth guard
- add hooks to chat popover modal
- avoid server backend shutdown
@vcwild vcwild merged commit 41f0f96 into main Nov 21, 2023
4 checks passed
@vcwild vcwild deleted the feat/chat-actions branch November 21, 2023 23:36
iaurg pushed a commit that referenced this pull request Nov 23, 2023
* wip: add chat actions

* wip: add guards back to project

- add mock chats to seed database
- reenable auth guard
- add hooks to chat popover modal

* fix: update components

* fix: add owner to seeded chats

* fix: update seed to render chat owner

* fix: add warning to change user

* fix: add onloading state to component

* fix: drop exception handler

- avoid server backend shutdown

* feat: implement demote to member

* fix: lint files
vcwild added a commit that referenced this pull request Dec 5, 2023
* feat: add docker start into backend

* fix: import not declared into build

* feat: update docker based on nextjs example

* refactor: docker compose

* feat: add new configs into docker

* feat: add configure to make up for validation

* Feat/users status (#97)

* feat: add pino logger and update prisma to fix bug

* feat: add global logger

* feat: instantiate logger into chat

* refactor: remove dev container

* feat: move post create command

* refactor: simplify docker files

* feat: create a temporary db for dev

* refactor: move declarations

* refactor: logger configs

* feat: add status into user connection

* fix: default user status creation to offline

* feat: add status requests

* feat: return status and display name on leaderboard

* feat: update status component to use status from server

* feat: update user type and revalidate query

* Feat/83-image-upload (#86)

* feat: create avatar upload route

* wip: opening map to uploads folder

* feat: update avatar reference into user

* feat: create avatar upload route

* chore: add new todo

* feat: expose dir to be public

* feat: add new packages

* fix: duplicated avatar module

* fix: token flow over websocket

* refactor: remove not used query

* feat: add option to upload avatar in frontend

* feat: rebase conflicts

* refactor: remove files

* Feat/user friends (#92)

* feat: start user friends feature

* chore: add uploads folder into gitignore

* feat: create simple friend request functional

* feat: add option to add,remove and list friends on front

* feat: add global logger

* feat: create a temporary db for dev

* feat: add statuses into list friend

* Feat/83-image-upload (#86)

* feat: create avatar upload route

* wip: opening map to uploads folder

* feat: update avatar reference into user

* feat: create avatar upload route

* chore: add new todo

* feat: expose dir to be public

* feat: add new packages

* fix: duplicated avatar module

* fix: token flow over websocket

* refactor: remove not used query

* feat: add option to upload avatar in frontend

* feat: rebase conflicts

* refactor: remove files

* feat: add pino logger and update prisma to fix bug

* Feat/83-image-upload (#86)

* feat: create avatar upload route

* wip: opening map to uploads folder

* feat: update avatar reference into user

* feat: create avatar upload route

* chore: add new todo

* feat: expose dir to be public

* feat: add new packages

* fix: duplicated avatar module

* fix: token flow over websocket

* refactor: remove not used query

* feat: add option to upload avatar in frontend

* feat: rebase conflicts

* refactor: remove files

* feat: add global logger

* fix: rollback argon2

* feat: add data into ignore

* fix: build error

* fix: duplicated value after merge

* fix: duplicated import

* fix: hardcoded localhost game socket (#106)

* fix: hardcoded localhost game socket

* fix: localhost hardcoded chat

* Feature: Add chat actions (#104)

* wip: add chat actions

* wip: add guards back to project

- add mock chats to seed database
- reenable auth guard
- add hooks to chat popover modal

* fix: update components

* fix: add owner to seeded chats

* fix: update seed to render chat owner

* fix: add warning to change user

* fix: add onloading state to component

* fix: drop exception handler

- avoid server backend shutdown

* feat: implement demote to member

* fix: lint files

* fix: chat width (#113)

* Fix: Remove some bugs from chat context (#110)

* fix: remove bugs

- remove bug for chat gateway
- fix bug where user was able to find promote to admin button

* fix: remove a few more bugs from chat

- add mute block handler when trying to send messages when the user is muted
- simplify channelpopover handler logic

---------

Co-authored-by: Italo A <[email protected]>

* fix: downgrade nextjs

* feat: update packages and configs

* feat: update examples

* feat: add restart into backend image

* docs: add seed and reset example

* fix: update command based on pdf

* chore: update locj

* chore: update nextjs

* refactor: backend fast startup

* Updates docker deployment details
- Bumps node version to 20 (LTS)
- Separates into multi-stage dev/build/prod
- Updates prisma to work in latest alpine
- Bumps backend package versions

* Updates deployment details
## Backend
- Updates backend database migration
- Replaces backend wildcard CORS to FRONTEND_URL
- Updates backend Dockerfile to use an entrypoint script
## Frontend
- Reverts API to `with_credentials`for proper cookie handling
- Bumps package versions
- Moves types/lint packages to devDependencies
- Adds multi-stage Dockerfile to production recommendations
## Docker Compose
- Replaces restart policy to `unless-stopped`
- Adds named volumes
- Removes frontend volumes
- Fixes frontend internal port to match external port

* Simplifies backend entrypoint

* chore: updates lockfile

* Enables docker entrypoint again
- Adds database url in the entrypoint to simplify prisma setup

---------

Co-authored-by: Victor Wildner <[email protected]>
Co-authored-by: Juliano <[email protected]>
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.

Implementar kick, ban e mute um usuário
2 participants