-
Notifications
You must be signed in to change notification settings - Fork 1
Fix scroll behavior after portfolio analysis completion #35
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
Conversation
…ulation plus started to modifying app.py to have a smooth scroll (still to be finished)
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.
Pull Request Overview
This PR fixes the issue where the page scrolls to the top after portfolio analysis completion by implementing JavaScript-based smooth scrolling to the bottom of the page. Additionally, it refactors the portfolio percentage validation from an error-throwing validator to an auto-normalization approach.
- Implements JavaScript scroll functionality to automatically scroll to bottom after portfolio completion
- Refactors portfolio percentage validation from strict validation to auto-normalization
- Moves chat input placement before the conversation completion check
Reviewed Changes
Copilot reviewed 1 out of 1 changed files in this pull request and generated 5 comments.
| File | Description |
|---|---|
| src/models/portfolio.py | Replaces strict percentage validation with auto-normalization logic; adds unused math import; includes commented-out old code and TODO comment |
| app.py | Adds _scroll_to_bottom() function using JavaScript injection; reorganizes chat input placement; adds scroll call after portfolio display |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
|
🎉 This PR is included in version 1.6.1 🎉 The release is available on GitHub release Your semantic-release bot 📦🚀 |
Refactor the application to address the issue of the page scrolling to the top after portfolio analysis completion. Implement a smooth scroll to the relevant section, enhancing user experience. Clean up the scroll function and ensure robust percentage calculations in the portfolio model.
Fixes #21