-
Notifications
You must be signed in to change notification settings - Fork 28
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
fix(design): Add back missing icon colors types #880
Conversation
Deploying with Cloudflare Pages
|
This fixes Icon issues which is the AC of the story, but it would be nice to find the root cause of why rollup doesn't do this correctly, because if we do, then we can solve the other issues (for example |
Oh I think I know why. There was a pretty big change with the typed-css-modules format. https://github.com/GetJobber/atlantis/pull/677/files I think it is related to how it gets exported. it was very different from that PR to what it is now |
@timoteialbu thanks for that thought. I have an idea on how to fix this. it's gonna be a hella big PR but it's gonna fix it!! 80% sure on that one. |
@timoteialbu that one is actually a lot harder to deal with as that issue goes back into v0 of atlantis. This issue we're fixing is related but slightly different since it used to work. Why does it work? The history of the icon before the I added another ticket to look at the bigger issue, but i think this should just go out as it's affecting atlantis, jobber online, and jobber mobile |
If you made another ticket to look at it that sounds good to me! |
@timoteialbu thought about it. it would basically add extra files that we don't need on the release. We'd have to figure out which one gets referenced as a |
As discussed, we will have another ticket to try and fix the root cause so that we can fix the other type issues in the app. Good work on this! |
Motivations
For some reason, rollup doesn't want to bring over the
.css.d.ts
file even tho we're referencing it. Could have something to do with the way thosetyped-css-module
exports the type with the old-style importsexport = styles
.Anyhoo, this makes rollup copy those files in the correct place. It now autocompletes again.
Prop table colors now shows the correct type
Changes
Added
rollup-plugin-copy
to copy the missing.css.d.ts
files over todist
so it gets exportedChanged
rollup-plugin-copy
rollup-plugin-typescript2
to latest since it has issues/bug with async methodsDeprecated
Removed
Fixed
Security
Testing
Install the pre-release on the other repo and see that the colors now gets suggestions
In Atlantis we use Github's built in pull request reviews.