Skip to content

Commit d976132

Browse files
Fix metadata cell auto-capitalization in sandboxes list (#283)
<!-- CURSOR_AGENT_PR_BODY_BEGIN --> ## Problem The metadata column in the sandboxes list table was displaying values in all uppercase (e.g., `"SOURCE":"INFRA-ADMIN"` instead of `"source":"infra-admin"`), which was confusing to users. ## Solution Added `normal-case` class to the `JsonPopover` in `MetadataCell` to override the default `uppercase` styling inherited from the `Button` base variant. ## Changes - Updated `src/features/dashboard/sandboxes/list/table-cells.tsx` to add `normal-case` class to metadata cell's `JsonPopover` ## Testing The fix follows the same pattern already used in `TemplateCell` (line 124), which also uses `normal-case` to prevent auto-capitalization. --- Fixes issue reported in Slack: metadata values should preserve their original casing and not be auto-capitalized. <!-- CURSOR_AGENT_PR_BODY_END --> [Slack Thread](https://e2b-team.slack.com/archives/C086YA5T4JD/p1774974465150239?thread_ts=1774974465.150239&cid=C086YA5T4JD) <div><a href="https://cursor.com/agents/bc-6a966a16-cf7c-5e2c-ae46-8a50a0fa4369"><picture><source media="(prefers-color-scheme: dark)" srcset="https://cursor.com/assets/images/open-in-web-dark.png"><source media="(prefers-color-scheme: light)" srcset="https://cursor.com/assets/images/open-in-web-light.png"><img alt="Open in Web" width="114" height="28" src="https://cursor.com/assets/images/open-in-web-dark.png"></picture></a>&nbsp;<a href="https://cursor.com/background-agent?bcId=bc-6a966a16-cf7c-5e2c-ae46-8a50a0fa4369"><picture><source media="(prefers-color-scheme: dark)" srcset="https://cursor.com/assets/images/open-in-cursor-dark.png"><source media="(prefers-color-scheme: light)" srcset="https://cursor.com/assets/images/open-in-cursor-light.png"><img alt="Open in Cursor" width="131" height="28" src="https://cursor.com/assets/images/open-in-cursor-dark.png"></picture></a>&nbsp;</div> Co-authored-by: Cursor Agent <cursoragent@cursor.com> Co-authored-by: Ben Fornefeld <ben-fornefeld@users.noreply.github.com>
1 parent b4a682d commit d976132

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/features/dashboard/sandboxes/list/table-cells.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,7 @@ export function MetadataCell({
159159

160160
return (
161161
<JsonPopover
162-
className="text-fg-tertiary hover:text-fg hover:underline min-w-0"
162+
className="text-fg-tertiary hover:text-fg hover:underline min-w-0 normal-case"
163163
json={parsedValue}
164164
>
165165
<span className="block w-full truncate">{value}</span>

0 commit comments

Comments
 (0)