Skip to content

Commit aa26e4e

Browse files
committed
improvement(usage): show up to 50 rows per tab
1 parent a663c4e commit aa26e4e

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

‎apps/sim/ee/organization-usage/constants.ts‎

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -78,13 +78,13 @@ export const USAGE_TAB_EMPTY_COPY: Record<UsageBreakdownDimension, string> = {
7878
/**
7979
* Rows per breakdown before and after the `Other` row is expanded.
8080
*
81-
* The collapsed count keeps a tab to one screen; the expanded one is the contract's
82-
* own ceiling (`usageLimitSchema(50, 10)`), so asking for more would be refused. A
83-
* dimension with more than {@link EXPANDED_ROW_COUNT} distinct rows still shows an
84-
* `Other` row after expanding, which is the honest result rather than a bug.
81+
* Both counts match the contract's ceiling (`usageLimitSchema(50, 10)`), so each tab
82+
* shows up to 50 rows immediately. A dimension with more than
83+
* {@link EXPANDED_ROW_COUNT} distinct rows still shows an `Other` row, which is the
84+
* honest result rather than a bug.
8585
*/
86-
export const COLLAPSED_ROW_COUNT = 10
8786
export const EXPANDED_ROW_COUNT = 50
87+
export const COLLAPSED_ROW_COUNT = EXPANDED_ROW_COUNT
8888

8989
export const DEFAULT_USAGE_PRESET = 'current-period' as const
9090
export const DEFAULT_USAGE_TAB = USAGE_OVERVIEW_TAB

0 commit comments

Comments
 (0)