Skip to content
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

Reduce Syntax highlighter footprint #2037

Merged
merged 15 commits into from Nov 13, 2023

Conversation

ElijahAhianyo
Copy link
Collaborator

@ElijahAhianyo ElijahAhianyo commented Oct 26, 2023

Running without PR(before):
Screenshot 2023-10-26 at 2 36 57 PM

Running with PR(after):
Screenshot 2023-10-26 at 2 35 27 PM

fixes #1997

@ElijahAhianyo ElijahAhianyo marked this pull request as ready for review October 30, 2023 15:13
@ElijahAhianyo ElijahAhianyo changed the title [WIP]Reduce Syntax highlighter footprint Reduce Syntax highlighter footprint Oct 30, 2023
reflex/components/libs/chakra.py Outdated Show resolved Hide resolved
@ElijahAhianyo ElijahAhianyo force-pushed the elijah/reduce-syntax-highlighter-footprint branch from e27605e to 42397dc Compare November 2, 2023 07:49
@Alek99
Copy link
Contributor

Alek99 commented Nov 6, 2023

Is this ready for review?

@ElijahAhianyo
Copy link
Collaborator Author

Is this ready for review?

yes it is

masenf
masenf previously approved these changes Nov 8, 2023
Copy link
Contributor

@picklelo picklelo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Awesome! Just need to fix the default theme and this looks good


# The theme to use ("light" or "dark").
theme: Var[LiteralTheme]
theme: Var[LiteralCodeBlockTheme] = "prism" # type: ignore
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should we update the comment for this now?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We could do that, however, I expected this issue https://linear.app/reflex-dev/issue/REF-1078/in-props-section-add-a-section-for-valid-literals to handle displaying the valid prop values from the literals.

reflex/components/datadisplay/code.py Outdated Show resolved Hide resolved
Copy link
Contributor

@picklelo picklelo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Need to fix the default style

Copy link
Contributor

@picklelo picklelo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

looks good to me!

@picklelo picklelo merged commit ea22452 into main Nov 13, 2023
45 checks passed
@masenf masenf deleted the elijah/reduce-syntax-highlighter-footprint branch December 6, 2023 22:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Reducing React Syntax Highlighter Footprint
4 participants