OpenAI's Codex Security CLI and TypeScript SDK for finding, validating, and fixing security vulnerabilities. npm: https://www.npmjs.com/package/@openai/codex-security
TypeScript ai-securityapplication-securityclicode-scanningcodexcodex-securitycybersecuritydevsecopsnodejsnpmopenaisdksecuritytypescriptvulnerability-scanning
fix(dashboard): align filter controls and dropdown carets (#949)
mluck-openai02c5137fbe80
diff --git a/sdk/typescript/dashboard/App.tsx b/sdk/typescript/dashboard/App.tsxindex 801bcbabb..e44dcd884 100644--- a/sdk/typescript/dashboard/App.tsx+++ b/sdk/typescript/dashboard/App.tsx@@ -1,6 +1,7 @@import { useEffect, useRef, useState, type ReactNode } from "react";import { Badge } from "@openai/apps-sdk-ui/components/Badge";import { Button } from "@openai/apps-sdk-ui/components/Button";+import { ChevronDownVector } from "@openai/apps-sdk-ui/components/Icon";import { Input } from "@openai/apps-sdk-ui/components/Input";import type {DashboardDetail,@@ -416,7 +417,7 @@ export function App() {Search {current.label.toLowerCase()}</span><Input- size="lg"+ size="xl"value={query}placeholder={`Search ${current.label.toLowerCase()}…`}onChange={(event) => filter(setQuery, event.target.value)}@@ -424,27 +425,43 @@ export function App() {</label><label><span>Repository</span>- <select- value={repository}- onChange={(event) => filter(setRepository, event.target.value)}- >- <option value="">All repositories</option>- {(saved?.data.repositories ?? []).map((repo) => (- <option key={repo.id} value={repo.id}>- {repo.label}- </option>- ))}- </select>+ <span className="select-field">+ <select+ value={repository}+ onChange={(event) =>+ filter(setRepository, event.target.value)+ }+ >+ <option value="">All repositories</option>+ {(saved?.data.repositories ?? []).map((repo) => (+ <option key={repo.id} value={repo.id}>+ {repo.label}+ </option>+ ))}+ </select>+ <ChevronDownVector+ className="select-caret"+ aria-hidden="true"+ focusable="false"+ />+ </span></label><label><span>Sort</span>- <select- value={sort}- onChange={(event) => filter(setSort, event.target.value)}- >- <option value="activity">Recent activity</option>- <option value="newest">Newest first</option>- </select>+ <span className="select-field">+ <select+ value={sort}+ onChange={(event) => filter(setSort, event.target.value)}+ >+ <option value="activity">Recent activity</option>+ <option value="newest">Newest first</option>+ </select>+ <ChevronDownVector+ className="select-caret"+ aria-hidden="true"+ focusable="false"+ />+ </span></label></div>{failure && (diff --git a/sdk/typescript/dashboard/styles.css b/sdk/typescript/dashboard/styles.cssindex c0b42fa4a..6c76168a4 100644--- a/sdk/typescript/dashboard/styles.css+++ b/sdk/typescript/dashboard/styles.css@@ -157,17 +157,32 @@ p {flex: 1;max-width: none;}+.select-field {+ position: relative;+ min-width: 0;+}+.select-caret {+ position: absolute;+ inset-inline-end: var(--control-gutter-lg);+ top: 50%;+ width: 11px;+ height: 6px;+ transform: translateY(-50%);+ color: var(--color-text-secondary);+ pointer-events: none;+}.filters select {- appearance: auto;+ appearance: none;min-width: 0;width: 100%;- height: 40px;- padding: 0 12px;+ height: var(--control-size-xl);+ padding: 0 var(--control-gutter-lg);+ padding-inline-end: calc(var(--control-gutter-lg) + 24px);border: 1px solid var(--color-border);- border-radius: var(--radius-lg);+ border-radius: var(--control-radius-lg);background: var(--color-surface);color: var(--color-text);- font-size: 14px;+ font-size: var(--control-font-size-lg);}.filters select:focus-visible {outline: 2px solid var(--color-text);