Phase 1: Code cleanup - remove unused pages, components, and console.logs
- Deleted 6 empty folders (pages/Admin, pages/admin, pages/settings, components/debug, components/widgets, components/metrics) - Removed unused template components: - ecommerce/ (7 files) - sample-componeents/ (2 HTML files) - charts/bar/ and charts/line/ - tables/BasicTables/ - Deleted deprecated file: CurrentProcessingCard.old.tsx - Removed console.log statements from: - UserProfile components (UserMetaCard, UserAddressCard, UserInfoCard) - Automation/ConfigModal - ImageQueueModal (8 statements) - ImageGenerationCard (7 statements) - Applied ESLint auto-fixes (9 errors fixed) - All builds pass ✓ - TypeScript compiles without errors ✓
This commit is contained in:
@@ -120,7 +120,7 @@ export default function IndustriesSectorsKeywords() {
|
||||
|
||||
try {
|
||||
// Get already-attached keywords across ALL sectors for this site
|
||||
let attachedSeedKeywordIds = new Set<number>();
|
||||
const attachedSeedKeywordIds = new Set<number>();
|
||||
try {
|
||||
const { fetchKeywords, fetchSiteSectors } = await import('../../services/api');
|
||||
// Get all sectors for the site
|
||||
|
||||
@@ -410,7 +410,7 @@ export default function SiteSettings() {
|
||||
const loadIndustries = async () => {
|
||||
try {
|
||||
const response = await fetchIndustries();
|
||||
let allIndustries = response.industries || [];
|
||||
const allIndustries = response.industries || [];
|
||||
|
||||
// Note: For existing sites with industries already configured,
|
||||
// we show ALL industries so users can change their selection.
|
||||
|
||||
Reference in New Issue
Block a user