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

batches: display note in dropdown if rollout windows are configured#50608

Merged
adeola-ak merged 4 commits into
mainfrom
aa/rollout-notice
Apr 20, 2023
Merged

batches: display note in dropdown if rollout windows are configured#50608
adeola-ak merged 4 commits into
mainfrom
aa/rollout-notice

Conversation

@adeola-ak

@adeola-ak adeola-ak commented Apr 13, 2023

Copy link
Copy Markdown
Contributor

closes #48217

checks if rollout windows are configured and displays a note about how changesets are processed if they are

CleanShot 2023-04-13 at 13 55 16@2x

Test plan

Test with and without changesets to see the note

App preview:

Check out the client app preview documentation to learn more.

@cla-bot cla-bot Bot added the cla-signed label Apr 13, 2023
@adeola-ak adeola-ak requested a review from a team April 13, 2023 17:59
@sourcegraph-bot

sourcegraph-bot commented Apr 13, 2023

Copy link
Copy Markdown
Contributor

Codenotify: Notifying subscribers in CODENOTIFY files for diff 9b3d612...87d8077.

Notify File(s)
@BolajiOlajide client/web/src/enterprise/batches/DropdownButton.tsx
@courier-new client/web/src/enterprise/batches/DropdownButton.tsx
@eseliger client/web/src/enterprise/batches/DropdownButton.tsx

@sg-e2e-regression-test-bob

sg-e2e-regression-test-bob commented Apr 13, 2023

Copy link
Copy Markdown

Bundle size report 📦

Initial size Total size Async size Modules
0.00% (0.00 kb) 0.00% (+0.33 kb) 0.00% (+0.33 kb) 0.00% (0)

Look at the Statoscope report for a full comparison between the commits 87d8077 and 9b3d612 or learn more.

Open explanation
  • Initial size is the size of the initial bundle (the one that is loaded when you open the page)
  • Total size is the size of the initial bundle + all the async loaded chunks
  • Async size is the size of all the async loaded chunks
  • Modules is the number of modules in the initial bundle

Comment thread client/web/src/enterprise/batches/DropdownButton.tsx Outdated
Comment thread client/web/src/enterprise/batches/DropdownButton.tsx
@adeola-ak adeola-ak requested a review from BolajiOlajide April 19, 2023 05:12

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

CleanShot 2023-04-20 at 16 21 34@2x

Looks good. Thanks for the fix.

@adeola-ak adeola-ak merged commit 72b6fe0 into main Apr 20, 2023
@adeola-ak adeola-ak deleted the aa/rollout-notice branch April 20, 2023 17:35
{action.type === 'publish' && batchChangesRolloutWindows && batchChangesRolloutWindows.length > 0 ? (
<small>
{action.dropdownDescription} <br />
<b>

@courier-new courier-new Apr 25, 2023

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.

Omg sorry I hate to be this person haha but I think we want <strong> here instead of <b>. <b> is mostly for stylistic bold text. It conveys no extra importance or emphasis. <strong> should be used for important text that should be emphasized, and screen readers will convey this as more important text. In this case the note is something we want to emphasize, not just something we're styling differently.

</H4>
<Text className="text-wrap text-muted mb-0">
<small>{action.dropdownDescription}</small>
{action.type === 'publish' && batchChangesRolloutWindows && batchChangesRolloutWindows.length > 0 ? (

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.

Separately (and again, I regret only getting this feedback to you after you've merged this 🙈), but I think we want this on the publish as draft action type as well.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add text to actions-on-apply dropdown menu items when rollout windows are configured

5 participants