-
Notifications
You must be signed in to change notification settings - Fork 4k
Update modals #6688
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
Update modals #6688
Conversation
|
@sfc-gh-jgarcia small nit: we should probably change the title of the clear cache dialog to "Clear cache" (i.e. second word lowercase) to be more inline with the other modals. |
|
And can you maybe change the title of the about dialog to "Made with" instead of "Powered by"? Wanted to do this for a long time but always forgot. Doesn't have to go into this PR but I assume it's a tiny change so might be worth just adding right away. |
frontend/cypress/snapshots/linux/2x/deploy_button.spec.js/deploy_dialog_opened.snap.png
Show resolved
Hide resolved
frontend/src/app/components/StreamlitDialog/styled-components.ts
Outdated
Show resolved
Hide resolved
@mayagbarnes Sorry for the messy PR, but I had all sorts of issues trying to get to the modals 😅 seems like our Besides that, I also couldn't get to the Thanks 🙏 |
@sfc-gh-jgarcia No worries, thanks so much for all your work to add more comprehensive modal testing! Totally works to use Hope its okay but I worked on the |
frontend/src/app/components/StreamlitDialog/__snapshots__/SettingsDialog.test.tsx.snap
Show resolved
Hide resolved
mayagbarnes
left a comment
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.
Looks good to me! 🚀
|
Thanks a lot for adding those missing tests, @mayagbarnes! Snapshots look good to me, so we should be good to merge these. Thanks, as usual! 🙏 |
* develop: (22 commits) enzyme -> react-testing-library (Countdown, Modal, ProgressBar) (streamlit#6744) Remove console.log (streamlit#6753) Update `st.data_editor` and `st.dataframe` docstrings (streamlit#6752) Update `st.data_editor` session state format (streamlit#6711) Cypress flaky test fixes (streamlit#6743) Document integer size limit for number_input and slider (streamlit#6724) Change default theme hash on app init (streamlit#6729) Use .genericFonts instead of .fonts to fix bug with theme postMessage. (streamlit#6732) Improve startup performance by lazy loading some dependencies (streamlit#6531) Add support for Altair 5 (streamlit#6618) Update modals (streamlit#6688) Improve docstrings for `ttl` and `max_entries` (streamlit#6733) Improve `st.columns` docstring (streamlit#6727) Removed orphan line in dataframe docstring (streamlit#6734) Fix useIsOverflowing dependency array (streamlit#6731) Remove experimental from data editor (streamlit#6712) Clarify set_page_config docstring and exception message (streamlit#6594) Add a config option to disable warning for setting both a widget default and its key in session_state (streamlit#6640) Add column configuration API for `st.dataframe` and `st.data_editor` (streamlit#6598) Migrate datetime column formatting from date-fns to momentJS (streamlit#6702) ...
📚 Context
This PR updates the look of our modal windows, per @jrieke's request.
What kind of change does this PR introduce?
🧠 Description of Changes
Removed borders and lines throughout the UI;
Removed repetitive buttons;
Tighten up spacing between elements, updated paddings and corner radius.
Revised:
Current:
🧪 Testing Done
🌐 References
Contribution License Agreement
By submitting this pull request you agree that all contributions to this project are made under the Apache 2.0 license.