refactor: remove resource config

This commit is contained in:
Xiao Yijun 2025-07-08 10:21:40 +08:00
commit 3b3205228f
No known key found for this signature in database
GPG key ID: 6F648FC1262DB420
2 changed files with 4 additions and 52 deletions

View file

@ -60,8 +60,6 @@ interface SidebarProps {
setOauthClientId: (id: string) => void;
oauthScope: string;
setOauthScope: (scope: string) => void;
oauthResource: string;
setOauthResource: (resource: string) => void;
onConnect: () => void;
onDisconnect: () => void;
stdErrNotifications: StdErrNotification[];
@ -93,8 +91,6 @@ const Sidebar = ({
setOauthClientId,
oauthScope,
setOauthScope,
oauthResource,
setOauthResource,
onConnect,
onDisconnect,
stdErrNotifications,
@ -409,14 +405,6 @@ const Sidebar = ({
data-testid="oauth-scope-input"
className="font-mono"
/>
<label className="text-sm font-medium">Resource</label>
<Input
placeholder="Resource"
onChange={(e) => setOauthResource(e.target.value)}
value={oauthResource}
data-testid="oauth-resource-input"
className="font-mono"
/>
</div>
)}
</div>

View file

@ -46,8 +46,6 @@ describe("Sidebar Environment Variables", () => {
setOauthClientId: jest.fn(),
oauthScope: "",
setOauthScope: jest.fn(),
oauthResource: "",
setOauthResource: jest.fn(),
env: {},
setEnv: jest.fn(),
bearerToken: "",