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:
21
openspec/specs/chart-data-filtering/spec.md
Normal file
21
openspec/specs/chart-data-filtering/spec.md
Normal file
@@ -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
|
||||
Reference in New Issue
Block a user