mirror of
https://github.com/getpaseo/paseo.git
synced 2026-10-24 02:02:42 +00:00
Streamline sidebar usage and stacked sheet interactions (#5805)
* feat(app): streamline sidebar usage and stacked sheets * fix(app): restore compact sidebar navigation clicks The close button container emitted box-none through Unistyles as invalid CSS and intercepted New workspace clicks. Let React Native apply click-through behavior at the view boundary. Keep the import journey on its existing New workspace screen and assert only the visible transcript. * fix(app): cap menu sheets at eighty percent height Keep long sidebar usage reports recognizably sheet-sized while allowing the content to scroll. Short menu sheets retain dynamic sizing.
This commit is contained in:
@@ -65,14 +65,16 @@ export async function fetchUsage(
|
||||
const data = responseSchema.parse(await response.json());
|
||||
const windows = (
|
||||
[
|
||||
["rolling", "Rolling", data.usage.rolling],
|
||||
["weekly", "Weekly", data.usage.weekly],
|
||||
["monthly", "Monthly", data.usage.monthly],
|
||||
// The rolling window's length is not reported, so its percent stands without a name.
|
||||
["rolling", "Rolling", "", data.usage.rolling],
|
||||
["weekly", "Weekly", "wk", data.usage.weekly],
|
||||
["monthly", "Monthly", "mo", data.usage.monthly],
|
||||
] as const
|
||||
).map(([id, label, value]) =>
|
||||
).map(([id, label, shortLabel, value]) =>
|
||||
windowFromUsedPct({
|
||||
id,
|
||||
label,
|
||||
shortLabel,
|
||||
utilizationPct: value.percent,
|
||||
resetsAt: value.resetsAt,
|
||||
tone: toneFromUsedPct(value.percent),
|
||||
|
||||
Reference in New Issue
Block a user