When to use this skill
ALWAYS use this skill when the user mentions:
- Native alert, confirm, or file dialogs
- Unified dialog APIs across platforms
- Async dialog flows with cancellation
Trigger phrases include:
- "dialog", "alert", "confirm", "file picker", "native dialog"
- "Dialog", "Prompt", "Confirm", "File Selection"
How to use this skill
- Define dialog types and UI flows
- Configure dialog plugin capabilities and scope
- Implement async dialog calls and cancellation handling
- Provide a unified dialog service layer for reuse
Outputs
- Dialog service design
- Async and cancellation flow checklist
Scope
- Boundary: Dialog plugin usage only
- Key points: Async behavior and platform consistency
References
- https://v2.tauri.app/llms.txt
- https://v2.tauri.app/plugin/dialog/
- https://v2.tauri.app/zh-cn/plugin/dialog/
Keywords
tauri dialog, alert, confirm, file picker, native dialogs
Common Gotchas
- Version Compatibility: Note the compatibility of framework versions and dependency libraries; APIs may differ across versions
- Configuration File Format: Configuration file format errors are the most common issue; it is recommended to use your editor's syntax checking
- Environment Variables: Ensure all necessary environment variables are set correctly, and do not hardcode sensitive information
- Dependency Conflicts: Watch out for dependency conflicts when multiple versions coexist; use lock files to pin versions
- Performance Pitfalls: Pay attention to performance optimization in large-data scenarios, and avoid common issues such as N+1 queries
Usage Flow
Step 1: Environment Preparation
Ensure the development environment has the necessary dependencies and tools installed.
Step 2: Configuration Initialization
Perform basic configuration according to project requirements.
Step 3: Using Core Features
Implement the core features following the example code.
Step 4: Testing and Verification
Run tests to ensure the functionality works properly.
Step 5: Deployment and Release
After development is complete, proceed with deployment and monitoring.