Skip to content

EvanCarson/AI_UI

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Tenant Usage Grid UI

A small deployable TypeScript UI that provides an editable grid for:

  • Tenant ID
  • Branch Name
  • Usage
  • URL list (Tag + URL)
  • OMS Firm
  • GIO Firm
  • Note
  • Status with color icon (Ready, WIP, Not Started, Sunset)

Sample data (from JSON)

New UI capabilities

  • Read mode / Edit mode toggle for cleaner presentation vs data maintenance
  • Action column hidden in read mode and only shown in edit mode
  • Rich URL editor in edit mode: each URL entry has Tag + URL (for example Genesis, Airflow)
  • Column filters grouped in a dedicated filter panel
  • Group by controls for Status, Usage, or Branch

Default rows are loaded from src/data/seedRecords.json (including tenant IDs 811 and 810).

If you change data while testing, click Reset to JSON seed data in the UI to reload from the JSON file.

Run locally

npm install
npm run dev

Open http://localhost:5173.

Build for deployment

npm run build

The production assets are generated into dist/ and can be deployed to any static hosting service.

Debug guide (WebStorm)

1) Quick debug in browser tools

  1. Start app: npm run dev
  2. Open browser DevTools (F12)
  3. Inspect app state in Application > Local Storage key tenant-usage-grid-records
  4. Clear local storage to re-test first-load behavior from JSON seed data

2) Debug with WebStorm

  1. Run npm install
  2. In WebStorm, open Run | Edit Configurations...
  3. Add an npm configuration:
    • package.json: project root
    • Command: run
    • Scripts: dev
  4. Run the npm dev config so Vite starts on http://localhost:5173
  5. Add a JavaScript Debug configuration with URL http://localhost:5173
  6. Start the JavaScript Debug config and set breakpoints in src/App.tsx

3) Useful debug points

  • getSeedData() to confirm JSON parsing/normalization
  • save() to check localStorage writes
  • updateField() to inspect row edits

4) TypeScript check

npm run typecheck

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors