Skip to content

Conversation

@xristos3490
Copy link
Member

@xristos3490 xristos3490 commented Sep 16, 2022

Closes #34711

Description

This PR adds a task header for the "Add store details" task item in the setup list.

Acceptance

  1. Setup a new WooCommerce store.
  2. Skip the Setup Wizard.
  3. Navigate to WooCommerce > Home
  4. The task header is missing. See:

Screenshot 2022-09-22 at 5 14 02 PM

Expected result:
Screenshot 2022-09-22 at 5 13 16 PM

More info peapX7-jn-p2

Next steps

Needs design feedback.

@github-actions github-actions bot added focus: react admin plugin: woocommerce Issues related to the WooCommerce Core plugin. labels Sep 16, 2022
@github-actions
Copy link
Contributor

github-actions bot commented Sep 16, 2022

Test Results Summary

Commit SHA: 3aa9de6

Test 🧪Passed ✅Failed 🚨Broken 🚧Skipped ⏭️Unknown ❔Total 📊Duration ⏱️
API Tests11800201200m 51s
E2E Tests185002018713m 16s
To view the full API test report, click here.
To view the full E2E test report, click here.
To view all test reports, visit the WooCommerce Test Reports Dashboard.

@adrianduffell adrianduffell requested a review from a team September 21, 2022 09:21
@chihsuan chihsuan requested a review from verofasulo September 21, 2022 11:07
@chihsuan
Copy link
Member

Hey @xristos3490 Thanks for adding the header! Could you please add some test instructions as you added in #34697? Thank you!

@chihsuan
Copy link
Member

BTW, e2e tests gh action is failing. I think you can try rebasing the branch. 🙂

@xristos3490 xristos3490 force-pushed the add/store-details-header branch from afd26c2 to 06f63c1 Compare September 21, 2022 19:44
@chihsuan
Copy link
Member

Needs design feedback.

Hey @verofasulo When you get a chance, could you confirm if the design look good? Thanks! 🙏

chihsuan
chihsuan previously approved these changes Sep 22, 2022
Copy link
Member

@chihsuan chihsuan left a comment

Choose a reason for hiding this comment

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

@xristos3490 Thanks for adding the missing header. Code changes look good and tested well. 💯

@verofasulo
Copy link

Hey @chihsuan, thanks for the ping!

could you confirm if the design look good?

The header looks great! The only thing misaligned with what Jarek designed is the section with the progress bar - I attach a screenshot:

image

Figma: ZP87x6cY7eOHkfKVXwh1hQ-fi-2%3A1126

@xristos3490
Copy link
Member Author

xristos3490 commented Sep 22, 2022

Hey @verofasulo!

The header looks great! The only thing misaligned with what Jarek designed is the section with the progress bar.

Thanks for raising this concern! I was skeptical about it, too. It seems that a recent work to fix the header in the sidebar introduced a white box around this stepper.

I wrote about the sidebar styling issue in an internal discussion with @chihsuan. Should we revisit?

More at peapX7-jn-p2#comment-218

PS. Another minor change in the description differs from the Figma file, as this step doesn't include any "industry" fields, only the store location.

@verofasulo
Copy link

Hey @xristos3490

I wrote about the sidebar styling issue in an internal discussion with @chihsuan. Should we revisit?

Yes, please 😊 The current style makes them appear as two different sections while they both belong to the task list area. Thank you!

PS. Another minor change in the description differs from the Figma file, as this step doesn't include any "industry" fields, only the store location.

You're right, I didn't notice it! Please do not implement the "industry" part - refer to the initial design with the store address only for the copy 🙏

@chihsuan
Copy link
Member

Yes, please 😊 The current style makes them appear as two different sections while they both belong to the task list area. Thank you!

Ah, as @verofasulo said. ⬆️ Thanks for catching that! @xristos3490 🙏

@xristos3490
Copy link
Member Author

xristos3490 commented Sep 22, 2022

Thanks for all the help, everyone! 🙇

I've pushed a minor CSS fix that should revert the progress header style. Here's how it looks right now in the Home page and in the activity sidebar:

Screenshot 2022-09-22 at 12 30 31 PM

Screenshot 2022-09-22 at 12 31 03 PM

