1.1 KiB
1.1 KiB
Log: Moved Provision Agent Button inside the Table Card
Trigger: Move the "+ Provision Agent" button from the main page header to the table header card to keep it contextually unified. Date: 2026-07-23 09:30 WIB Affected files:
src/app/(dashboard)/agents/page.tsxsrc/app/(dashboard)/agents/AgentsTableSection.tsx
Solution
- Removed the blue
+ Provision Agentbutton from the page header block insidesrc/app/(dashboard)/agents/page.tsx, leaving only the help trigger trigger. - Updated props for
AgentsTableSectionto acceptroleandonProvisionClick. Passed() => setIsCreateOpen(true)to trigger the provision modal. - Updated
src/app/(dashboard)/agents/AgentsTableSection.tsx:- Added
Plusicon import. - Refactored the
CardHeaderstyle to use a flex row layout:flex flex-row items-center justify-between space-y-0 pb-4. - Placed the blue
+ Provision Agentbutton on the right side of the card header, aligned with the card title.
- Added
- Verified that Next.js dev server and TypeScript check compile cleanly with no errors.