Skip to content

About

Inventory dashboard with TanStack Table and Velt comments, @mentions and notifications, built with Kiro IDE.

Topics

Resources

Stars

2 stars

Watchers

0 watching

Forks

Repository files navigation

Inventory Dashboard with Velt and Kiro: An inventory data grid with Velt comments, @mentions and notifications

Inventory Dashboard with Velt and Kiro

An inventory data grid with Velt comments, @mentions and notifications

A Next.js inventory dashboard built with Kiro AI IDE. A TanStack Table grid and detail view get Velt cell comments, @mentions with a custom contact list, a comments sidebar, presence and notifications.


Built by Studio1 Built with Velt Live demo

Velt docs  ·  Velt  ·  More examples  ·  studio1hq.com


Overview

A modern inventory management dashboard for warehouse and logistics teams, built with Next.js, TanStack Table and Velt using the Kiro AI IDE. Teams track stock, filter by status and discuss problems in context: comment on a cell, mention a teammate, and review every thread in a sidebar.

The README doubles as a tutorial for combining these libraries. The Kiro prompts used to build it are in docs/kiro-prompts.md.

Inventory dashboard with Velt comments

More screenshots

Item detail view

Dark mode

Kiro IDE building the app

Features

  • Data grid: TanStack Table with sorting, filtering and search, and TanStack Virtual for large datasets.
  • Cell comments: VeltCommentTool in the grid lets users comment on specific items.
  • @mentions: A custom contact list (Steve, Warehouse Manager, and Elli, Inventory Specialist) with autocomplete search, set up through the Velt contact element.
  • Comments sidebar: VeltCommentsSidebar with VeltSidebarButton for filtering and reviewing discussions.
  • Notifications and presence: VeltNotificationsTool and VeltPresence in the header.
  • Detail view: A modal with full item information.
  • Filters: Filter dropdowns and status indicators (in stock, low stock, out of stock).
  • Dark mode: Dark theme throughout the interface.

Tech stack

Layer Tool
Framework Next.js 15.2 (App Router), React 19, TypeScript
Data grid TanStack Table v8 and TanStack Virtual
Collaboration Velt (@veltdev/react)
UI Tailwind CSS v4, Radix UI, Lucide
State Zustand
Dev environment Kiro AI IDE
Deployment Vercel

Getting started

Prerequisites

  • Node.js 18 or newer
  • npm or yarn
  • A Velt API key from the Velt console

Installation

git clone https://github.com/Studio1HQ/Example-apps.git
cd Example-apps
npm install

Environment variables

Create a .env.local file in the project root.

Variable Description
NEXT_PUBLIC_VELT_API_KEY Your Velt API key, from the Velt console.

Run

npm run dev

Open http://localhost:3000. Other scripts: npm run build, npm run start, npm run lint. To deploy, run vercel --prod with the Vercel CLI.

How it works

app/page.tsx sets the Velt document to inventory-dashboard-main, loads the user list into Velt's contact element and enables custom autocomplete search. When a user types an @mention, the autocompleteSearch event filters the team list by name:

const commentElement = client.getCommentElement();
const contactElement = client.getContactElement();

commentElement.enableCustomAutocompleteSearch();
contactElement.updateContactList(users);

commentElement.on("autocompleteSearch").subscribe((inputData) => {
  if (inputData.type === "contact") {
    contactElement.updateContactList(
      users.filter((u) => u.name.toLowerCase().includes(inputData.searchText.toLowerCase())),
      { merge: false }
    );
  }
});

Sample inventory items use this shape:

interface InventoryItem {
  id: string;
  ProductName: string;
  SKU: string;
  Category: string;
  CurrentStock: number;
  MinStock: number;
  MaxStock: number;
  Status: "IN STOCK" | "LOW STOCK" | "OUT OF STOCK";
  LastUpdated: string;
  Supplier?: string;
  Location?: string;
  UnitPrice?: number;
}
├── app/                     # page.tsx (dashboard, Velt setup), layout.tsx
├── components/
│   ├── InventoryTable.tsx   # Main data grid
│   ├── DetailView.tsx       # Item detail modal
│   ├── Sidebar.tsx          # Navigation sidebar
│   ├── header.tsx           # Presence, notifications, sidebar button
│   ├── FilterDropdowns.tsx  # Filters
│   ├── VeltAuth.tsx         # Identify the user
│   └── ui/                  # Reusable UI components
├── helper/userdb.ts         # Users
├── types/delivery.ts        # Data models
├── utils/                   # Data transform and validation
├── docs/kiro-prompts.md     # Prompts used with Kiro
└── images/                  # Screenshots

The project came from this brief to Kiro: build a lightweight internal dashboard for warehouse and logistics teams to track shipment statuses, with a TanStack data grid and detail view, and Velt for contextual comments with tag mentions, reactions and sidebar filtering. A second prompt trimmed the UI.

Use cases it covers: low stock management with @mentions to warehouse managers, cell-level discussions with resolved and unresolved state, and filtering items by active discussions.

Resources



Studio1

Built by Studio1, the technical content and DevRel partner for devtool teams. Made with Velt.
Browse more open-source examples at github.com/Studio1HQ.

Website Book a call X LinkedIn

studio1hq.com · Technical content, docs, video and DevRel for devtools

About

Inventory dashboard with TanStack Table and Velt comments, @mentions and notifications, built with Kiro IDE.

Topics

Resources

Stars

2 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages