Mirrors the CredentialsInspector pattern: clicking a row opens a right-edge drawer with the full event payload pretty-printed and copyable. The table view truncates the src/dst id to 8 chars; the drawer shows the full identifier plus a SOURCE chip (TOPOLOGY / FLEET / SHARD) so operators can tell at a glance whether the orchestrator hit a MazeNET decky, a unihost fleet decky, or a SWARM shard. Source detection is purely client-side based on id shape — bare UUID → topology, "local:*" → fleet, "<host>:*" → shard. The server already returns a normalized id from list_running_deckies; this inspector just labels it. Backdrop click closes via target===currentTarget guard (per the React stop-propagation memory: never use stopPropagation on drawer panels — it breaks native event delegation). Live (in-flight stream) events use synthetic uuids prefixed "live-"; the drawer hides the EVENT UUID row and shows "LIVE EVENT" in the header for those, since the server-side id won't exist until the backend persists the row.
React + TypeScript + Vite
This template provides a minimal setup to get React working in Vite with HMR and some ESLint rules.
Currently, two official plugins are available:
- @vitejs/plugin-react uses Oxc
- @vitejs/plugin-react-swc uses SWC
React Compiler
The React Compiler is not enabled on this template because of its impact on dev & build performances. To add it, see this documentation.
Expanding the ESLint configuration
If you are developing a production application, we recommend updating the configuration to enable type-aware lint rules:
export default defineConfig([
globalIgnores(['dist']),
{
files: ['**/*.{ts,tsx}'],
extends: [
// Other configs...
// Remove tseslint.configs.recommended and replace with this
tseslint.configs.recommendedTypeChecked,
// Alternatively, use this for stricter rules
tseslint.configs.strictTypeChecked,
// Optionally, add this for stylistic rules
tseslint.configs.stylisticTypeChecked,
// Other configs...
],
languageOptions: {
parserOptions: {
project: ['./tsconfig.node.json', './tsconfig.app.json'],
tsconfigRootDir: import.meta.dirname,
},
// other options...
},
},
])
You can also install eslint-plugin-react-x and eslint-plugin-react-dom for React-specific lint rules:
// eslint.config.js
import reactX from 'eslint-plugin-react-x'
import reactDom from 'eslint-plugin-react-dom'
export default defineConfig([
globalIgnores(['dist']),
{
files: ['**/*.{ts,tsx}'],
extends: [
// Other configs...
// Enable lint rules for React
reactX.configs['recommended-typescript'],
// Enable lint rules for React DOM
reactDom.configs.recommended,
],
languageOptions: {
parserOptions: {
project: ['./tsconfig.node.json', './tsconfig.app.json'],
tsconfigRootDir: import.meta.dirname,
},
// other options...
},
},
])