-
Notifications
You must be signed in to change notification settings - Fork 0
Open
Description
Task 3.5: Handle Edge Cases in Expanded View
Epic: #10 (Epic 3: Article Expansion & Sentiment Analysis)
Priority: P2
Estimated Effort: 1 hour
Acceptance Criteria
- Articles with no positiveWords/negativeWords show "No specific words identified"
- Neutral articles (score ~0) display appropriately (gray indicator)
- Long excerpts truncated with "Read full article at source" link
- Missing pubDate handled gracefully in expanded view
- Works correctly even when some data fields are null/undefined
Technical Notes
- Add null checks and fallback values
- Test with synthetic edge case data
- Ensure UI doesn't break with missing fields
- Provide helpful messages for missing data
Related Requirements
- FR-008: Expand individual articles
- FR-009: Handle edge cases
- Edge Cases: neutral sentiment, long content, missing data
Testing
- TC-4.6: Neutral sentiment handling
- TC-4.2: Long article excerpt truncation
- Test with
specs/tests/test-data.jsonedge cases