Skip to content

Update the label in the left sidebar when we have a single site running - #721

Merged
sejas merged 2 commits into
trunkfrom
update/side-bar-footer-label-single-site
Dec 5, 2024
Merged

Update the label in the left sidebar when we have a single site running#721
sejas merged 2 commits into
trunkfrom
update/side-bar-footer-label-single-site

Conversation

@sejas

@sejas sejas commented Dec 4, 2024

Copy link
Copy Markdown
Member

Related issues

  • Fixes pdtkmj-3a1-p2#comment-5982

could we update the Stop all link label to Stop when there is only one local site?

Proposed Changes

  • update the Stop all link label to Stop when there is only one site running

Testing Instructions

  • Run npm start
  • Start one site
  • Observe it says Stop in the left sidebar
  • Start a second site
  • Observe it says Stop all in the left sidebar
Before After
Screenshot 2024-12-04 at 21 20 19 Screenshot 2024-12-04 at 21 19 32

Pre-merge Checklist

  • Have you checked for TypeScript, React or other console errors?
@sejas
sejas requested a review from a team December 5, 2024 01:07
@sejas sejas self-assigned this Dec 5, 2024
@wojtekn

wojtekn commented Dec 5, 2024

Copy link
Copy Markdown
Contributor

I'm not convinced it's a good change. 🤷

@katinthehatsite katinthehatsite 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.

Functionality-wise, it works as expected for me and I can see the text changing based on whether I have one site or more sites running. One advantage that I spotted while testing this in other languages is that it makes the text shorter and that button generally looks better (for example, in Ukrainian) when only one site is running.

However, I can also see that functionality and related wording being meant for bulk managing the sites e.g. bulk stopping them.

I feel like it is more of a design decision rather than code review call. Let's tag @matt-west for an opinion.

That said, I am approving these changes because they work as expected.

@sejas

sejas commented Dec 5, 2024

Copy link
Copy Markdown
Member Author

I like subtle details like this one. I don’t have a strong opinion on this specific change.
I can see benefits, as it follows the “plural” of the left side: 1 site running - stop vs. 1 site running - stop all.
Agreed that @matt-west may have a more expert opinion than I do.

@matt-west

Copy link
Copy Markdown
Contributor

I like subtle details like this one.

So do I. Thanks for changing this @sejas. The details matter! :)

@wojtekn

wojtekn commented Dec 5, 2024

Copy link
Copy Markdown
Contributor

Thinking forward, if we add the ability to start all sites, it would make sense to return to the original wording so we have consistent 'Start all' and 'Stop all' actions.

@sejas

sejas commented Dec 5, 2024

Copy link
Copy Markdown
Member Author

Thinking forward, if we add the ability to start all sites, it would make sense to return to the original wording so we have consistent 'Start all' and 'Stop all' actions.

Agreed, we could change it back in the future if necessary. Maybe we don't even need to "start/stop" sites, and they are always up.

@sejas
sejas merged commit a5392f7 into trunk Dec 5, 2024
@sejas
sejas deleted the update/side-bar-footer-label-single-site branch December 5, 2024 14:20
@wojtekn wojtekn changed the title Update the label in the left sidebar when we hae a single site running Dec 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

4 participants