fix: pre-populate classifications instead of syncing from Autotask API

- Autotask REST API doesn't expose ClassificationIcons endpoint
- Created migration to populate 17 standard classification icons
- Removed sync button from UI (classifications are pre-loaded)
- Includes: Tools Only, Co-Managed, Wulf 365 Essentials, Partner, etc.
- Users can now select any classification to exclude from kiosk
This commit is contained in:
lorentz 2026-02-03 20:54:35 -05:00
parent b222d97225
commit f27b23bec8
3 changed files with 30 additions and 13 deletions

View file

@ -293,17 +293,7 @@ export default function KioskSettingsPage() {
{/* Excluded Classifications Section */}
<div className="bg-gray-900 rounded-lg p-6 border border-gray-800">
<div className="flex items-center justify-between mb-4">
<h2 className="text-xl font-semibold">Excluded Company Classifications</h2>
<Button
onClick={syncClassifications}
disabled={syncing}
className="bg-green-600 hover:bg-green-700"
size="sm"
>
{syncing ? 'Syncing...' : 'Sync from Autotask'}
</Button>
</div>
<h2 className="text-xl font-semibold mb-4">Excluded Company Classifications</h2>
<p className="text-gray-400 mb-4">
Tickets from companies with these classifications will not appear in the kiosk display.
</p>
@ -312,7 +302,7 @@ export default function KioskSettingsPage() {
{classifications.length === 0 ? (
<div className="text-center py-8 text-gray-500">
<p className="mb-2">No classifications found.</p>
<p className="text-sm">Click "Sync from Autotask" to load classification icons.</p>
<p className="text-sm">Refresh the page to load classifications.</p>
</div>
) : (
<div className="space-y-2">