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

[teams] don't show error if already in team #5960

Merged
merged 1 commit into from
Oct 1, 2021

Conversation

AlexTugarev
Copy link
Member

@AlexTugarev AlexTugarev commented Sep 30, 2021

Description

Directly redirect to the team if following an invitation link but already part of the team.

Related Issue(s)

Fixes #5925

How to test

Release Notes

NONE

@AlexTugarev
Copy link
Member Author

AlexTugarev commented Sep 30, 2021

/werft run

👍 started the job as gitpod-build-alex-redirect-users-to-the-members-5925.1

@AlexTugarev AlexTugarev force-pushed the alex/redirect-users-to-the-members-5925 branch from 4247fed to df8e0a5 Compare September 30, 2021 14:08
@AlexTugarev AlexTugarev marked this pull request as ready for review September 30, 2021 14:08
@AlexTugarev AlexTugarev requested review from jankeromnes and gtsiolis and removed request for svenefftinge and JanKoehnlein September 30, 2021 14:08
@gtsiolis gtsiolis added component: dashboard feature: teams and projects [DEPRECATED] Please, use feature: organizations or feature: projects labels instead. team: webapp Issue belongs to the WebApp team labels Sep 30, 2021
@gtsiolis
Copy link
Contributor

gtsiolis commented Sep 30, 2021

Looking at this now! 👀

Copy link
Contributor

@gtsiolis gtsiolis left a comment

Choose a reason for hiding this comment

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

UX works great, @AlexTugarev! ↩️

Left one comment regardingt the page we redirect below.

Approving to unblock merging but holding in case changing the redirect URL sounds better here.

/hold

const match = message && regExp.exec(message);
if (match && match[1]) {
const slug = match[1];
history.push(`/t/${slug}`);
Copy link
Contributor

@gtsiolis gtsiolis Sep 30, 2021

Choose a reason for hiding this comment

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

question: This redirects you to the team's workspaces page. Do you think it's more confusing to redirect to the members list instead as described in #5925?

However, redirecting to the team or members list sounds like a good MVC.

Copy link
Member Author

Choose a reason for hiding this comment

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

Dunno. Let's redirect to the Members list instead. I'll ping you for a ✅

Copy link
Member Author

Choose a reason for hiding this comment

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

Done. Please have another look

Copy link
Contributor

Choose a reason for hiding this comment

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

Looking at this now! 👀

@roboquat
Copy link
Contributor

LGTM label has been added.

Git tree hash: 9ab15d60d0449d3d6886c3667045f192dfd2f95f

@AlexTugarev AlexTugarev force-pushed the alex/redirect-users-to-the-members-5925 branch from df8e0a5 to e84990e Compare October 1, 2021 06:58
@roboquat roboquat removed the lgtm label Oct 1, 2021
Copy link
Contributor

@gtsiolis gtsiolis left a comment

Choose a reason for hiding this comment

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

Working like a charm, @AlexTugarev!

thought: I think it makes sense to go with the redirection to the members page as 🅰️ this is the existing behavior when joining a team for the first time and 🅱️ this provides some feedback to the user about the link they clicked as currently there's no other visual feedback like a toast notificaton.

Approving to ublocking merging but holding in case this needs someone to take a closer look at the code changes.

/hold

@roboquat roboquat added the lgtm label Oct 1, 2021
@roboquat
Copy link
Contributor

roboquat commented Oct 1, 2021

LGTM label has been added.

Git tree hash: 0633ee7a5c48b1e9e055f80c18bfdabef4dada4e

@AlexTugarev
Copy link
Member Author

/approve

@roboquat
Copy link
Contributor

roboquat commented Oct 1, 2021

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: AlexTugarev, gtsiolis

Associated issue: #5925

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@AlexTugarev
Copy link
Member Author

/hold cancel

@roboquat roboquat merged commit 200952a into main Oct 1, 2021
@roboquat roboquat deleted the alex/redirect-users-to-the-members-5925 branch October 1, 2021 08:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved component: dashboard feature: teams and projects [DEPRECATED] Please, use feature: organizations or feature: projects labels instead. release-note-none size/S team: webapp Issue belongs to the WebApp team
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Redirect users to the members list when trying to join a team they have already joined
3 participants