AI Review Center
Commit Review Workspace ?
Select a commit on the left to inspect quality, security, business value, findings, and suggested code changes.
Project AI Score
?
68%
Quality Avg
?
74%
Security Avg
?
54%
Reviews
?
7
Review Result ?
jattin01/antfast-dashboard · 25b1f070
The commit adds hidden navigation items and a method to filter visible items, integrates these into certain UI components, and updates project listing table headers and a data row cell. The changes improve UI navigability and data presentation but have limited direct business logic or security impact.
Quality
?
70%
Security
?
80%
Business Value
?
60%
Maintainability
?
75%
Issues & Suggested Fixes
?
1AI detects the issue
2Shows file, line, or evidence
3Suggests the fix to apply
Inconsistently Scattered New Nav Items
Where
app/Support/Demo/DemoData.php:24-34
Issue / Evidence
inconsistently scattered new nav items
Suggested Fix
group additions clearly and consider documenting the reason for each hidden flag
Use Of Anonymous Function In Visiblenavite...
Where
app/Support/Demo/DemoData.php:44
Issue / Evidence
use of anonymous function in visibleNavItems
Suggested Fix
consider adding unit tests for this method to reduce regression risk
Unstyled Added Table Headers
Where
resources/views/pages/projects.blade.php:39-47
Issue / Evidence
unstyled added table headers
Suggested Fix
apply consistent UI styling to improve UX and accessibility
Inline Formatting Logic In Blade
Where
resources/views/pages/projects.blade.php:56
Issue / Evidence
inline formatting logic in blade
Suggested Fix
consider pre-processing data in controller or ViewModel for better separation of concerns
Non Descriptive
Where
commit message
Issue / Evidence
non-descriptive
Suggested Fix
improve commit message to accurately describe the purpose and impact of changes for better team understanding and future reviews
Code Change Preview · app/Support/Demo/DemoData.php
?
Removed / Before Commit
- ['route' => 'finance.index', 'icon' => 'landmark', 'label' => 'Finance'], - // ['route' => 'companies.index', 'icon' => 'building-2', 'label' => 'Companies'], - ['route' => 'projects.index', 'icon' => 'briefcase', 'label' => 'Projects'], - ['route' => 'dispatch.index', 'icon' => 'route', 'label' => 'Dispatch'], - - ['route' => 'products.index', 'icon' => 'package', 'label' => 'Products'], - ['route' => 'pricing.index', 'icon' => 'badge-dollar-sign', 'label' => 'Pricing'], - - ['route' => 'verification.index', 'icon' => 'shield-check', 'label' => 'Verification'], - ['route' => 'reports.index', 'icon' => 'bar-chart-3', 'label' => 'Reports'], - ['route' => 'notifications.index', 'icon' => 'bell', 'label' => 'Alerts'], - ['route' => 'roles.index', 'icon' => 'user-cog', 'label' => 'Roles'], - ['route' => 'settings.index', 'icon' => 'settings', 'label' => 'Settings'], - ['route' => 'b2b.index', 'icon' => 'panel-top', 'label' => 'B2B Portal'], - ]; - } - - public static function dashboardKpis(): array
Added / After Commit
+ ['route' => 'finance.index', 'icon' => 'landmark', 'label' => 'Finance'], + // ['route' => 'companies.index', 'icon' => 'building-2', 'label' => 'Companies'], + ['route' => 'projects.index', 'icon' => 'briefcase', 'label' => 'Projects'], + ['route' => 'dispatch.index', 'icon' => 'route', 'label' => 'Dispatch', 'hidden' => true], + + ['route' => 'products.index', 'icon' => 'package', 'label' => 'Products', 'hidden' => true], + ['route' => 'pricing.index', 'icon' => 'badge-dollar-sign', 'label' => 'Pricing', 'hidden' => true], + + ['route' => 'verification.index', 'icon' => 'shield-check', 'label' => 'Verification', 'hidden' => true], + ['route' => 'reports.index', 'icon' => 'bar-chart-3', 'label' => 'Reports', 'hidden' => true], + ['route' => 'notifications.index', 'icon' => 'bell', 'label' => 'Alerts', 'hidden' => true], + ['route' => 'roles.index', 'icon' => 'user-cog', 'label' => 'Roles', 'hidden' => true], + ['route' => 'settings.index', 'icon' => 'settings', 'label' => 'Settings'], + ['route' => 'b2b.index', 'icon' => 'panel-top', 'label' => 'B2B Portal', 'hidden' => true], + ]; + } + + /**
Removed / Before Commit
- @php($items = \App\Support\Demo\DemoData::navItems()) - - <div data-command-palette class="fixed inset-0 z-50 hidden items-start justify-center bg-navy-900/60 px-4 pt-[12vh] backdrop-blur-sm"> - <div class="w-full max-w-lg overflow-hidden rounded-3xl border border-white/10 bg-white shadow-lift animate-pop">
Added / After Commit
+ @php($items = \App\Support\Demo\DemoData::visibleNavItems()) + + <div data-command-palette class="fixed inset-0 z-50 hidden items-start justify-center bg-navy-900/60 px-4 pt-[12vh] backdrop-blur-sm"> + <div class="w-full max-w-lg overflow-hidden rounded-3xl border border-white/10 bg-white shadow-lift animate-pop">
Removed / Before Commit
- @php($items = \App\Support\Demo\DemoData::navItems()) - - <aside class="fixed inset-x-3 bottom-3 z-30 flex h-[76px] items-center gap-1 overflow-x-auto rounded-[1.75rem] bg-gradient-to-b from-navy-600 via-navy-700 to-navy-800 px-2 shadow-rail scrollbar-none lg:sticky lg:top-5 lg:h-[calc(100vh-2.5rem)] lg:w-[100px] lg:flex-col lg:items-center lg:gap-3 lg:overflow-visible lg:rounded-[2rem] lg:px-0 lg:py-5">
Added / After Commit
+ @php($items = \App\Support\Demo\DemoData::visibleNavItems()) + + <aside class="fixed inset-x-3 bottom-3 z-30 flex h-[76px] items-center gap-1 overflow-x-auto rounded-[1.75rem] bg-gradient-to-b from-navy-600 via-navy-700 to-navy-800 px-2 shadow-rail scrollbar-none lg:sticky lg:top-5 lg:h-[calc(100vh-2.5rem)] lg:w-[100px] lg:flex-col lg:items-center lg:gap-3 lg:overflow-visible lg:rounded-[2rem] lg:px-0 lg:py-5">
Removed / Before Commit
- <table class="w-full min-w-[1040px] border-collapse text-left"> - <thead class="sticky top-0 z-10 border-b border-ink-100 bg-white/95 backdrop-blur-xl"> - <tr class="text-[10.5px] font-extrabold uppercase tracking-wider text-ink-500"> - <th class="px-5 py-3.5">Customer</th> - <th class="px-5 py-3.5">Project Code</th> - <th class="px-5 py-3.5">Project Name</th> - <th class="px-5 py-3.5">Type</th> - <th class="px-5 py-3.5">Contractor</th> - <th class="px-5 py-3.5">Started on</th> - <th class="px-5 py-3.5">ETC</th> - <th class="px-5 py-3.5">Status</th> - <th class="px-5 py-3.5 text-right">Actions</th> - </tr> - </thead> - <tbody data-project-tbody class="divide-y divide-ink-100 bg-white"> - $search = strtolower(implode(' ', [$row['customer'], $row['code'], $row['name'], $row['type'], $row['contractor'], $row['status']])); - @endphp - <tr data-project-row data-status="{{ $row['status'] }}" data-search="{{ $search }}" class="transition hover:bg-brand-50/40">
Added / After Commit
+ <table class="w-full min-w-[1040px] border-collapse text-left"> + <thead class="sticky top-0 z-10 border-b border-ink-100 bg-white/95 backdrop-blur-xl"> + <tr class="text-[10.5px] font-extrabold uppercase tracking-wider text-ink-500"> + <th class="whitespace-nowrap px-5 py-3.5">Customer</th> + <th class="whitespace-nowrap px-5 py-3.5">Project Code</th> + <th class="whitespace-nowrap px-5 py-3.5">Project Name</th> + <th class="whitespace-nowrap px-5 py-3.5">Type</th> + <th class="whitespace-nowrap px-5 py-3.5">Contractor</th> + <th class="whitespace-nowrap px-5 py-3.5">Started on</th> + <th class="whitespace-nowrap px-5 py-3.5">ETC</th> + <th class="whitespace-nowrap px-5 py-3.5">Status</th> + <th class="whitespace-nowrap px-5 py-3.5 text-right">Actions</th> + </tr> + </thead> + <tbody data-project-tbody class="divide-y divide-ink-100 bg-white"> + $search = strtolower(implode(' ', [$row['customer'], $row['code'], $row['name'], $row['type'], $row['contractor'], $row['status']])); + @endphp + <tr data-project-row data-status="{{ $row['status'] }}" data-search="{{ $search }}" class="transition hover:bg-brand-50/40">