feat(new-webui): Add more options to time range presets.#990
Conversation
WalkthroughTwo new time range options, "Last 12 Months" and "Year to Date," were added to the time range selection logic. These options are now available in the relevant enum and are mapped to their corresponding date ranges in the configuration. Changes
Sequence Diagram(s)sequenceDiagram
participant User
participant UI
participant TimeRangeUtils
User->>UI: Selects time range option
UI->>TimeRangeUtils: Requests date range for selected option
TimeRangeUtils-->>UI: Returns date range (including new "Last 12 Months" or "Year to Date")
UI-->>User: Displays results for selected time range
📜 Recent review detailsConfiguration used: CodeRabbit UI 📒 Files selected for processing (1)
🧰 Additional context used📓 Path-based instructions (1)`**/*.{cpp,hpp,java,js,jsx,tpp,ts,tsx}`: - Prefer `false == ` rather than `!`.
⏰ Context from checks skipped due to timeout of 90000ms (1)
🔇 Additional comments (4)
✨ Finishing Touches
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
SupportNeed help? Create a ticket on our support page for assistance with any issues or questions. Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
Description
PR adds two more options to time range presets. Originally, I didn't really think too much about presets. Still less than old webui (i think less is more), but adds a couple new ones.
Checklist
breaking change.
Summary by CodeRabbit