-
Notifications
You must be signed in to change notification settings - Fork 51
[WIP-05] [Project Solar / Phase 1 / Showcase] Scaffolding of the showcase pages for the carbonization of the HDS components #3241
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
Open
didoo
wants to merge
36
commits into
project-solar/phase-1/HDS-5242_showcase/add-themes-support
Choose a base branch
from
project-solar/phase-1/HDS-5242_showcase/carbonization-pages-scaffolding
base: project-solar/phase-1/HDS-5242_showcase/add-themes-support
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
[WIP-05] [Project Solar / Phase 1 / Showcase] Scaffolding of the showcase pages for the carbonization of the HDS components #3241
didoo
wants to merge
36
commits into
project-solar/phase-1/HDS-5242_showcase/add-themes-support
from
project-solar/phase-1/HDS-5242_showcase/carbonization-pages-scaffolding
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
19234bc to
cd4e9ef
Compare
cd4e9ef to
a0b23a9
Compare
519a6a6 to
3863dfa
Compare
a0b23a9 to
403ac45
Compare
403ac45 to
9376a33
Compare
9376a33 to
8bc9cc9
Compare
8bc9cc9 to
f8e77f1
Compare
f8e77f1 to
68248e2
Compare
…ncies to Showcase app
…to the cells/areas
…d on Carbon implementation/specifications
Co-authored-by: Copilot <[email protected]>
…ode review suggestion
…in the comparison grid
…or Carbon theming
…folder/route will be used later to detect if we need to do something around theme switcher and CSS to load
327308a to
61b0240
Compare
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
📌 Summary
This PR is the initial scaffolding of the showcase pages that will be used for the dry-run migrations (and subsequent actual migration) of the HDS components (as in theming/re-skinning).
This PR is based on top of #3240.
🛠️ Detailed description
In this PR I have:
<ShwCarbonizationComparisonGrid>component, used to showcase an HDS component with different themes applied (HDS standard + the four Carbon themesg0/g10/g90/g100) next to the equivalent Carbon web components for that specific variant/state.showcase/app/index.htmlfile to include the scripts (and the hiding styles for the not-yet-loaded web components)🔎 How to review
Note
This is not the final implementation, there will be likely things we will want to change/update, once we start to work on the dry-run migrations; these changes will likely be done in follow-up PRs.
Check the different carbonized pages and how they've been implemented (also their organization as single file
.gtscomponents):Review the implementation of the
<ShwCarbonizationComparisonGrid>component, and see if the API is clear to you; look also at how it's used across the "carbonized" showcase pagesReview how the Carbon Web components are instantiated in the code, and how Carbon theming is applied to them
Note: at the moment there's an open conversation about how to use the
cds-iconweb component in an Ember app, that has not been resolved yet, so we're using theHdsIconcomponent instead👉 👉 👉 Previews:
🛠️ How to test
Note
At the moment the HDS component look the same for the different themes, because the underlying design tokens are all the same; once we start the dry-run migrations (in a follow-up PR) they will start to (should) look more and more like the equivalent Carbon web components shown below
Open the different "carbonized" pages and see how the HDS components are rendered, and how the Carbon Web components are rendered
🗒️ TODOs
showcase/app/index.htmlfile, but importing and instantiating them using the npm packages/dependencies.🔗 External links
Jira ticket: https://hashicorp.atlassian.net/browse/HDS-5533
👀 Component checklist
A changelog entry was added via Changesets if needed (see templates here)💬 Please consider using conventional comments when reviewing this PR.
📋 PCI review checklist
Examples of changes to controls include access controls, encryption, logging, etc.
Examples include changes to operating systems, ports, protocols, services, cryptography-related components, PII processing code, etc.