feat: Improve UI/UX across multiple frontend pages#221
Conversation
- Remove file selection multiselect in upload page (auto-process all files) - Display AI-generated captions instead of image keys in images page - Add "CSV Format" label above CSV code block in tables page - Style top words as pills in wordcloud page for better readability - Remove redundant success message in translation page 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
Summary of ChangesHello @NotYuSheng, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed! This pull request significantly enhances the user experience across several frontend pages by implementing targeted UI/UX improvements. Changes include streamlining file processing, providing more user-friendly information displays, improving visual presentation, and reducing unnecessary notifications, all aimed at making the application more intuitive and efficient for users. Highlights
Using Gemini Code AssistThe full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips. Invoking Gemini You can request assistance from Gemini at any point by creating a comment using either
Customization To customize Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a Limitations & Feedback Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counter productive. You can react with 👍 and 👎 on @gemini-code-assist comments. If you're interested in giving your feedback about your experience with Gemini Code Assist for Github and other Google products, sign up here. You can also get AI-powered code generation, chat, as well as code reviews directly in the IDE at no cost with the Gemini Code Assist IDE Extension. Footnotes
|
PR Compliance Guide 🔍Below is a summary of compliance checks for this PR:
Compliance status legend🟢 - Fully Compliant🟡 - Partial Compliant 🔴 - Not Compliant ⚪ - Requires Further Human Verification 🏷️ - Compliance label |
||||||||||||||||||
PR Code Suggestions ✨Explore these optional code suggestions:
|
||||||||||||
There was a problem hiding this comment.
Code Review
This pull request introduces several valuable UI/UX improvements across the frontend pages, such as simplifying the file upload workflow and enhancing data presentation. The changes are well-aligned with the goal of improving user experience. I've found one high-severity security issue in the word cloud page where user-provided content is rendered as HTML without sanitization, which could lead to an XSS vulnerability. I've provided a detailed comment with a code suggestion to address this.
- Add HTML escaping to prevent XSS in wordcloud pills display - Fix AttributeError crash when table parsing fails by moving CSV display inside null check 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
User description
Summary
This PR improves the user experience across multiple frontend pages by streamlining workflows, improving visual presentation, and reducing redundant information.
Changes Made
Context / Rationale
These changes enhance the user experience by:
Related Docs or References
N/A
FastAPI Application Checklist (Delete if PR is not relevant)
This PR only affects frontend Streamlit pages and does not modify any FastAPI services.
General Checklist
PR Type
Enhancement
Description
Remove file selection multiselect in upload page
Display AI-generated captions instead of image keys
Add "CSV Format" label for table outputs
Style top words as pills in wordcloud page
Diagram Walkthrough
File Walkthrough
1_upload_UI.py
Auto-select all uploaded filesfrontend/my_pages/1_upload_UI.py
2_images_UI.py
Show AI captions instead of image keysfrontend/my_pages/2_images_UI.py
3_tables_UI.py
Add CSV format label for clarityfrontend/my_pages/3_tables_UI.py
4_wordcloud_UI.py
Style top words as visual pillsfrontend/my_pages/4_wordcloud_UI.py
6_translate_UI.py
Remove redundant success messagefrontend/my_pages/6_translate_UI.py