-
Notifications
You must be signed in to change notification settings - Fork 245
ui: Updated dark theme, scrollable panel, and sidebar refinements #88
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 1 commit
aaedd82
c494da4
10ff923
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
- Updated the mock plugin's JSON configuration to include new progress labels for various pacing statuses. - Modified the App component to generate mock output with detailed progress metrics for testing purposes. - Improved CSS variables for color consistency across themes, including new definitions for green, yellow, and red colors. - Adjusted side navigation styles to ensure proper contrast in light and dark modes. - Enhanced progress component styling for better visual representation in dark mode.
- Loading branch information
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -423,6 +423,45 @@ function App() { | |
|
|
||
| const handleProbeResult = useCallback( | ||
| (output: PluginOutput) => { | ||
| // DEBUG: stress-test mock plugin only — remove after visual QA | ||
| if (output.providerId === "mock") { | ||
|
macroscopeapp[bot] marked this conversation as resolved.
Outdated
|
||
| const _15d = 15 * 24 * 60 * 60 * 1000 | ||
| const _30d = _15d * 2 | ||
| const _resets = new Date(Date.now() + _15d).toISOString() | ||
| const _pastReset = new Date(Date.now() - 60_000).toISOString() | ||
| output = { | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
In Useful? React with 👍 / 👎. |
||
| ...output, | ||
| lines: [ | ||
| // Pace statuses | ||
| { type: "progress", label: "Ahead pace", used: 30, limit: 100, format: { kind: "percent" }, resetsAt: _resets, periodDurationMs: _30d }, | ||
| { type: "progress", label: "On Track pace", used: 45, limit: 100, format: { kind: "percent" }, resetsAt: _resets, periodDurationMs: _30d }, | ||
| { type: "progress", label: "Behind pace", used: 65, limit: 100, format: { kind: "percent" }, resetsAt: _resets, periodDurationMs: _30d }, | ||
| // Edge: 0% used | ||
| { type: "progress", label: "Empty bar", used: 0, limit: 500, format: { kind: "dollars" } }, | ||
| // Edge: 100% used (exactly at limit) | ||
| { type: "progress", label: "Exactly full", used: 1000, limit: 1000, format: { kind: "count", suffix: "tokens" } }, | ||
| // Edge: over limit | ||
| { type: "progress", label: "Over limit!", used: 1337, limit: 1000, format: { kind: "count", suffix: "requests" } }, | ||
| // Edge: huge numbers | ||
| { type: "progress", label: "Huge numbers", used: 8_429_301, limit: 10_000_000, format: { kind: "count", suffix: "tokens" } }, | ||
| // Edge: tiny sliver | ||
| { type: "progress", label: "Tiny sliver", used: 1, limit: 10000, format: { kind: "percent" } }, | ||
| // Edge: nearly full | ||
| { type: "progress", label: "Almost full", used: 9999, limit: 10000, format: { kind: "percent" } }, | ||
| // Edge: reset already passed | ||
| { type: "progress", label: "Expired reset", used: 42, limit: 100, format: { kind: "percent" }, resetsAt: _pastReset, periodDurationMs: _30d }, | ||
| // Text lines | ||
| { type: "text", label: "Status", value: "Active" }, | ||
| { type: "text", label: "Very long value", value: "This is an extremely long value string that should test text overflow and wrapping behavior in the card layout" }, | ||
| { type: "text", label: "", value: "Empty label" }, | ||
| // Badge lines | ||
| { type: "badge", label: "Tier", text: "Enterprise", color: "#8B5CF6" }, | ||
| { type: "badge", label: "Alert", text: "Rate limited", color: "#ef4444" }, | ||
| { type: "badge", label: "Region", text: "us-east-1" }, | ||
| ], | ||
| } | ||
| } | ||
| // END DEBUG | ||
|
cursor[bot] marked this conversation as resolved.
Outdated
|
||
| const errorMessage = getErrorMessage(output) | ||
| const isManual = manualRefreshIdsRef.current.has(output.providerId) | ||
| if (isManual) { | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.