mirror of
https://github.com/supabase/supabase.git
synced 2026-10-07 10:25:06 +03:00
* default to 69mins add 3 hours opt * Enhance Reports Datepicker Helpers with Plan Availability - Introduced `ReportsDatetimeHelper` interface to include `availableIn` property for plan-specific availability. - Updated existing datepicker helpers to specify availability for different plans. - Renamed 'Last 30 days' to 'Last 28 days' for consistency. - Added `createFilteredDatePickerHelpers` function to filter helpers based on the user's plan. * Refactor Datepicker Helpers in API Overview Report - Replaced the usage of `REPORTS_DATEPICKER_HELPERS` with the new `createFilteredDatePickerHelpers` function to enhance plan-specific filtering. - This change streamlines the datepicker helper logic based on user plan availability. * Refactor Storage Report Datepicker Helpers - Updated the Storage Report component to use `createFilteredDatePickerHelpers` for plan-specific datepicker logic. - This change simplifies the datepicker helper implementation and enhances maintainability. * fix test
UI Testing Notes
<Popover> vs <Dropdown>
When simulating clicks on these components, do the following:
// for Popovers
import userEvent from '@testing-library/user-event'
userEvent.click('Hello world')
// for Dropdowns
import clickDropdown from 'tests/helpers'
clickDropdown('Hello world')
Rules
- All tests should be run consistently (avoid situations whereby tests fails "sometimes")