refactor(ui-components): remove ApiKeysCard and ApiKeyTable - #52
Conversation
Only robosystems-app's /settings ever rendered them, and robosystems-app#343 replaces that with an app-local card — settings is the login home, so its cards live in the app. No other consumer imports either export. CreateApiKeyModal, ApiKeyDisplay, SecureApiKeyField, and the ApiKey / ApiKeyWithValue types stay; the app-local card still creates keys through the core modal. Breaking: two removed exports from the root barrel and @robosystems/core/ui-components — cut as a minor. Merge robosystems-app#343 before bumping core there.
|
@claude please review this PR |
|
Claude finished @jfrench9's task in 49s —— View job Reviewing PR #52
ReviewClean, purely-subtractive removal — nothing to flag.
One minor nit (non-blocking): I wasn't able to run Verdict: LGTM. |
Summary
Removes
ApiKeysCardandApiKeyTablefromui-components/api-keys/. They were only ever rendered by robosystems-app's/settings, and robosystems-app#343 replaces that usage with an app-local card (settings is the login home, so its cards live in the app). Nothing else — in this package or in any consuming app — imports them.CreateApiKeyModal,ApiKeyDisplay,SecureApiKeyField, and theApiKey/ApiKeyWithValuetypes stay: the app-local card still creates keys through the core modal.Changes
ui-components/api-keys/— deletedApiKeysCard.tsx,ApiKeyTable.tsx, and__tests__/ApiKeyTable.test.tsx; the barrel now exportsApiKeyDisplay,CreateApiKeyModal,SecureApiKeyFieldonly.index.ts— droppedApiKeysCardandApiKeyTablefrom the root barrel (ui-components/index.tsre-exports the directory barrel, so the@robosystems/core/ui-componentssubpath loses them too).ui-components/types—ApiKey/ApiKeyWithValueremain theCreateApiKeyModalcontract.Consumer Impact
BREAKING — two removed exports:
ApiKeysCardandApiKeyTable, from both the root barrel and@robosystems/core/ui-components. Cut the release as a minor (0.9.0), not a patch./settingsstops importingApiKeysCardin robosystems-app#343 — merge #343 before bumping core there; bumping first would break its build.sideEffects, or peer-range changes; the build is purely subtractive.Testing
npm run test:all— green: format:check, lint (0 errors; the 12 warnings are the pre-existingno-unused-varsdebt in untouched files), typecheck, vitest 43 files / 492 tests (16 skipped), build.npm run pack:local, then in robosystems-app on the #343 branchnpm install <tgz> --no-save→npm run typecheckclean,/settingscard tests 15/15, and the installed package confirmed free of the removed exports.node_modulesre-synced from the lockfile afterwards (app tree left clean).