Files
skillshare/ui
Willie cea405bfa0 fix(mcp): let a project's off switch follow the project's targets
The dashboard stored, in each switch-only entry, the Agents it applied to
at the moment the switch was flipped. Changing the project's targets
afterwards left that list behind: it kept an Agent the project had
dropped and missed one it had added, and nothing on the page said so.
Getting it right depended on doing things in one order.

A switch that names no targets is now worked out on every plan: the
Agents the project uses that have a per-project switch and, under
mcp.projects, that the global server of that name is written to. Pi
takes the global server's piExtension. The dashboard saves the switch
that way, so the result no longer depends on the order of edits.

An entry that lists its targets is still taken as written, and an
unsupported Agent in that list is still an error. One that inherited its
targets used to fail on an Agent without a switch; it now skips it.

Refs #289
2026-09-22 01:17:59 +08:00
..
2026-04-19 09:29:18 +08: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...
    },
  },
])