Files
skillshare/ui
Willie b7669c8323 feat(ui): add a Projects tab and editable defaults to the MCP page
mcp.projects had no editor, so using it meant hand-writing YAML, which is
the friction the feature set out to remove.

In global mode the MCP page gains a Projects tab. Adding a project takes a
folder and its targets. A project's page lists every global server with a
switch that saves or removes a disabled entry for the Agents that support a
per-project switch, and below it the servers that exist in that project
only. Claude Code is left out of those switches because mcp.projects cannot
turn a server off for it.

A Defaults section on the Servers tab edits mcp.targets and mcp.directTools,
which had no write path before. Direct tools is shown only once Pi is among
the effective targets, since only pi-mcp-adapter reads it; the same rule
applies in the add-project dialog and on the project page.

Every settings save sends targets and directTools together, because the API
replaces both and a value left out would be cleared.

Refs #286
2026-09-20 23:49:18 +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...
    },
  },
])