-
Notifications
You must be signed in to change notification settings - Fork 49
Website: batch 2 of component gts conversions #3436
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
base: main
Are you sure you want to change the base?
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
8083853 to
fac2f05
Compare
9a4a7bf to
e418f44
Compare
75a8177 to
966bcc2
Compare
didoo
left a comment
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.
Nothing that stood out for me.
| <img | ||
| class="doc-cards-card__image" | ||
| src={{@image}} | ||
| alt="" | ||
| role="presentation" | ||
| /> | ||
| <div class="doc-cards-card__details"> | ||
| <p class="doc-cards-card__title">{{@title}}</p> | ||
| {{#if @status.deprecated}} | ||
| <DocBadge | ||
| class="doc-cards-card__badge" | ||
| @type="warning-inverted" | ||
| @size="medium" | ||
| >Deprecated</DocBadge> | ||
| {{else if @status.updated}} | ||
| <DocBadge | ||
| class="doc-cards-card__badge" | ||
| @type="neutral-inverted" | ||
| @size="medium" | ||
| >Updated</DocBadge> | ||
| {{else if @status.added}} | ||
| <DocBadge | ||
| class="doc-cards-card__badge" | ||
| @type="information-inverted" | ||
| @size="medium" | ||
| >Added</DocBadge> | ||
| {{/if}} | ||
| <p class="doc-cards-card_description">{{@caption}}</p> | ||
| </div> |
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.
One nice thing of gts files is that one can define local (in the same file) components, to be used inside the main <template> block. In this case, you can abstract away all this part, and avoid the duplication below.
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.
I didnt end up making a sub component, but I did switch to getters so the logic only happens in one place.
📌 Summary
If merged, this PR would convert another chunk of the website components to gts.
There are still a few more components, but they are more involved so I will split them into their own PR.
🔗 External links
Jira ticket: HDS-5704
💬 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.