Comments (7)
Hi @ankitrox, thanks for drafting the IB/POC. It's definitely heading in the right direction, however there are a number of aspects I would like to see addressed.
- We should be aiming to reuse the CSS classes more than your POC demonstrates.
- We should also look to share more common logic and structure, while keeping the refactor as simple as we can.
- I think we can avoid the
saved
flag in the items and we don't need asuffix
at this point either.
I figured it would be easiest to show you what I mean in more detail by putting together a POC myself: #8676. I think this is most of the way there and the main thing remaining to do is to genericise the CSS class names.
Please take a look at my POC, consider my feedback, let me know your thoughts if you wish to discuss this, and/or update the IB accordingly.
from site-kit-wp.
Thanks @ankitrox, nice work here so far on the IB.
I've made a few tweaks, to fix a couple of minor errors and remove some duplication, which you can see in the edit history.
Additionally - although I did mention you could take the approach of not listing all the props for each item and instead refer to the POC, where you have listed the props (which is totally fine), you've missed most of them for the SelectionPanelFooter
component. Please can you provide the full list of props for this component too, for consistency?
from site-kit-wp.
Thanks @techanvil for fixing typos and formatting.
I have expanded on SelectionPanelFooter
component props as suggested. I haven't provided too much info on MetricsFooter
because it would be repetitive.
Assigning you for review.
Thanks again!
from site-kit-wp.
Thanks @ankitrox, that's great. IB LGTM! ✅
from site-kit-wp.
QA Status ⚠️
This is tested good overall:
-
CSS classes used by these generic components have been renamed to remove references to Key Metrics. ✅
-
The KM Selection Panel is unchanged from the user's perspective. Compared prod and develop and the panels are consistent with each other. ✅
-
In Storybook, the Components > Selection Panel story variants, their behaviour and styling is aligned with the key metrics selection panel ✅
-
Layout, margin, padding, font family , font sizes are consistent with Key Metrics panel ✅
-
Verified on Mobile, tablet and other browsers too and results are consistent across. ✅
-
The only behaviour that I noticed is different is when clicking a checkbox. Refer to the detailed video below
⚠️ Checkbox.behaviour.mov
from site-kit-wp.
Thank you for sharing your observation, @kelvinballoo!
- The only behaviour that I noticed is different is when clicking a checkbox. Refer to the detailed video below
⚠️
Interesting observation. However, as long as the focus behaviour is unchanged in the actual application, we should be good to go here, which I just checked and ensured that it is.
See screen recording
1.mp4
The Storybook story for SelectionPanel
uses a custom set of made-up items and relies on the local state to store the selection. The focus gets lost there most likely due to re-rendering events. I believe we can overlook that.
Please let me know if you have any other concerns, thank you, Kelvin!
from site-kit-wp.
QA Updates ✅
Thanks for the explanation @nfmohit . That makes sense.
Moving this ticket to Approval.
from site-kit-wp.
Related Issues (20)
- Extract "Subtle Notification" styling/logic to a shared `SubtleNotification` component HOT 4
- Refactor the Audience Tiles to use new pivot report infrastructure HOT 4
- Update component styles to reference tokens HOT 1
- Refactor settings Save button loading state HOT 1
- Ads conversion ID not output when connected via PAX HOT 2
- Ads PAX Setup Flow Not Proceeding Past Billing Screen Due to `termsAndConditionsService.notify` Function Body Being Empty HOT 2
- Update ICE permissions to require `MANAGE_OPTIONS` HOT 2
- Release 1.128.0 HOT 4
- URLs with arabic characters always showing zero data, despite data existing from analytics.google.com HOT 1
- Address copy/formatting inconsistencies in "subtle" notifications? HOT 3
- Allow PAX env to be configurable HOT 1
- Data validity for audience tiles when connected to Analytics
- Sticky header on mobile when tooltip is on
- Use `googlesitekit-data` imports directly instead of object destructing
- PAX inherits conflicting styles from WP core HOT 2
- Implement partner `userActionService` to handle new `finishAndCloseSignUpFlow` action HOT 1
- Fix Failing Jest Tests HOT 1
- Prevent Tracking of Conversion Events if Enhanced Conversion Tracking Toggle State is False HOT 1
- Add `rrmModule` feature flag
- Install the SwG client API library
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from site-kit-wp.