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

Provide translated list of goals to be displayed by the "Goals Capture Step" screen #63961

Merged
merged 4 commits into from
May 25, 2022

Conversation

mashikag
Copy link
Contributor

Creating a hook that will provide a list of translated 'goals' that are to be displayed in the "Capture Goals" step of the setup flow.

Changes proposed in this Pull Request

  • new goals step hook to provide a list of translated goals that are to be displayed in the new Capture Goals screen

Testing instructions

No real testing instructions for this. As long as it does not regress any current functionality, it should introduce no changes to the current UI.

The hook will be verified at the time of implementing the new Capture Goals screen which will consume the returned data.

Related to #63959

Creating a hook that will provide a list of translated 'goals' that are to be displayed in the "Capture Goals" step of the setup flow.
@mashikag mashikag requested a review from a team May 24, 2022 13:07
@matticbot matticbot added [Status] Needs Review The PR is ready for review. This also triggers e2e canary tests and wp-desktop tests automatically. labels May 24, 2022
@github-actions
Copy link

github-actions bot commented May 24, 2022

@mashikag mashikag linked an issue May 24, 2022 that may be closed by this pull request
@matticbot
Copy link
Contributor

This PR does not affect the size of JS and CSS bundles shipped to the user's browser.

Generated by performance advisor bot at iscalypsofastyet.com.

@ivan-ottinger
Copy link
Contributor

Just one observation comment: I see we are putting the files inside client/signup/steps/goals/. In our other PR (#63866) we used client/signup/steps/goals-step/ (similarly to intent-step), but I prefer simpler goals directory as is used in this PR. 👍🏼

→ We will adjust the directory in #63866.

- Rename useIntents to useGoals hook
- Re-order GoalKey values
- Use `key` and `title` instead of `id` and `label` as keys of Goal type object
@ivan-ottinger
Copy link
Contributor

While looking at the file locations again today, there's one thing that's not clear to me.

My understanding was that our new Goals step will live in client/landing/stepper/declarative-flow/internals/steps-repository/goals/. But in this PR we are putting the files inside client/signup/steps/goals instead. 🤔

@mashikag mashikag requested a review from yansern May 25, 2022 09:33
@mashikag
Copy link
Contributor Author

While looking at the file locations again today, there's one thing that's not clear to me.

My understanding was that our new Goals step will live in client/landing/stepper/declarative-flow/internals/steps-repository/goals/. But in this PR we are putting the files inside client/signup/steps/goals instead. 🤔

You are right @ivan-ottinger ! Let me fix the directory. 👍

@yansern
Copy link
Contributor

yansern commented May 25, 2022

Yup, /client/signup for /start, and /client/landing/stepper for all the stepper stuff.

And as to where things should be placed, not too worried at the moment, one could argue the hook could be inside /client/landing/stepper/hooks. I think this PR is good to go.

@mashikag mashikag added [Status] Reviewer Approved and removed [Status] Needs Review The PR is ready for review. This also triggers e2e canary tests and wp-desktop tests automatically. labels May 25, 2022
@mashikag mashikag merged commit 6125d79 into trunk May 25, 2022
@mashikag mashikag deleted the add/onboarding-goals-hook branch May 25, 2022 12:14
@a8ci18n
Copy link

a8ci18n commented May 25, 2022

This Pull Request is now available for translation here: https://translate.wordpress.com/deliverables/7331366

Hi @mashikag, could you please edit the description of this PR and add a screenshot for our translators? Ideally it'd include all of the following strings:

  • Write and publish
  • Sell goods or products
  • Promote myself or my business
  • Hire a professional to design my website
  • Import my existing website content

Thank you in advance!

@that-mike-bal that-mike-bal added the [Feature] Site Goals & Onboarding Paths The onboarding flows for all new sites. label May 27, 2022
@a8ci18n
Copy link

a8ci18n commented Jun 2, 2022

Translation for this Pull Request has now been finished.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Data] Implement a hook providing a list of goals for UI to display
6 participants