-
(hidden) CvCdNlLtD
-
re: [[(hidden) v8hKA88Fi]] old -> new mappings of #[[(hidden) 1zvQUPuRu]] (4 -> 5) & [[codemods]]:
-
https://pipedrive.slack.com/archives/C02HVJZDBT2/p1636328227098000
-
> a lot of manual work
-
{{[[TODO]]}} I'd like the data between `tokenMapping.js` & `index.jsx` connected:
-
similar to how I'm doing it w/ the jsx attributes/props codemod (which started from the button):
-
I'd use this data to better understand of how I should write the codemods
-
what's important to understand is that I've seen very little usage of CUI myself, thus I don't have an accurate real-world representation/mental-model of it. if I don't get it before I decide the architecture & start coding, it's almost inevitable I'll make wrong assumptions & everything that comes with that.
-
and, if we decide to make the style codemods __find-then-prove-only-then-replace__ instead of __find-then-replace__ (like w/ jsx props/attributes) - to filter that the stuff we're modifying is actually from CUI instead of spraying & praying.
-
-
{{[[DONE]]}} i.e., currently, from the index.tsx file, it's not clear what cases apply when:
-
> // direct usage of tokens in js/ts/jsx/tsx files
-
{{[[DONE]]}} did the import path change?
-
{{[[DONE]]}} is the imported `colors` thing only available as a default export, or a named/destructured export, or both?
-
{{[[TODO]]}} is the provided usage in the comments - the existing one?
-
{{[[DONE]]}} what is the `createGlobalStyle` utility?
-
-
> // changing token usages in pcss/sass files
-
-
-
follow-up q's
-
#[[(hidden) JcqOWMyQe]]
-
{{[[TODO]]}} border radius - add comment to do manual
-
{{[[DONE]]}} parse colors from csv
-
{{[[TODO]]}} don't worry about color edge cases for now
-
{{[[TODO]]}} per-file, not per-whole-program
-
((C9-NbYAPt))
-
{{[[TODO]]}} for (post)css files, don't handle complex stuff like mixins, just do simple stuff
-
-
-
(hidden) iK5ZVNHlm
-
(hidden) AnVLqmuzC
-
(hidden) SA3UXK-BX