Repository navigation
Warning log - #144
Merged
Merged
Warning log#144
Conversation
Contributor
Author
Comment on lines
+99
to
+101
| <div className="flex flex-col bg-red-700 text-white p-4 w-full"> | ||
| <h3 className="text-lg">Warnings:</h3> | ||
| <ul className="list-disc list-inside"> |
Owner
There was a problem hiding this comment.
needs to support both light and dark mode, I would do something like bg-red-300 text-black dark:bg-red-700 dark:text-white, or use opacity like dark:bg-red-700/40
Owner
There was a problem hiding this comment.
I would probably also use a lucide warning icon and maybe yellow color since it is not THAT bad, just a warning, not an error
Owner
|
I like it, thanks |
Contributor
Author
Owner
|
Oh no, now this has conflicts. Do prefer me to revert the other one, merge this, then merge the other one or do you want to rebase this? Whatever is easier for you. I forgot to merge this, sorry. |
Contributor
Author
|
This should be rebased and all fixed. |
Owner
|
Thanks!! |
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
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.


I've added a global object in backend/common that allows you to track errors when doing the conversion from Figma nodes to code.
The file exposes
warnings(aSet<string>),addWarning(), andclearWarnings()The warnings are passed on to the UI to display to the user.
The warnings are also logged to console using
console.warn()Known issue: Any warnings for HTML always appear because they are triggered by the HTML Preview.
Known issue: I added warnings for a few conversion issues I was aware of but I assume there are many more that are not annotated.