Skip to content
This repository was archived by the owner on Oct 4, 2023. It is now read-only.

[PAY-168] Redesign rest of notifications#1283

Merged
dylanjeffers merged 4 commits into
mainfrom
dj-pay-168-redesign-rest-of-notifications
May 4, 2022
Merged

[PAY-168] Redesign rest of notifications#1283
dylanjeffers merged 4 commits into
mainfrom
dj-pay-168-redesign-rest-of-notifications

Conversation

@dylanjeffers

@dylanjeffers dylanjeffers commented May 4, 2022

Copy link
Copy Markdown
Contributor

Description

Redesigns the rest of the notifications

  • RemixCosign
  • RemixCreate
  • Favorite
  • TierChange
  • Milestone
  • Challenge
  • UserSubscription
  • TrendingTrack

DuranDylan Co-signed your Remix of sample-3s remix

SILVER TIER UNLOCKED

You've earned 1 SAUDIO for completing this challenge!

DeeJay followed you

sample-3s remix by DeeJay

@audius-infra

Copy link
Copy Markdown
Collaborator

@rickyrombo rickyrombo left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

These look so pretty!! 😍

Comment on lines +39 to +41
{otherUsersCount > 0 ? messages.others(otherUsersCount) : null}
{messages.reposted}
{entityType.toLowerCase()}

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

nit: These all seem like part of one "message", can we have some method or something return a string with all of these templated together for clarity?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

yeah for sure! i was trying something out by putting it all in as react components, you think it's confusing ultimately? i guess it's hard to know that that is literally all just text huh? where it get's a lil tricky is when there is text that is also a link + tooltip, then i couldn't really template that in. thoughts?

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Yeah that's true... Generally I think having it all be one "message" makes it easier in the future for other translations to make it grammatically correct, otherwise the grammar is already baked in by the ordering of the rendered strings.

Just looked up https://react.i18next.com/latest/trans-component and maybe it's a non issue? Feel free to ignore for now and we can revisit when doing i18n

@@ -1,5 +1,5 @@
.root {
margin-right: 4px;
.rootLeftMargin {

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

to support RTL, should this be margin-inline-start?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

ohh that is genius great catch

<NotificationBody>
<EntityLink entity={entity} entityType={entityType} />
<span>{messages.by}</span>
<UserNameLink user={user} notification={notification} leftMargin />

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Feels like the previous span should have a margin-inline-end vs having a prop for left margin in UserNameLink?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

completely agree, was wigging out on how to do this, styling def aint my strongsuit

@dylanjeffers dylanjeffers merged commit c7cff2c into main May 4, 2022
@dylanjeffers dylanjeffers deleted the dj-pay-168-redesign-rest-of-notifications branch May 4, 2022 22:38
@sliptype sliptype mentioned this pull request May 13, 2022
@AudiusProject AudiusProject deleted a comment from linear Bot Sep 11, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants