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

(re)Show "join common" button in about page (for root common) #2217 #2219

Merged
merged 5 commits into from
Oct 25, 2023

Conversation

roienatan
Copy link
Collaborator

@roienatan roienatan commented Oct 19, 2023

  • PR title equals to the ticket name
  • I added the ticket to the Development section of this PR.

What was changed?

  • about page root common: show join common button
  • CommonTopNavigation and MembershipRequestIntroduce join button are now pink (instead of old purple design)
  • "Join via" is now a button and not a link.

@netlify
Copy link

netlify bot commented Oct 19, 2023

Deploy Preview for preview-common ready!

Name Link
🔨 Latest commit 14c3192
🔍 Latest deploy log https://app.netlify.com/sites/preview-common/deploys/653687b49a71e9000814ee06
😎 Deploy Preview https://deploy-preview-2219--preview-common.netlify.app/
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

@roienatan roienatan linked an issue Oct 19, 2023 that may be closed by this pull request
@roienatan
Copy link
Collaborator Author

Need to verify the below things: @andreymikhadyuk

  • I'm not sure we use or need withJoinRequest at all. See in src/pages/common/components/CommonTabPanels/components/AboutTab/components/CommonEntranceInfo/components/CommonEntranceJoin/CommonEntranceJoin.tsx
  • Why do we need rootCommonMember and parentCommonMember for isJoinAllowed in src/pages/common/providers/CommonData/CommonData.tsx? They are null when a user is not member of the common hence isJoinAllowed is false so I had to remove them. I don't understand why we need this.

@roienatan roienatan linked an issue Oct 22, 2023 that may be closed by this pull request
@andreymikhadyuk
Copy link
Collaborator

@roienatan

  1. I see that withJoinRequest is in use, why do we need to remove it?
  2. I think you are correct and we also should update isProject && parentCommonMember && !commonMember to isProject && rootCommonMember && parentCommonMember && !commonMember. @elatif2020 Am I correct that we should allow join in project only when we are a member of root and parent commons?

@elatif2020
Copy link
Collaborator

@roienatan

1. I see that `withJoinRequest` is in use, why do we need to remove it?

2. I think you are correct and we also should update `isProject && parentCommonMember && !commonMember` to `isProject && rootCommonMember && parentCommonMember && !commonMember`. @elatif2020 Am I correct that we should allow join in project only when we are a member of root and parent commons?

2 - yes it is correct (for now)

@roienatan
Copy link
Collaborator Author

@roienatan

  1. I see that withJoinRequest is in use, why do we need to remove it?
  2. I think you are correct and we also should update isProject && parentCommonMember && !commonMember to isProject && rootCommonMember && parentCommonMember && !commonMember. @elatif2020 Am I correct that we should allow join in project only when we are a member of root and parent commons?

@andreymikhadyuk specifically in CommonEntranceJoin it's not in use now, at least I don't see the use of it.

@roienatan roienatan marked this pull request as ready for review October 23, 2023 09:24
@andreymikhadyuk
Copy link
Collaborator

@roienatan

  1. I see that withJoinRequest is in use, why do we need to remove it?
  2. I think you are correct and we also should update isProject && parentCommonMember && !commonMember to isProject && rootCommonMember && parentCommonMember && !commonMember. @elatif2020 Am I correct that we should allow join in project only when we are a member of root and parent commons?

@andreymikhadyuk specifically in CommonEntranceJoin it's not in use now, at least I don't see the use of it.

image

@roienatan
Copy link
Collaborator Author

@roienatan

  1. I see that withJoinRequest is in use, why do we need to remove it?
  2. I think you are correct and we also should update isProject && parentCommonMember && !commonMember to isProject && rootCommonMember && parentCommonMember && !commonMember. @elatif2020 Am I correct that we should allow join in project only when we are a member of root and parent commons?

@andreymikhadyuk specifically in CommonEntranceJoin it's not in use now, at least I don't see the use of it.

image

@andreymikhadyuk I know I removed it, but I'm not sure about the purpose of this. I reverted it anyway.

@roienatan roienatan merged commit 8d633f9 into dev Oct 25, 2023
5 checks passed
@roienatan roienatan deleted the cw-2217-about-root-common-join-button branch October 25, 2023 09:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
4 participants