Skip to content
This repository has been archived by the owner on Sep 10, 2024. It is now read-only.

Rename 'Emails' route to 'Profile' #1567

Merged
merged 9 commits into from
Aug 25, 2023

Conversation

kerryarchibald
Copy link
Contributor

Fixes #1547

  • /account/emails -> /account/profile
  • rename 'Emails' nav item to 'Profile'
Screenshot 2023-08-23 at 17 07 18

@kerryarchibald kerryarchibald added the T-Enhancement New feature of request label Aug 23, 2023
@cloudflare-workers-and-pages
Copy link

cloudflare-workers-and-pages bot commented Aug 23, 2023

Deploying with  Cloudflare Pages  Cloudflare Pages

Latest commit: dd3ee20
Status: ✅  Deploy successful!
Preview URL: https://91929a61.matrix-authentication-service-docs.pages.dev
Branch Preview URL: https://kerry-1547-emails-profile-ro.matrix-authentication-service-docs.pages.dev

View logs

Copy link
Member

@sandhose sandhose left a comment

Choose a reason for hiding this comment

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

I don't it's worth keeping the match on /emails but other than that LGTM

@@ -99,8 +99,12 @@ const segmentsToRoute = (segments: string[]): Route => {
return { type: "home" };
}

// legacy support for /emails
Copy link
Member

Choose a reason for hiding this comment

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

I'm not sure this is needed tbh

@@ -183,8 +187,9 @@ const InnerRouter: React.FC = () => {
switch (route.type) {
case "home":
return <Home />;
case "email-list":
return <EmailList />;
// legacy
Copy link
Member

Choose a reason for hiding this comment

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

How is that legacy?

@kerryarchibald kerryarchibald merged commit c7311ee into main Aug 25, 2023
21 checks passed
@kerryarchibald kerryarchibald deleted the kerry/1547/emails-profile-route branch August 25, 2023 05:10
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
T-Enhancement New feature of request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Make "Emails" page into "Profile" (or similar)
2 participants