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:
IGNY8 VPS (Salman)
2026-01-09 15:22:23 +00:00
parent 7bb9d813f2
commit 0526553c9b
24 changed files with 905 additions and 2941 deletions

View File

@@ -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

View File

@@ -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.