@@ -9,16 +9,18 @@ interface NavItem {
99 href : string ;
1010 icon : string ;
1111 keywords ?: string ;
12+ /** Second key of the `g` + key tab shortcut (#1041), e.g. "t" for `g t`. */
13+ shortcut : string ;
1214}
1315
14- const NAV_ITEMS : NavItem [ ] = [
15- { label : "Overview" , href : "/dashboard" , icon : "⬛" , keywords : "home summary stats" } ,
16- { label : "Transactions" , href : "/dashboard/transactions" , icon : "📋" , keywords : "payments social feed" } ,
17- { label : "Payouts" , href : "/dashboard/payouts" , icon : "💸" , keywords : "batch disburse withdraw" } ,
18- { label : "QR Codes" , href : "/dashboard/qr" , icon : "⬜" , keywords : "scan generate merchant" } ,
19- { label : "Analytics" , href : "/dashboard/analytics" , icon : "📈" , keywords : "charts reports graph" } ,
20- { label : "Contracts" , href : "/dashboard/contracts" , icon : "🔗" , keywords : "soroban smart contract health" } ,
21- { label : "Yield Vault" , href : "/dashboard/yield" , icon : "🏦" , keywords : "apy tvl deposit" } ,
16+ export const NAV_ITEMS : NavItem [ ] = [
17+ { label : "Overview" , href : "/dashboard" , icon : "⬛" , keywords : "home summary stats" , shortcut : "o" } ,
18+ { label : "Transactions" , href : "/dashboard/transactions" , icon : "📋" , keywords : "payments social feed" , shortcut : "t" } ,
19+ { label : "Payouts" , href : "/dashboard/payouts" , icon : "💸" , keywords : "batch disburse withdraw" , shortcut : "p" } ,
20+ { label : "QR Codes" , href : "/dashboard/qr" , icon : "⬜" , keywords : "scan generate merchant" , shortcut : "q" } ,
21+ { label : "Analytics" , href : "/dashboard/analytics" , icon : "📈" , keywords : "charts reports graph" , shortcut : "a" } ,
22+ { label : "Contracts" , href : "/dashboard/contracts" , icon : "🔗" , keywords : "soroban smart contract health" , shortcut : "c" } ,
23+ { label : "Yield Vault" , href : "/dashboard/yield" , icon : "🏦" , keywords : "apy tvl deposit" , shortcut : "y" } ,
2224] ;
2325
2426interface CommandPaletteProps {
@@ -112,6 +114,9 @@ export default function CommandPalette({ open, onClose }: CommandPaletteProps) {
112114 >
113115 < span aria-hidden = "true" > { item . icon } </ span >
114116 { item . label }
117+ < kbd className = "ml-auto font-mono text-[10px] uppercase text-slate-400" >
118+ g { item . shortcut }
119+ </ kbd >
115120 </ Command . Item >
116121 ) ) }
117122 </ Command . Group >
0 commit comments