Commit 129e850
committed
resolves #4931 (FR-1859)
This PR improves the Relay Infinite Scroll Select skill documentation and implementation by:
1. Introducing a clearer decision tree based on dynamic query parameter needs
2. Adding a new Pattern B (Dynamic) that provides full control over query parameters
3. Implementing `BAIUserSelect` component as a reference for email-based selection with dynamic parameters
4. Adding dynamic `first` parameter to ensure all selected values are fetched efficiently
5. Updating `BAIVFolderSelect` to use dynamic `first` parameter for better data completeness
6. Providing detailed comparison between Simple and Dynamic patterns
7. Adding comprehensive examples and best practices for both patterns
The key innovation is the dynamic `first` parameter that calculates exactly how many items to fetch based on selection count, preventing both over-fetching and under-fetching of data.
**Checklist:**
- [x] Documentation
- [ ] Minium required manager version
- [ ] Specific setting for review (eg., KB link, endpoint or how to setup)
- [ ] Minimum requirements to check during review
- [ ] Test case(s) to demonstrate the difference of before/after
1 parent f6ce207 commit 129e850
30 files changed
Lines changed: 1824 additions & 58 deletions
File tree
- .claude/skills/relay-infinite-scroll-select
- references/patterns
- packages/backend.ai-ui/src
- components/fragments
- helper
- locale
Large diffs are not rendered by default.
Lines changed: 52 additions & 8 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
31 | 31 | | |
32 | 32 | | |
33 | 33 | | |
34 | | - | |
| 34 | + | |
35 | 35 | | |
36 | 36 | | |
37 | 37 | | |
| |||
48 | 48 | | |
49 | 49 | | |
50 | 50 | | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
51 | 54 | | |
52 | 55 | | |
53 | 56 | | |
| |||
86 | 89 | | |
87 | 90 | | |
88 | 91 | | |
89 | | - | |
90 | | - | |
91 | | - | |
92 | | - | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
93 | 104 | | |
94 | 105 | | |
95 | 106 | | |
96 | 107 | | |
| 108 | + | |
| 109 | + | |
97 | 110 | | |
98 | 111 | | |
99 | 112 | | |
| |||
171 | 184 | | |
172 | 185 | | |
173 | 186 | | |
| 187 | + | |
| 188 | + | |
| 189 | + | |
| 190 | + | |
| 191 | + | |
| 192 | + | |
| 193 | + | |
| 194 | + | |
| 195 | + | |
| 196 | + | |
| 197 | + | |
| 198 | + | |
| 199 | + | |
| 200 | + | |
| 201 | + | |
| 202 | + | |
| 203 | + | |
| 204 | + | |
| 205 | + | |
| 206 | + | |
| 207 | + | |
| 208 | + | |
| 209 | + | |
| 210 | + | |
| 211 | + | |
174 | 212 | | |
175 | 213 | | |
| 214 | + | |
| 215 | + | |
176 | 216 | | |
177 | 217 | | |
178 | 218 | | |
| |||
187 | 227 | | |
188 | 228 | | |
189 | 229 | | |
190 | | - | |
191 | | - | |
192 | | - | |
| 230 | + | |
| 231 | + | |
| 232 | + | |
| 233 | + | |
| 234 | + | |
| 235 | + | |
| 236 | + | |
193 | 237 | | |
194 | 238 | | |
195 | 239 | | |
| |||
0 commit comments