mirror of
https://github.com/lobehub/lobehub
synced 2026-04-21 09:37:28 +00:00
* ♻️ refactor: migrate SkillStore and IntegrationDetailModal to imperative API - Refactor SkillStore to use createModal imperative API instead of declarative Modal - Refactor IntegrationDetailModal to use createModal with IntegrationDetailContent - Remove open/setOpen state management from all calling components - Add modal-imperative.mdc rule for modal best practices - Reduce code complexity and improve maintainability * 🐛 fix: keep modal open during OAuth flow until connection completes Close modal only after isConnected becomes true, not immediately after handleConnect returns. This ensures useSkillConnect listeners stay alive to detect OAuth completion via postMessage/polling. * 🔧 chore: update dependencies and refactor markdown handling - Updated "@lobehub/ui" to version "^4.27.4" in package.json. - Replaced "markdown-to-txt" with a local utility "markdownToTxt" for converting markdown to plain text across multiple components. - Refactored imports in various files to utilize the new markdownToTxt utility, improving code consistency and maintainability. Signed-off-by: Innei <tukon479@gmail.com> --------- Signed-off-by: Innei <tukon479@gmail.com>
44 lines
1.5 KiB
Text
44 lines
1.5 KiB
Text
---
|
||
description:
|
||
globs:
|
||
alwaysApply: true
|
||
---
|
||
|
||
# Available project rules index
|
||
|
||
All following rules are saved under `.cursor/rules/` directory:
|
||
|
||
## Backend
|
||
|
||
- `drizzle-schema-style-guide.mdc` – Style guide for defining Drizzle ORM schemas
|
||
|
||
## Frontend
|
||
|
||
- `react.mdc` – React component style guide and conventions
|
||
- `i18n.mdc` – Internationalization guide using react-i18next
|
||
- `typescript.mdc` – TypeScript code style guide
|
||
- `packages/react-layout-kit.mdc` – Usage guide for react-layout-kit
|
||
- `modal-imperative.mdc` – Modal imperative API usage guide (createRawModal/createModal)
|
||
|
||
## State Management
|
||
|
||
- `zustand-action-patterns.mdc` – Recommended patterns for organizing Zustand actions
|
||
- `zustand-slice-organization.mdc` – Best practices for structuring Zustand slices
|
||
|
||
## Desktop (Electron)
|
||
|
||
- `desktop-feature-implementation.mdc` – Implementing new Electron desktop features
|
||
- `desktop-controller-tests.mdc` – Desktop controller unit testing guide
|
||
- `desktop-local-tools-implement.mdc` – Workflow to add new desktop local tools
|
||
- `desktop-menu-configuration.mdc` – Desktop menu configuration guide
|
||
- `desktop-window-management.mdc` – Desktop window management guide
|
||
|
||
## Debugging
|
||
|
||
- `debug-usage.mdc` – Using the debug package and namespace conventions
|
||
|
||
## Testing
|
||
|
||
- `testing-guide/testing-guide.mdc` – Comprehensive testing guide for Vitest
|
||
- `testing-guide/electron-ipc-test.mdc` – Electron IPC interface testing strategy
|
||
- `testing-guide/db-model-test.mdc` – Database Model testing guide
|