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(website): profile pictures #186

Merged
merged 24 commits into from
Jan 14, 2024

Conversation

lennartkloock
Copy link
Member

Proposed changes

This pr implements website support for profile pictures.

Including:

  • Displaying and subscribing to changes
  • Uploading profile pictures
  • Removing profile pictures

Types of changes

What types of changes does your code introduce to Scuffle?
Put an x in the boxes that apply

  • Bugfix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • Documentation Update (if none of the other choices apply)

Checklist

Put an x in the boxes that apply. You can also fill these out after creating the PR. If you're unsure about any of them, don't hesitate to ask. We're here to help! This is simply a reminder of what we are going to look for before merging your code.

  • I have read the CONTRIBUTING doc
  • Lint and unit tests pass locally with my changes
  • I have added tests that prove my fix is effective or that my feature works
  • I have added necessary documentation (if appropriate)
  • Any dependent changes have been merged and published in downstream modules

Further comments

Copy link
Member

@TroyKomodo TroyKomodo left a comment

Choose a reason for hiding this comment

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

looks good

@lennartkloock lennartkloock requested a review from a team as a code owner January 12, 2024 23:29
@lennartkloock lennartkloock marked this pull request as draft January 13, 2024 00:29
@IS2511
Copy link
Member

IS2511 commented Jan 13, 2024

The slash in parenthesis of the commit message is for sure not to format. Please choose one or remove the parenthesis entirely if the scope is global.

@lennartkloock
Copy link
Member Author

lennartkloock commented Jan 13, 2024

The slash in parenthesis of the commit message is for sure not to format. Please choose one or remove the parenthesis entirely if the scope is global.

Because this is a mono repo the scope is not global most of the time. What scope would you suggest for platform/website or platform/api?

Edit: I can't just write api because we have a video api and a platform api. And I can't just write platform because we have platform website and platform api

@lennartkloock lennartkloock marked this pull request as ready for review January 13, 2024 18:25
Copy link
Contributor

@4w3Official 4w3Official left a comment

Choose a reason for hiding this comment

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

lgtm

@IS2511
Copy link
Member

IS2511 commented Jan 13, 2024

@lennartkloock Hmm, I've googled around a bit and it looks like dashes are generally uhhh ok, probably.

Conventional Commits is strongly against anything but a single word:

A scope MAY be provided after a type. A scope MUST consist of a noun describing a section of the codebase surrounded by parenthesis, e.g., fix(parser):

Karma Style is indifferent:

Example <scope> values:

  • web-server

I personally like the slash, it clearly conveys the intent - "part of" or a "subdirectory", instead of just "component name". A dash is a compromise I'm willing to accept (e.g. platform-api).

On a related note, I think the prefix of the commit message is getting too long with that subject name ij general. Maybe we should name the components somehow and use that shorter name? How about shortening website to web? Not much help though... Still, shorter is better in this case IMO.

@IS2511
Copy link
Member

IS2511 commented Jan 13, 2024

I just noticed the image_processor commits. Not sure how I feel about that underscore... Probably negatively. If those will be squashed anyway then it doesn't matter much.

@lennartkloock
Copy link
Member Author

@IS2511 I'll just leave out platform/ or video/ in the future. I guess that's enough because apart from api all components have unique names anyway

@lennartkloock lennartkloock changed the title feat(platform/website): profile pictures feat(platform): profile pictures Jan 14, 2024
@TroyKomodo TroyKomodo force-pushed the lennart/platform-profile-pictures branch from 7d207e0 to c4e6e3e Compare January 14, 2024 18:06
@TroyKomodo TroyKomodo force-pushed the lennart/platform-profile-pictures branch from c4e6e3e to 9ec97dc Compare January 14, 2024 18:27
@TroyKomodo TroyKomodo force-pushed the lennart/platform-profile-pictures branch from 9ec97dc to 420707a Compare January 14, 2024 18:39
Copy link

codecov bot commented Jan 14, 2024

Codecov Report

Attention: 277 lines in your changes are missing coverage. Please review.

Comparison is base (cf18151) 46.71% compared to head (420707a) 46.44%.

Additional details and impacted files
@@                 Coverage Diff                 @@
##           feature/website     #186      +/-   ##
===================================================
- Coverage            46.71%   46.44%   -0.27%     
===================================================
  Files                  486      486              
  Lines                30831    31035     +204     
===================================================
+ Hits                 14402    14415      +13     
- Misses               16429    16620     +191     
Files Coverage Δ
ffmpeg/src/scalar.rs 89.36% <100.00%> (ø)
platform/api/src/api/v1/gql/subscription/chat.rs 0.00% <ø> (ø)
video/api/src/api/events/ack.rs 58.69% <100.00%> (ø)
platform/api/src/api/v1/gql/subscription/mod.rs 0.00% <0.00%> (ø)
platform/api/src/api/v1/gql/subscription/user.rs 0.00% <0.00%> (ø)
platform/api/src/subscription.rs 0.00% <0.00%> (ø)
platform/api/src/api/v1/gql/models/image_upload.rs 0.00% <0.00%> (ø)
platform/api/src/api/v1/gql/models/user.rs 0.00% <0.00%> (ø)
platform/api/src/api/v1/upload/mod.rs 0.00% <0.00%> (ø)
platform/api/src/config.rs 0.00% <0.00%> (ø)
... and 9 more

... and 1 file with indirect coverage changes

@lennartkloock lennartkloock changed the title feat(platform): profile pictures feat(website): profile pictures Jan 14, 2024
@lennartkloock lennartkloock merged commit 2fa70b4 into feature/website Jan 14, 2024
6 of 8 checks passed
@lennartkloock lennartkloock deleted the lennart/platform-profile-pictures branch January 14, 2024 19:06
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.

4 participants