@@ -5,7 +5,17 @@ import { lazy, useState } from 'react';
55import useSWRMutation from 'swr/mutation' ;
66
77import { useApiKeysContext , withCoreUserGuard } from '@/ui/contexts' ;
8- import { Box , Button , Col , Flex , Flow , Icon , localizationKeys , useLocalizations } from '@/ui/customizables' ;
8+ import {
9+ Box ,
10+ Button ,
11+ Col ,
12+ descriptors ,
13+ Flex ,
14+ Flow ,
15+ Icon ,
16+ localizationKeys ,
17+ useLocalizations ,
18+ } from '@/ui/customizables' ;
919import { Action } from '@/ui/elements/Action' ;
1020import { useCardState , withCardStateProvider } from '@/ui/elements/contexts' ;
1121import { InputWithIcon } from '@/ui/elements/InputWithIcon' ;
@@ -81,6 +91,7 @@ export const APIKeysPage = ({ subject, perPage, revokeModalRoot }: APIKeysPagePr
8191 < Col
8292 gap = { 4 }
8393 sx = { { width : '100%' } }
94+ elementDescriptor = { descriptors . apiKeys }
8495 >
8596 < Action . Root >
8697 < Flex
@@ -93,8 +104,9 @@ export const APIKeysPage = ({ subject, perPage, revokeModalRoot }: APIKeysPagePr
93104 alignItems : 'stretch' ,
94105 } ,
95106 } }
107+ elementDescriptor = { descriptors . apiKeysHeader }
96108 >
97- < Box >
109+ < Box elementDescriptor = { descriptors . apiKeysSearchBox } >
98110 < InputWithIcon
99111 placeholder = { t ( localizationKeys ( 'apiKeys.action__search' ) ) }
100112 leftIcon = { < Icon icon = { MagnifyingGlass } /> }
@@ -103,6 +115,7 @@ export const APIKeysPage = ({ subject, perPage, revokeModalRoot }: APIKeysPagePr
103115 setSearch ( e . target . value ) ;
104116 setPage ( 1 ) ;
105117 } }
118+ elementDescriptor = { descriptors . apiKeysSearchInput }
106119 />
107120 </ Box >
108121 < Action . Trigger
@@ -112,6 +125,7 @@ export const APIKeysPage = ({ subject, perPage, revokeModalRoot }: APIKeysPagePr
112125 < Button
113126 variant = 'solid'
114127 localizationKey = { localizationKeys ( 'apiKeys.action__add' ) }
128+ elementDescriptor = { descriptors . apiKeysAddButton }
115129 />
116130 </ Action . Trigger >
117131 </ Flex >
@@ -130,6 +144,7 @@ export const APIKeysPage = ({ subject, perPage, revokeModalRoot }: APIKeysPagePr
130144 rows = { apiKeys }
131145 isLoading = { isLoading }
132146 onRevoke = { handleRevoke }
147+ elementDescriptor = { descriptors . apiKeysTable }
133148 />
134149 { itemCount > ( perPage ?? 5 ) && (
135150 < Pagination
0 commit comments