I wonder if there is an issue with the line-height in the sidebar's header?

As a side note, the progress value seems to have this blue hardcoded. Is that on purpose? Should we consider changing this to the theme's primary color?

e.g. on Ecommerce plan change this:

Screenshot 2022-09-22 at 12 10 07 PM

to this:

Screenshot 2022-09-22 at 12 09 54 PM

Note: Ignore the dots menu; it shouldn't be there.

Thoughts?

@ilyasfoo
Copy link
Contributor

ilyasfoo commented Sep 22, 2022

Hey, @xristos3490! Thanks for catching the header issue. I noticed that the ellipsis next to the header are also hidden. I believe this was caused by this commit, which I think was intended but possibly mismatched the design.

Edit: Sorry if this is a bit too much, but feel free to skip this comment if you think it's better to address this elsewhere 😅

@xristos3490
Copy link
Member Author

Hey @ilyasfoo! Thanks for chiming in!

Nice catch! The dots menu needs to be there.

It's done at bc5a848

@xristos3490
Copy link
Member Author

I've pushed a commit to align the dots menu in the sidebar. This led to a tiny refactor to keep all the sidebar-related rules in one place. Please let me know what you think!

This new structure led to fixing a priority-related bug for the h1 rules for the sidebar.

Ref screenshot:

I wonder if there is an issue with the line-height in the sidebar's header? -- #34712 (comment)

Here's what the sidebar looks like now: 😃

Screenshot 2022-09-22 at 5 12 59 PM

@chihsuan
Copy link
Member

As a side note, the progress value seems to have this blue hardcoded. Is that on purpose? Should we consider changing this to the theme's primary color?

@xristos3490 I think we should change it to the theme's primary color. cc @verofasulo

Here's what the sidebar looks like now: 😃

Thanks for fixing it! That looks perfect. 😄

@verofasulo
Copy link

I think we should change it to the theme's primary color

Yes, totally! Thanks for spotting that @xristos3490 @chihsuan 🙌

Copy link
Member

@chihsuan chihsuan left a comment

Choose a reason for hiding this comment

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

@xristos3490 I saw you've updated the progress bar color. Awesome work! LGTM. 🚢

@xristos3490
Copy link
Member Author

Thanks for all the help, @chihsuan!

@xristos3490 xristos3490 merged commit 63aa382 into trunk Sep 26, 2022
@xristos3490 xristos3490 deleted the add/store-details-header branch September 26, 2022 12:19
@github-actions github-actions bot added this to the 7.1.0 milestone Sep 26, 2022
@github-actions
Copy link
Contributor

Hi @xristos3490, thanks for merging this pull request. Please take a look at these follow-up tasks you may need to perform:

  • Add the release: add testing instructions label

@chihsuan chihsuan modified the milestones: 7.1.0, 7.0.0 Sep 30, 2022
github-actions bot pushed a commit that referenced this pull request Sep 30, 2022
…34712)

* Add store-details task header and ensure the aid is disabled when task is completed

* Add an illustration

* Update the texts

* Add changelog

* Revisit progress header styles

* Bring back ellipsis menu

* Align the ellipsis menu on the baseline

* Give some room to the badge in the sidebar

* Update progress bar color with variable
@chihsuan chihsuan added the release: cherry-pick Commits from this PR also needs to be added to current release branch. label Sep 30, 2022
roykho pushed a commit that referenced this pull request Sep 30, 2022
* Add a header for the "Add store details" task in woocommerce admin (#34712)

* Add store-details task header and ensure the aid is disabled when task is completed

* Add an illustration

* Update the texts

* Add changelog

* Revisit progress header styles

* Bring back ellipsis menu

* Align the ellipsis menu on the baseline

* Give some room to the badge in the sidebar

* Update progress bar color with variable

* Prep for cherry pick 34712

Co-authored-by: Chris Lilitsas <[email protected]>
Co-authored-by: WooCommerce Bot <[email protected]>
@roykho roykho removed the release: cherry-pick Commits from this PR also needs to be added to current release branch. label Sep 30, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

plugin: woocommerce Issues related to the WooCommerce Core plugin.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add a header for the "Add store details" task in woocommerce admin

6 participants