Skip to content

feat(web): add Yesterday time range to request monitoring#296

Open
fengshao1227 wants to merge 1 commit into
seakee:mainfrom
fengshao1227:feat/monitoring-yesterday-range
Open

feat(web): add Yesterday time range to request monitoring#296
fengshao1227 wants to merge 1 commit into
seakee:mainfrom
fengshao1227:feat/monitoring-yesterday-range

Conversation

@fengshao1227

@fengshao1227 fengshao1227 commented Jul 7, 2026

Copy link
Copy Markdown

Summary

Add a "Yesterday" quick-select option to the request monitoring time range filter, covering the complete previous calendar day (00:00:00–23:59:59) with hourly timeline granularity.

Scope

  • Frontend panel
  • Manager Server
  • CPA panel mode
  • Full Docker mode
  • Native packages / release
  • Docs / Wiki
  • CI / build / tooling

Changes

  • Add 'yesterday' to MonitoringTimeRange and MonitoringCenterTimeRange union types
  • Add case 'yesterday' to getRangeBounds with endMs = startOfToday (closed, immutable window)
  • Add range === 'yesterday' to shouldUseHourlyTimeline (single-day granularity)
  • Add 'yesterday' to TIME_RANGE_SET for localStorage persistence
  • Add Yesterday button to MonitoringFiltersPanel between Today and 7d
  • Add i18n translations for all 4 locales (en / zh-CN / zh-TW / ru)

User Impact

Users can now select "Yesterday" in the monitoring filters to view the previous day's complete data at a glance, without manually adjusting custom time ranges.

Compatibility / Runtime Notes

  • CPA panel mode: N/A
  • Manager Server mode: N/A
  • Full Docker / native packages: N/A

Data / Security Notes

N/A

Risk / Rollback

Risk level: Low

Rollback notes:

  • Revert the single commit; 'yesterday' values in localStorage will be normalized to the default 'today' on next load

Verification

  • Type check
  • Lint
  • Tests
  • Build
  • Manual UI check
  • Docs/link check
  • Not applicable, docs-only

Commands / evidence:

npm --workspace apps/web run test    # 82 passed, 673 tests
npm --workspace apps/web run type-check  # clean

Screenshots / Recordings

N/A

Docs

  • README updated
  • Wiki updated
  • Release notes needed
  • Not needed

Related

Partially addresses #204

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant