claude-os/frontend
Claude fb28e0d0e9
🐛 FIX: Remove hardcoded paths and debug console.logs
FIXES:
- Removed hardcoded user path '/Users/iamanmp/Projects'
  - Now defaults to empty string
  - User selects path via DirectoryPicker
  - Works for all users, not just one specific username

- Removed debug console.log statements
  - MainApp.tsx: Removed Project MCPs response log
  - DirectoryPicker.tsx: Removed browsing and response logs
  - Production code should not contain debug logs

IMPROVED:
- Better cross-platform compatibility
- Cleaner console output
- Professional production code

Files: frontend/src/pages/MainApp.tsx, frontend/src/components/DirectoryPicker.tsx
2025-11-04 19:16:19 +00:00
..
public Add v2.0 architecture diagram and update documentation 2025-10-31 17:23:47 -05:00
src 🐛 FIX: Remove hardcoded paths and debug console.logs 2025-11-04 19:16:19 +00:00
.gitignore Major updates to use react and agent os profiles 2025-10-23 19:23:05 -05:00
eslint.config.js Major updates to use react and agent os profiles 2025-10-23 19:23:05 -05:00
index.html Almost got the mosnter finished 2025-10-27 17:41:44 -05:00
package-lock.json Almost got the mosnter finished 2025-10-27 17:41:44 -05:00
package.json Major updates to use react and agent os profiles 2025-10-23 19:23:05 -05:00
postcss.config.js Major updates to use react and agent os profiles 2025-10-23 19:23:05 -05:00
README.md Major updates to use react and agent os profiles 2025-10-23 19:23:05 -05:00
tailwind.config.js Almost got the mosnter finished 2025-10-27 17:41:44 -05:00
tsconfig.app.json Major updates to use react and agent os profiles 2025-10-23 19:23:05 -05:00
tsconfig.json Major updates to use react and agent os profiles 2025-10-23 19:23:05 -05:00
tsconfig.node.json Major updates to use react and agent os profiles 2025-10-23 19:23:05 -05:00
vite.config.ts Almost got the mosnter finished 2025-10-27 17:41:44 -05:00

React + TypeScript + Vite

This template provides a minimal setup to get React working in Vite with HMR and some ESLint rules.

Currently, two official plugins are available:

React Compiler

The React Compiler is not enabled on this template because of its impact on dev & build performances. To add it, see this documentation.

Expanding the ESLint configuration

If you are developing a production application, we recommend updating the configuration to enable type-aware lint rules:

export default defineConfig([
  globalIgnores(['dist']),
  {
    files: ['**/*.{ts,tsx}'],
    extends: [
      // Other configs...

      // Remove tseslint.configs.recommended and replace with this
      tseslint.configs.recommendedTypeChecked,
      // Alternatively, use this for stricter rules
      tseslint.configs.strictTypeChecked,
      // Optionally, add this for stylistic rules
      tseslint.configs.stylisticTypeChecked,

      // Other configs...
    ],
    languageOptions: {
      parserOptions: {
        project: ['./tsconfig.node.json', './tsconfig.app.json'],
        tsconfigRootDir: import.meta.dirname,
      },
      // other options...
    },
  },
])

You can also install eslint-plugin-react-x and eslint-plugin-react-dom for React-specific lint rules:

// eslint.config.js
import reactX from 'eslint-plugin-react-x'
import reactDom from 'eslint-plugin-react-dom'

export default defineConfig([
  globalIgnores(['dist']),
  {
    files: ['**/*.{ts,tsx}'],
    extends: [
      // Other configs...
      // Enable lint rules for React
      reactX.configs['recommended-typescript'],
      // Enable lint rules for React DOM
      reactDom.configs.recommended,
    ],
    languageOptions: {
      parserOptions: {
        project: ['./tsconfig.node.json', './tsconfig.app.json'],
        tsconfigRootDir: import.meta.dirname,
      },
      // other options...
    },
  },
])