Commit b3dde6b
authored
fix: unify icon display for new builder (refly-ai#1604)
* fix: remove content selection
- Eliminated unnecessary context and selection logic from ActionStepCard, CollaborativeEditor, ResourceContent, and related components to streamline functionality and improve performance.
- Removed buildContextItem and getSourceNode functions that were not utilized, enhancing code clarity.
- Updated components to ensure proper handling of potentially undefined values using optional chaining and nullish coalescing.
- Ensured adherence to Tailwind CSS for consistent styling across components.
* refactor(icon): streamline file handling and icon rendering in various components
- Removed unnecessary resource type and metadata handling in FileItem, ContextItem, and other components to simplify file rendering.
- Updated NodeIcon usage to directly accept filename for better clarity and performance.
- Enhanced mention handling in MentionNodeView and related components to utilize new class names for consistent styling.
- Ensured adherence to Tailwind CSS for styling and optimized component rendering with React.memo.
- Applied optional chaining and nullish coalescing for safer property access throughout the codebase.
* fix: enable type check and remove type errors
- Updated the rsbuild.config.ts to enable type checking based on environment variables for better development practices.
- Removed the useCanvasInitialActions hook to simplify the canvas component logic and improve performance.
- Cleaned up imports in the canvas index file and adjusted the ChatBox component to eliminate unnecessary properties.
- Ensured adherence to best practices for property access and component structure, including the use of optional chaining and nullish coalescing.
* fix: further fix build errors and remove deprecated components
- Removed FollowingActions component from MediaActionContainer and refactored the component to streamline its logic.
- Eliminated unnecessary context items and model info preparation, enhancing performance and maintainability.
- Ensured adherence to best practices for property access using optional chaining and nullish coalescing.
- Updated ResourceNodePreview and ActionContainer to remove FollowingActions, improving overall component clarity and performance.
- Applied Tailwind CSS for consistent styling across components.1 parent 68a72f0 commit b3dde6b
File tree
45 files changed
+116
-2710
lines changed- apps/web
- packages/ai-workspace-common/src
- components
- canvas
- canvas-resources/file-list
- common/label-display
- copilot
- launchpad
- context-manager
- components/base-mark-context-selector
- rich-chat-input
- variable
- node-preview
- skill-response
- common
- document
- editor/components
- generative
- block
- common
- inline
- markdown/plugins/tool-call
- resource-view
- settings/subscribe-modal
- workflow-app
- hooks
- canvas
- utils
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
45 files changed
+116
-2710
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
21 | | - | |
22 | | - | |
| 21 | + | |
| 22 | + | |
23 | 23 | | |
24 | 24 | | |
25 | 25 | | |
| |||
Lines changed: 2 additions & 22 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
7 | | - | |
| 7 | + | |
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
| |||
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
18 | | - | |
19 | | - | |
20 | | - | |
21 | | - | |
22 | | - | |
23 | | - | |
24 | | - | |
25 | | - | |
26 | | - | |
27 | | - | |
28 | | - | |
29 | | - | |
30 | | - | |
31 | | - | |
32 | 18 | | |
33 | 19 | | |
34 | 20 | | |
| |||
48 | 34 | | |
49 | 35 | | |
50 | 36 | | |
51 | | - | |
52 | | - | |
53 | | - | |
54 | | - | |
55 | | - | |
56 | | - | |
57 | | - | |
| 37 | + | |
58 | 38 | | |
59 | 39 | | |
60 | 40 | | |
| |||
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
30 | 30 | | |
31 | 31 | | |
32 | 32 | | |
33 | | - | |
| 33 | + | |
34 | 34 | | |
35 | 35 | | |
36 | 36 | | |
| |||
Lines changed: 0 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
82 | 82 | | |
83 | 83 | | |
84 | 84 | | |
85 | | - | |
86 | 85 | | |
87 | | - | |
88 | | - | |
89 | 86 | | |
90 | 87 | | |
91 | 88 | | |
| |||
Lines changed: 0 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
60 | 60 | | |
61 | 61 | | |
62 | 62 | | |
63 | | - | |
64 | 63 | | |
65 | 64 | | |
66 | 65 | | |
| |||
136 | 135 | | |
137 | 136 | | |
138 | 137 | | |
139 | | - | |
140 | | - | |
141 | 138 | | |
142 | 139 | | |
143 | 140 | | |
| |||
Lines changed: 1 addition & 7 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
34 | 34 | | |
35 | 35 | | |
36 | 36 | | |
37 | | - | |
38 | | - | |
39 | | - | |
40 | | - | |
41 | | - | |
42 | | - | |
43 | | - | |
| 37 | + | |
44 | 38 | | |
45 | 39 | | |
46 | 40 | | |
| |||
Lines changed: 1 addition & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
151 | 151 | | |
152 | 152 | | |
153 | 153 | | |
154 | | - | |
155 | | - | |
| 154 | + | |
156 | 155 | | |
157 | 156 | | |
158 | 157 | | |
| |||
packages/ai-workspace-common/src/components/canvas/launchpad/rich-chat-input/mention-node-view.tsx
Lines changed: 30 additions & 26 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
| 2 | + | |
2 | 3 | | |
3 | 4 | | |
4 | 5 | | |
5 | | - | |
| 6 | + | |
6 | 7 | | |
7 | 8 | | |
| 9 | + | |
| 10 | + | |
8 | 11 | | |
9 | 12 | | |
10 | 13 | | |
11 | 14 | | |
12 | 15 | | |
13 | 16 | | |
14 | 17 | | |
15 | | - | |
| 18 | + | |
16 | 19 | | |
17 | | - | |
| 20 | + | |
18 | 21 | | |
19 | | - | |
20 | | - | |
21 | | - | |
22 | | - | |
23 | | - | |
24 | | - | |
25 | | - | |
26 | | - | |
27 | | - | |
| 22 | + | |
| 23 | + | |
28 | 24 | | |
29 | | - | |
30 | | - | |
| 25 | + | |
| 26 | + | |
31 | 27 | | |
32 | | - | |
33 | | - | |
34 | | - | |
35 | | - | |
36 | | - | |
37 | | - | |
38 | | - | |
39 | | - | |
40 | | - | |
| 28 | + | |
41 | 29 | | |
42 | 30 | | |
43 | 31 | | |
| |||
55 | 43 | | |
56 | 44 | | |
57 | 45 | | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
58 | 62 | | |
59 | 63 | | |
60 | 64 | | |
61 | | - | |
62 | | - | |
| 65 | + | |
| 66 | + | |
63 | 67 | | |
64 | 68 | | |
65 | 69 | | |
66 | 70 | | |
67 | | - | |
| 71 | + | |
68 | 72 | | |
69 | 73 | | |
70 | 74 | | |
| |||
Lines changed: 2 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
487 | 487 | | |
488 | 488 | | |
489 | 489 | | |
490 | | - | |
| 490 | + | |
491 | 491 | | |
492 | | - | |
493 | | - | |
494 | | - | |
| 492 | + | |
495 | 493 | | |
496 | 494 | | |
497 | 495 | | |
| |||
Lines changed: 0 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
43 | 43 | | |
44 | 44 | | |
45 | 45 | | |
46 | | - | |
47 | 46 | | |
48 | 47 | | |
49 | 48 | | |
| |||
0 commit comments