Closed ShashankC66 closed 1 month ago
This pull request implements UI changes to enhance the display of sentiment analysis results and improves the overall user experience. The changes include adding a new section to show sentiment counts, updating the review submission process, and refactoring some backend code to support these new features.
sequenceDiagram
participant User
participant Frontend
participant Backend
User->>Frontend: Submit review
Frontend->>Backend: POST /submit_review
Backend->>Frontend: Response (success/error)
Frontend->>User: Show alert
Frontend->>Frontend: Clear form fields
Frontend->>Backend: GET /get_reviews
Backend->>Frontend: Updated reviews and counts
Frontend->>User: Display updated data
Change | Details | Files |
---|---|---|
Add sentiment count display to the UI |
|
SentimentAnalysis/analysis/templates/index.html SentimentAnalysis/analysis/views.py |
Improve form handling after review submission |
|
SentimentAnalysis/analysis/templates/index.html |
Refactor sentiment constants |
|
SentimentAnalysis/SentimentAnalysis/constants.py SentimentAnalysis/analysis/models.py |
Enhance error handling in the frontend |
|
SentimentAnalysis/analysis/templates/index.html |
Summary by Sourcery
Update the UI to display sentiment counts for reviews and refactor sentiment constants into separate variables for improved code organization.
New Features:
Enhancements: