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

MERGE PROFILE PAGE: #80

Merged
merged 18 commits into from
Oct 6, 2023
Merged

MERGE PROFILE PAGE: #80

merged 18 commits into from
Oct 6, 2023

Conversation

riblanc
Copy link
Contributor

@riblanc riblanc commented Oct 5, 2023

Add a basic profile page including:
Avatar upload.
Ability to change username.
Add a suffix when username already taken.
Add basic status management.

Close #66
Close #56

riblanc added 14 commits October 6, 2023 05:15
Add an avatar component, and use it on settings component.
Add a really basic profile page and component.
Add options on WrapperOptions on api plugin.
Add the serveStaticModule on appModule, in order to serves avatars folder
Rewrite createOrUpdate user method.
Add an upload avatar route, in order to upload files on avatars files.
Add upload avatar from profile or from settings pages.
Add a rule ignoring the "avatars" folder.
Added a global exception filter to return a 404 error when retrieving a non-existent image.
Provide a way to change username, catching already taken usernames.
Generate a suffix to already exist username during user creation (first login)
Add a Username component, to provide an easy way to display or custom username.
Fix navigator cache when posting a new image with the same mime/type as the older one by adding a suffix based on current timestamp.
Fix the ability to change our username through someone else profile page.
Add a basic status module with his service.
Update the user controller and chat gateway, in order to implement the basic status logic.
The get(/user/:id) will not return the user and his current status.
The gateway will notify each connected clients with an event `user:${id}:status` with the current status of a player connecting or disconnecting.
back/.gitignore Outdated Show resolved Hide resolved
Copy link
Contributor

@AdrianWeaver AdrianWeaver left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hey I asked a few questions on this PR. It's mostly in order to understand what is done even though it seems to be working as expected.
If you have time to explain here or when we're live I would appreciate.
I did not review the front files as I do not feel at ease to do it.

Add user status to profile page.
@riblanc riblanc changed the title ADD BASIC PROFILE PAGE WITH AVATAR UPLOAD: MERGE PROFILE PAGE: Oct 6, 2023
Update username validation rules for alphanumeric with hyphens and underscores.
Add the blur to all profiles (and not only ours)
Copy link
Contributor

@Elena-Lou Elena-Lou left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you for your quick work on this new feature

front/components/profile/avatar.vue Outdated Show resolved Hide resolved
front/components/profile/username.vue Outdated Show resolved Hide resolved
AdrianWeaver
AdrianWeaver previously approved these changes Oct 6, 2023
Copy link
Contributor

@AdrianWeaver AdrianWeaver left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm approving the back files.
When you're good with the front you can merge @Elena-Lou

front/components/profile/profile.vue Outdated Show resolved Hide resolved
front/components/profile/profile.vue Outdated Show resolved Hide resolved
Remove useless logs.

Co-authored-by: Elena-Lou <[email protected]>
@Elena-Lou Elena-Lou merged commit eaedff5 into main Oct 6, 2023
@Elena-Lou Elena-Lou deleted the ri/profile_page branch October 6, 2023 13:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add images in database Error 500 on double usernames
3 participants