-
Notifications
You must be signed in to change notification settings - Fork 26
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
Avoid deprecated meta-tag pattern #941
Conversation
👋 Thanks for Submitting! This PR is available for preview at the link below. ✅ PR tip preview: https://941.pr.nala.bravesoftware.com/ - ./tokens/css/variables-android.old.css: 7390 bytes
+ ./tokens/css/variables-android.css: 7390 bytes
---
- ./tokens/css/variables-browser.old.css: 6848 bytes
+ ./tokens/css/variables-browser.css: 6848 bytes
---
- ./tokens/css/variables-ios.old.css: 7033 bytes
+ ./tokens/css/variables-ios.css: 7033 bytes
---
- ./tokens/css/variables-marketing.old.css: 13501 bytes
+ ./tokens/css/variables-marketing.css: 13501 bytes
---
- ./tokens/css/variables-news.old.css: 526 bytes
+ ./tokens/css/variables-news.css: 526 bytes
---
- ./tokens/css/variables-newtab.old.css: 1933 bytes
+ ./tokens/css/variables-newtab.css: 1933 bytes
---
- ./tokens/css/variables-search.old.css: 2409 bytes
+ ./tokens/css/variables-search.css: 2409 bytes
---
- ./tokens/css/variables-web3.old.css: 905 bytes
+ ./tokens/css/variables-web3.css: 905 bytes
---
- ./tokens/css/variables.old.css: 119898 bytes
+ ./tokens/css/variables.css: 119898 bytes
Variables Diff: variables-android.diff--- ./tokens/css/variables-android.old.css 2024-12-14 22:58:30.587841493 +0000
+++ ./tokens/css/variables-android.css 2024-12-14 22:57:50.831498289 +0000
@@ -1,6 +1,6 @@
/**
* Do not edit directly
- * Generated on Fri Dec 13 2024 08:24:32 GMT+0000 (Coordinated Universal Time)
+ * Generated on Sat Dec 14 2024 22:57:50 GMT+0000 (Coordinated Universal Time)
*/
:root {
Variables Diff: variables-browser.diff--- ./tokens/css/variables-browser.old.css 2024-12-14 22:58:30.811843379 +0000
+++ ./tokens/css/variables-browser.css 2024-12-14 22:57:50.815498151 +0000
@@ -1,6 +1,6 @@
/**
* Do not edit directly
- * Generated on Fri Dec 13 2024 08:24:32 GMT+0000 (Coordinated Universal Time)
+ * Generated on Sat Dec 14 2024 22:57:50 GMT+0000 (Coordinated Universal Time)
*/
:root {
Variables Diff: variables-ios.diff--- ./tokens/css/variables-ios.old.css 2024-12-14 22:58:30.995844925 +0000
+++ ./tokens/css/variables-ios.css 2024-12-14 22:57:50.847498426 +0000
@@ -1,6 +1,6 @@
/**
* Do not edit directly
- * Generated on Fri Dec 13 2024 08:24:32 GMT+0000 (Coordinated Universal Time)
+ * Generated on Sat Dec 14 2024 22:57:50 GMT+0000 (Coordinated Universal Time)
*/
:root {
Variables Diff: variables-marketing.diff--- ./tokens/css/variables-marketing.old.css 2024-12-14 22:58:31.171846407 +0000
+++ ./tokens/css/variables-marketing.css 2024-12-14 22:57:50.875498667 +0000
@@ -1,6 +1,6 @@
/**
* Do not edit directly
- * Generated on Fri Dec 13 2024 08:24:32 GMT+0000 (Coordinated Universal Time)
+ * Generated on Sat Dec 14 2024 22:57:50 GMT+0000 (Coordinated Universal Time)
*/
:root {
Variables Diff: variables-news.diff--- ./tokens/css/variables-news.old.css 2024-12-14 22:58:31.315847619 +0000
+++ ./tokens/css/variables-news.css 2024-12-14 22:57:50.903498907 +0000
@@ -1,6 +1,6 @@
/**
* Do not edit directly
- * Generated on Fri Dec 13 2024 08:24:32 GMT+0000 (Coordinated Universal Time)
+ * Generated on Sat Dec 14 2024 22:57:50 GMT+0000 (Coordinated Universal Time)
*/
:root {
Variables Diff: variables-newtab.diff--- ./tokens/css/variables-newtab.old.css 2024-12-14 22:58:31.503849202 +0000
+++ ./tokens/css/variables-newtab.css 2024-12-14 22:57:50.911498976 +0000
@@ -1,6 +1,6 @@
/**
* Do not edit directly
- * Generated on Fri Dec 13 2024 08:24:32 GMT+0000 (Coordinated Universal Time)
+ * Generated on Sat Dec 14 2024 22:57:50 GMT+0000 (Coordinated Universal Time)
*/
:root {
Variables Diff: variables-search.diff--- ./tokens/css/variables-search.old.css 2024-12-14 22:58:31.671850617 +0000
+++ ./tokens/css/variables-search.css 2024-12-14 22:57:50.895498839 +0000
@@ -1,6 +1,6 @@
/**
* Do not edit directly
- * Generated on Fri Dec 13 2024 08:24:32 GMT+0000 (Coordinated Universal Time)
+ * Generated on Sat Dec 14 2024 22:57:50 GMT+0000 (Coordinated Universal Time)
*/
:root {
Variables Diff: variables-web3.diff--- ./tokens/css/variables-web3.old.css 2024-12-14 22:58:31.847852097 +0000
+++ ./tokens/css/variables-web3.css 2024-12-14 22:57:50.915499010 +0000
@@ -1,6 +1,6 @@
/**
* Do not edit directly
- * Generated on Fri Dec 13 2024 08:24:32 GMT+0000 (Coordinated Universal Time)
+ * Generated on Sat Dec 14 2024 22:57:50 GMT+0000 (Coordinated Universal Time)
*/
@media (prefers-color-scheme: light) {
Variables Diff: variables.diff--- ./tokens/css/variables.old.css 2024-12-14 22:58:32.123854420 +0000
+++ ./tokens/css/variables.css 2024-12-14 22:57:50.663496846 +0000
@@ -1,6 +1,6 @@
/**
* Do not edit directly
- * Generated on Fri Dec 13 2024 08:24:32 GMT+0000 (Coordinated Universal Time)
+ * Generated on Sat Dec 14 2024 22:57:50 GMT+0000 (Coordinated Universal Time)
*/
:root {
|
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.
Storybook drives me mental - why do they always change the way you're meant to do things? 😆
Thanks for making this change @jonathansampson! I did it in brave-core and it was a super manual process, so really appreciate it!
Storybook now expects an exported meta object at the module level, rather than a <meta /> element. This change modifies the stories to adhere to the new pattern.
98ceb74
to
75520eb
Compare
DescriptionThis PR significantly refactors the Storybook stories for various components in the Leo design system. The main change is moving the metadata for each story into a ChangesChanges
sequenceDiagram
participant Developer
participant Storybook
participant Component
Developer->>Storybook: Loads story
Storybook->>Component: Reads metadata from exported meta object
Storybook->>Component: Renders component with args
Component-->>Storybook: Returns rendered component
Storybook-->>Developer: Displays story in UI
Possible Issues
Security HotspotsNo significant security concerns were identified in this refactoring. |
👋 Thanks for Submitting! This PR is available for preview at the link below. ✅ PR tip preview: https://941.pr.nala.bravesoftware.com/ - ./tokens/css/variables-android.old.css: 7390 bytes
+ ./tokens/css/variables-android.css: 7390 bytes
---
- ./tokens/css/variables-browser.old.css: 6848 bytes
+ ./tokens/css/variables-browser.css: 6848 bytes
---
- ./tokens/css/variables-ios.old.css: 7033 bytes
+ ./tokens/css/variables-ios.css: 7033 bytes
---
- ./tokens/css/variables-marketing.old.css: 13501 bytes
+ ./tokens/css/variables-marketing.css: 13501 bytes
---
- ./tokens/css/variables-news.old.css: 526 bytes
+ ./tokens/css/variables-news.css: 526 bytes
---
- ./tokens/css/variables-newtab.old.css: 1933 bytes
+ ./tokens/css/variables-newtab.css: 1933 bytes
---
- ./tokens/css/variables-search.old.css: 2409 bytes
+ ./tokens/css/variables-search.css: 2409 bytes
---
- ./tokens/css/variables-web3.old.css: 905 bytes
+ ./tokens/css/variables-web3.css: 905 bytes
---
- ./tokens/css/variables.old.css: 119898 bytes
+ ./tokens/css/variables.css: 119898 bytes
Variables Diff: variables-android.diff--- ./tokens/css/variables-android.old.css 2024-12-16 13:44:20.492462859 +0000
+++ ./tokens/css/variables-android.css 2024-12-16 13:43:41.048774283 +0000
@@ -1,6 +1,6 @@
/**
* Do not edit directly
- * Generated on Fri Dec 13 2024 08:24:32 GMT+0000 (Coordinated Universal Time)
+ * Generated on Mon Dec 16 2024 13:43:41 GMT+0000 (Coordinated Universal Time)
*/
:root {
Variables Diff: variables-browser.diff--- ./tokens/css/variables-browser.old.css 2024-12-16 13:44:20.852459999 +0000
+++ ./tokens/css/variables-browser.css 2024-12-16 13:43:41.028774432 +0000
@@ -1,6 +1,6 @@
/**
* Do not edit directly
- * Generated on Fri Dec 13 2024 08:24:32 GMT+0000 (Coordinated Universal Time)
+ * Generated on Mon Dec 16 2024 13:43:41 GMT+0000 (Coordinated Universal Time)
*/
:root {
Variables Diff: variables-ios.diff--- ./tokens/css/variables-ios.old.css 2024-12-16 13:44:21.140457703 +0000
+++ ./tokens/css/variables-ios.css 2024-12-16 13:43:41.068774136 +0000
@@ -1,6 +1,6 @@
/**
* Do not edit directly
- * Generated on Fri Dec 13 2024 08:24:32 GMT+0000 (Coordinated Universal Time)
+ * Generated on Mon Dec 16 2024 13:43:41 GMT+0000 (Coordinated Universal Time)
*/
:root {
Variables Diff: variables-marketing.diff--- ./tokens/css/variables-marketing.old.css 2024-12-16 13:44:21.292456493 +0000
+++ ./tokens/css/variables-marketing.css 2024-12-16 13:43:41.088773988 +0000
@@ -1,6 +1,6 @@
/**
* Do not edit directly
- * Generated on Fri Dec 13 2024 08:24:32 GMT+0000 (Coordinated Universal Time)
+ * Generated on Mon Dec 16 2024 13:43:41 GMT+0000 (Coordinated Universal Time)
*/
:root {
Variables Diff: variables-news.diff--- ./tokens/css/variables-news.old.css 2024-12-16 13:44:21.580454204 +0000
+++ ./tokens/css/variables-news.css 2024-12-16 13:43:41.116773780 +0000
@@ -1,6 +1,6 @@
/**
* Do not edit directly
- * Generated on Fri Dec 13 2024 08:24:32 GMT+0000 (Coordinated Universal Time)
+ * Generated on Mon Dec 16 2024 13:43:41 GMT+0000 (Coordinated Universal Time)
*/
:root {
Variables Diff: variables-newtab.diff--- ./tokens/css/variables-newtab.old.css 2024-12-16 13:44:21.888451758 +0000
+++ ./tokens/css/variables-newtab.css 2024-12-16 13:43:41.124773722 +0000
@@ -1,6 +1,6 @@
/**
* Do not edit directly
- * Generated on Fri Dec 13 2024 08:24:32 GMT+0000 (Coordinated Universal Time)
+ * Generated on Mon Dec 16 2024 13:43:41 GMT+0000 (Coordinated Universal Time)
*/
:root {
Variables Diff: variables-search.diff--- ./tokens/css/variables-search.old.css 2024-12-16 13:44:22.164449556 +0000
+++ ./tokens/css/variables-search.css 2024-12-16 13:43:41.108773840 +0000
@@ -1,6 +1,6 @@
/**
* Do not edit directly
- * Generated on Fri Dec 13 2024 08:24:32 GMT+0000 (Coordinated Universal Time)
+ * Generated on Mon Dec 16 2024 13:43:41 GMT+0000 (Coordinated Universal Time)
*/
:root {
Variables Diff: variables-web3.diff--- ./tokens/css/variables-web3.old.css 2024-12-16 13:44:22.472447109 +0000
+++ ./tokens/css/variables-web3.css 2024-12-16 13:43:41.132773662 +0000
@@ -1,6 +1,6 @@
/**
* Do not edit directly
- * Generated on Fri Dec 13 2024 08:24:32 GMT+0000 (Coordinated Universal Time)
+ * Generated on Mon Dec 16 2024 13:43:41 GMT+0000 (Coordinated Universal Time)
*/
@media (prefers-color-scheme: light) {
Variables Diff: variables.diff--- ./tokens/css/variables.old.css 2024-12-16 13:44:22.928443484 +0000
+++ ./tokens/css/variables.css 2024-12-16 13:43:40.880775527 +0000
@@ -1,6 +1,6 @@
/**
* Do not edit directly
- * Generated on Fri Dec 13 2024 08:24:32 GMT+0000 (Coordinated Universal Time)
+ * Generated on Mon Dec 16 2024 13:43:40 GMT+0000 (Coordinated Universal Time)
*/
:root {
|
Storybook now expects an exported meta object at the module level, rather than a element. This change modifies the stories to adhere to the new pattern. In a couple cases the
name
attribute of a<Story />
element needed to be changed to avoid attempted reuse of an identifier within the same context.