-
Notifications
You must be signed in to change notification settings - Fork 21
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
PMax Assets: Add FAQs for the assets #1881
Conversation
10f6026
to
78769dd
Compare
/** | ||
* Renders a toggleable FAQs section about the campaign assets of the Google Ads. | ||
* | ||
* @fires gla_faq with `{ context: 'campaign-management', id: 'what-will-my-ads-look-like', action: 'expand' }`. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It not correct to merge both events and do something like.
@fires gla_faq with { context: 'campaign-management', id: 'what-will-my-ads-look-like', action: 'expand|collapse'}
.
Not sure where but I think we used that way before.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is an interesting question. I haven't noticed before but only copied them from the other place and changed the context and id.
After viewing the src/Tracking/README.md, yes, there are a few @fires
tags that use |
for indicating the possible values. In addition, the @event
tag of gla_faq already stated the possible values of action
, so I guess it should be fine to merge them into a single one by using |
or even omit the action
in the @fires
description.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Merged in 72353d6.
@eason9487 Where ca I see the source for the faqs? IS there anywhere in figma or??? |
Hi, @puntope
Please refer to the Figma link of the i2 final version in the Links section of #1787. |
Founded. Thanks! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM ✅
- Faqs texts appear in the page and are equal than Figma reqs
- All Panel related components externalised and working
- Code looking good. (One comment about merging events with same params, but minor)
…`@fires` tags in the assets' FaqsSection. Address #1881 (comment)
Changes proposed in this Pull Request:
This PR implements a part of 📌 Add step 2 to the campaign management page in #1787.
It also includes a part of #1833 - Gradually externalize
@wordpress/components
.Screenshots:
📷 FAQs for the assets
📷 Externalization for Panel, PanelBody, and PanelRow
Detailed test instructions:
Changelog entry