mirror of
https://github.com/getpaseo/paseo.git
synced 2026-10-23 09:42:53 +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:
@@ -59,6 +59,8 @@ test("discovers and fetches the default key from read-only auth.json", async ()
|
||||
["weekly", 42, "2026-09-28T00:00:00.000Z"],
|
||||
["monthly", 100, "2026-10-01T00:00:00.000Z"],
|
||||
]);
|
||||
// The rolling window's length is not reported, so its percent stands without a name.
|
||||
expect(report.windows.map((window) => window.shortLabel)).toEqual(["", "wk", "mo"]);
|
||||
// The current upstream endpoint returns windows only; do not invent balances.
|
||||
expect(report.balances).toBeUndefined();
|
||||
expect(await readFile(path, "utf8")).toBe(content);
|
||||
|
||||
@@ -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