feat(migrations): Rename indexes and update global integration settings fields for improved clarity and functionality
feat(admin): Add API monitoring, debug console, and system health templates for enhanced admin interface docs: Add AI system cleanup summary and audit report detailing architecture, token management, and recommendations docs: Introduce credits and tokens system guide outlining configuration, data flow, and monitoring strategies
This commit is contained in:
@@ -61,9 +61,6 @@ export default function IndustriesSectorsKeywords() {
|
||||
const [countryFilter, setCountryFilter] = useState('');
|
||||
const [difficultyFilter, setDifficultyFilter] = useState('');
|
||||
|
||||
// Check if user is admin/superuser (role is 'admin' or 'developer')
|
||||
const isAdmin = user?.role === 'admin' || user?.role === 'developer';
|
||||
|
||||
// Import modal state
|
||||
const [isImportModalOpen, setIsImportModalOpen] = useState(false);
|
||||
const [isImporting, setIsImporting] = useState(false);
|
||||
@@ -706,18 +703,6 @@ export default function IndustriesSectorsKeywords() {
|
||||
}
|
||||
}}
|
||||
bulkActions={pageConfig.bulkActions}
|
||||
customActions={
|
||||
isAdmin ? (
|
||||
<Button
|
||||
variant="secondary"
|
||||
size="sm"
|
||||
onClick={handleImportClick}
|
||||
>
|
||||
<PlusIcon className="w-4 h-4 mr-2" />
|
||||
Import Keywords
|
||||
</Button>
|
||||
) : undefined
|
||||
}
|
||||
pagination={{
|
||||
currentPage,
|
||||
totalPages,
|
||||
@@ -733,8 +718,7 @@ export default function IndustriesSectorsKeywords() {
|
||||
selectedIds,
|
||||
onSelectionChange: setSelectedIds,
|
||||
}}
|
||||
// Only show row actions for admin users
|
||||
onEdit={isAdmin ? undefined : undefined}
|
||||
onEdit={undefined}
|
||||
onDelete={undefined}
|
||||
/>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user