giselle / rules
Cursor rule556 starsChanged 12 months agoApache-2.0View on GitHub
Guide to edit the Workspace Tour feature
Where files are headingNew Cursor rule files have more rules about planning and tracking tasks, and fewer about code style.
Of the Cursor rule files we read, the 1,527 first seen in the last six months, against the older ones: the kind of rule that gained most share, and the kind that lost most. About files like this in general, not this one, and an estimate, since a kind is a pattern in the words.
In this repository11 other files it gives its agents.
- AGENTS.mdAGENTS.md
- docs/AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- .cursor/rules/design-mode.mdcCursor rule
- .cursor/rules/development-guide.mdcCursor rule
- .cursor/rules/language-support.mdcCursor rule
- .cursor/rules/naming-guide.mdcCursor rule
- .cursor/rules/nodejs.mdcCursor rule
- .cursor/rules/update-ai-sdk.mdcCursor rule
- .cursor/rules/vercel-cli.mdcCursor rule
- add-modelSkill
The file
Show its rules and text
We split this edit-workspace-tour.mdc into the rules it gives an agent
13 rules. About 0 are common, 5 are distinctive, and 8 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈5
Distinctive · estimate
This author's own choices. Worth a look.
8
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 72
Update imports and references in workspace-tour.tsx
- Very specific: line 76
Add a new step to the tourSteps array in steps.ts
- Very specific: line 77
Create a corresponding component in workspace-tour.tsx (follow pattern of existing steps)
- Very specific: line 78
Add the new step to the switch statement in the main WorkspaceTour component
- Very specific: line 83
Update the TourGlobalStyles component for animation changes
- Very specific: line 111
Add your image to the assets/ directory
- Distinctive: line 113
Import your new image at the top of the file:
- Very specific: line 118
Update the imageSrc prop to use your new image:
- Very specific: line 127
Update the target property with the correct CSS selector:
- Distinctive: line 150
Keep step content concise and focused on a single concept
- Distinctive: line 151
Use high-quality visuals that clearly demonstrate the feature
- Distinctive: line 152
Test selectors on different screen sizes to ensure elements are highlighted properly
- Distinctive: line 154
Consider accessibility when designing the tour experience
≈ “Common” is an estimate: at least 1 in 5 of the 3,030 Cursor rule files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
---
description: Guide to edit the Workspace Tour feature
globs: internal-packages/workflow-designer-ui/src/editor/workspace-tour/*
alwaysApply: false
---
# Guide to Edit Workspace Tour
The workspace tour is a user onboarding experience that guides new users through the Giselle workspace interface. This guide will help you understand the structure and make modifications to the tour.
## File Structure
The workspace tour is located in:
```
internal-packages/workflow-designer-ui/src/editor/workspace-tour/
```
It contains:
- [index.ts](internal-packages/workflow-designer-ui/src/editor/workspace-tour/index.ts) - Exports components and types
- [steps.ts](internal-packages/workflow-designer-ui/src/editor/workspace-tour/steps.ts) - Defines the tour steps content
- [workspace-tour.tsx](internal-packages/workflow-designer-ui/src/editor/workspace-tour/workspace-tour.tsx) - Main component implementation
- `assets/` - Images and GIFs for tour steps
## Key Components
1. **TourStep Interface** (in `workspace-tour.tsx`)
```typescript
export type TourStep = {
target?: string; // CSS selector for element to highlight
title: string;
content: string;
placement?: "top" | "bottom" | "left" | "right";
};
```
2. **Tour Steps** (in `steps.ts`)
```typescript
export const tourSteps: TourStep[] = [
{
title: "Welcome to Giselle",
content: "This platform helps you build and manage AI workflows easily.",
placement: "bottom",
},
// Additional steps...
];
```
3. **Step Components** (in `workspace-tour.tsx`)
- `TourStep1` - Overview with 3 columns
- `TourStep2` - Toolbar tutorial with arrow
- `TourStep3` - Large centered card with GIF
- `TourStep4` - Small centered card with GIF
- `TourStep5` - Card with arrow in top-right corner
- `TourStep6` - Final step in bottom-left corner
4. **Visual Components**
- `TourCard` - Reusable card component
- `NavigationFooter` - Navigation controls
- `TourGlobalStyles` - CSS animations
- `TourOverlay` - Transparent clickable overlay
## Making Changes
### To Edit Tour Content
1. Modify the `tourSteps` array in `steps.ts` to change text, target elements, or placement
2. Be careful with CSS selectors in the `target` property - these need to match elements in the UI
### To Change Tour Visuals
1. Replace GIFs and images in the `assets/` directory
2. Update imports and references in `workspace-tour.tsx`
### To Add a New Step
1. Add a new step to the `tourSteps` array in `steps.ts`
2. Create a corresponding component in `workspace-tour.tsx` (follow pattern of existing steps)
3. Add the new step to the switch statement in the main `WorkspaceTour` component
### To Change Step Styling
1. Modify the `CARD_STYLES` constants in `workspace-tour.tsx`
2. Update the `TourGlobalStyles` component for animation changes
## Implementation Notes
- The tour uses React portals to render above other UI elements
- CSS selectors target specific UI elements to highlight
- Animation effects use CSS keyframes
- Navigation manages state between steps
## How To...
### Edit Step Text
1. Open [steps.ts](internal-packages/workflow-designer-ui/src/editor/workspace-tour/steps.ts)
2. Find the step you want to modify in the `tourSteps` array
3. Edit the `title` and `content` properties:
```typescript
{
title: "Your New Title",
content: "Your new content with <a href=\"...\">links</a> if needed",
placement: "bottom",
}
```
4. For HTML content in steps, use appropriate HTML tags inside the content string
### Change Step Images
1. Prepare your new GIF or PNG image (recommended dimensions: ~450px width)
2. Add your image to the `assets/` directory
3. In [workspace-tour.tsx](internal-packages/workflow-designer-ui/src/editor/workspace-tour/workspace-tour.tsx):
- Import your new image at the top of the file:
```typescript
import myNewImage from "./assets/my-new-image.gif";
```
- Find the appropriate step component (e.g., `TourStep2`)
- Update the `imageSrc` prop to use your new image:
```typescript
imageSrc={myNewImage}
```
### Modify CSS Selectors for Highlighting
1. Open [steps.ts](internal-packages/workflow-designer-ui/src/editor/workspace-tour/steps.ts)
2. Find the step that needs to target a different element
3. Update the `target` property with the correct CSS selector:
```typescript
{
title: "Node Settings",
content: "Double-tap nodes to edit settings...",
placement: "left",
target: ".your-new-css-selector",
}
```
4. Complex selectors may need escaping (note the double backslashes in existing selectors)
### Adjust Positioning
1. In [workspace-tour.tsx](internal-packages/workflow-designer-ui/src/editor/workspace-tour/workspace-tour.tsx):
2. Find the step component you need to reposition
3. Modify CSS positioning in the component, for example:
```jsx
<div className="relative pointer-events-none mt-[140px] mr-8">
```
4. Adjust values like `mt-[140px]` (margin-top) and `mr-8` (margin-right) as needed
## Best Practices
1. Keep step content concise and focused on a single concept
2. Use high-quality visuals that clearly demonstrate the feature
3. Test selectors on different screen sizes to ensure elements are highlighted properly
4. Maintain consistent styling across all steps
5. Consider accessibility when designing the tour experienceDoes it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

