1
Some checks failed
Docker Build & Deploy / Build Docker Image (push) Waiting to run
Docker Build & Deploy / Deploy to Production (push) Has been cancelled
Docker Build & Deploy / Cleanup Dangling Images (push) Has been cancelled
Docker Build & Deploy / WeChat Notification (push) Has been cancelled
Some checks failed
Docker Build & Deploy / Build Docker Image (push) Waiting to run
Docker Build & Deploy / Deploy to Production (push) Has been cancelled
Docker Build & Deploy / Cleanup Dangling Images (push) Has been cancelled
Docker Build & Deploy / WeChat Notification (push) Has been cancelled
This commit is contained in:
@@ -0,0 +1,21 @@
|
||||
## ADDED Requirements
|
||||
|
||||
### Requirement: Line chart date range truncation
|
||||
The line chart SHALL display data only up to the current date, not the full natural period.
|
||||
|
||||
#### Scenario: Monthly view shows data to current day
|
||||
- **GIVEN** today is the 15th of the month
|
||||
- **WHEN** the user views the monthly statistics chart
|
||||
- **THEN** the chart SHALL display data from the 1st to the 15th only
|
||||
- **AND** the X-axis SHALL NOT show dates beyond the current day
|
||||
|
||||
#### Scenario: Weekly view shows data to current day
|
||||
- **GIVEN** today is Wednesday
|
||||
- **WHEN** the user views the weekly statistics chart
|
||||
- **THEN** the chart SHALL display data from Monday to Wednesday only
|
||||
- **AND** no flat line segments SHALL appear for future dates
|
||||
|
||||
#### Scenario: Yearly view shows data to current month
|
||||
- **GIVEN** today is in June
|
||||
- **WHEN** the user views the yearly statistics chart
|
||||
- **THEN** the chart SHALL display data from January to June only
|
||||
@@ -0,0 +1,21 @@
|
||||
## ADDED Requirements
|
||||
|
||||
### Requirement: Pie chart direct category labeling
|
||||
The pie chart SHALL display category names directly on or adjacent to their corresponding sectors.
|
||||
|
||||
#### Scenario: Category labels rendered on pie sectors
|
||||
- **WHEN** the expense category pie chart is displayed
|
||||
- **THEN** each sector SHALL display its category name as a label
|
||||
- **AND** the label SHALL be positioned to not obscure the sector
|
||||
|
||||
#### Scenario: Labels adapt to sector size
|
||||
- **GIVEN** a category represents less than 5% of total expenses
|
||||
- **WHEN** the pie chart renders
|
||||
- **THEN** the label for that small sector MAY be hidden to avoid clutter
|
||||
- **AND** the category SHALL still be identifiable via tooltip on hover
|
||||
|
||||
#### Scenario: Label visibility in dark mode
|
||||
- **GIVEN** the application is in dark mode
|
||||
- **WHEN** the pie chart displays labels on sectors
|
||||
- **THEN** the label text color SHALL provide sufficient contrast against the sector color
|
||||
- **AND** labels SHALL remain readable against both light and dark sector colors
|
||||
@@ -0,0 +1,14 @@
|
||||
## ADDED Requirements
|
||||
|
||||
### Requirement: Chart container boundary enforcement
|
||||
The chart SHALL be fully contained within its parent card container without overflow.
|
||||
|
||||
#### Scenario: Chart renders within card boundaries
|
||||
- **WHEN** the statistics page displays a line chart in a card component
|
||||
- **THEN** the chart canvas SHALL NOT extend beyond the card's padding boundaries
|
||||
- **AND** the chart SHALL adapt to container resize events
|
||||
|
||||
#### Scenario: Chart adapts to mobile viewport
|
||||
- **WHEN** the viewport width is less than 375px
|
||||
- **THEN** the chart SHALL scale down proportionally
|
||||
- **AND** no horizontal scrolling SHALL be required to view the full chart
|
||||
Reference in New Issue
Block a user