blixify-ui-web-mcp 0.1.3 → 0.1.19

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (168) hide show
  1. package/lib/components/action/button/README.md +12 -11
  2. package/lib/components/action/button/button.stories.tsx +38 -27
  3. package/lib/components/action/buttonGroup/buttonGroup.stories.tsx +82 -16
  4. package/lib/components/action/iconButton/README.md +1 -0
  5. package/lib/components/action/iconButton/iconButton.stories.tsx +6 -12
  6. package/lib/components/action/radioList/radioList.stories.tsx +10 -16
  7. package/lib/components/action/slider/slider.stories.tsx +9 -15
  8. package/lib/components/action/textButton/textButton.stories.tsx +6 -12
  9. package/lib/components/action/toggle/toggle.stories.tsx +6 -12
  10. package/lib/components/advanced/collapse/collapse.stories.tsx +240 -24
  11. package/lib/components/advanced/infoWindow/infoWindow.stories.tsx +10 -16
  12. package/lib/components/advanced/popUp/README.md +33 -7
  13. package/lib/components/advanced/popUp/popUp.stories.tsx +9 -15
  14. package/lib/components/auth/bareSignIn/bareSignIn.stories.tsx +36 -16
  15. package/lib/components/auth/bareSignUp/bareSignUp.stories.tsx +7 -13
  16. package/lib/components/auth/signIn/signIn.stories.tsx +4 -10
  17. package/lib/components/auth/signUp/signUp.stories.tsx +4 -10
  18. package/lib/components/chart/areaChart/areaChart.stories.tsx +12 -18
  19. package/lib/components/chart/barChart/barChart.stories.tsx +12 -18
  20. package/lib/components/chart/boxPlotChart/boxPlotChart.stories.tsx +11 -17
  21. package/lib/components/chart/bubbleChart/bubbleChart.stories.tsx +11 -17
  22. package/lib/components/chart/card/card.stories.tsx +172 -38
  23. package/lib/components/chart/ganttChart/ganttChart.stories.tsx +10 -16
  24. package/lib/components/chart/heatmapChart/heatmapChart.stories.tsx +11 -17
  25. package/lib/components/chart/lineChart/lineChart.stories.tsx +8 -14
  26. package/lib/components/chart/pieChart/pieChart.stories.tsx +11 -17
  27. package/lib/components/chart/polarAreaChart/polarAreaChart.stories.tsx +11 -17
  28. package/lib/components/chart/radarChart/radarChart.stories.tsx +6 -12
  29. package/lib/components/chart/radialBar/radialChart.stories.tsx +4 -10
  30. package/lib/components/chart/rangeBarChart/rangeBarChart.stories.tsx +8 -14
  31. package/lib/components/chart/statsCard/statsCard.stories.tsx +12 -18
  32. package/lib/components/chart/treemapChart/treemapChart.stories.tsx +11 -17
  33. package/lib/components/chat/chatAnchor/README.md +7 -0
  34. package/lib/components/chat/chatAnchor/chatAnchor.stories.tsx +15 -21
  35. package/lib/components/chat/chatBase/README.md +103 -22
  36. package/lib/components/chat/chatBase/chatBase.stories.tsx +657 -57
  37. package/lib/components/chat/chatDashboard/README.md +17 -15
  38. package/lib/components/chat/chatDashboard/chatDashboard.stories.tsx +358 -46
  39. package/lib/components/data/dataGraph/dataGraph.stories.tsx +8 -14
  40. package/lib/components/data/dataReference/dataReference.stories.tsx +9 -15
  41. package/lib/components/data/dataTemplate/README.md +443 -129
  42. package/lib/components/data/dataTemplate/dataModule.stories.tsx +10 -15
  43. package/lib/components/data/dataTemplate/dataTemplate.stories.tsx +20 -34
  44. package/lib/components/data/dataWrapper/README.md +207 -84
  45. package/lib/components/data/dataWrapper/dataWrapper.consumer.stories.tsx +2125 -0
  46. package/lib/components/data/dataWrapper/dataWrapper.edit.stories.tsx +607 -0
  47. package/lib/components/data/dataWrapper/dataWrapper.utils.stories.tsx +576 -0
  48. package/lib/components/data/dataWrapper/dataWrapper.view.stories.tsx +1273 -0
  49. package/lib/components/data/flexFilter/flexFilter.stories.tsx +171 -0
  50. package/lib/components/data/queryForm/queryForm.stories.tsx +6 -12
  51. package/lib/components/data/readQuery/readQuery.stories.tsx +6 -11
  52. package/lib/components/data/readQueryHoc/readQueryHoc.stories.tsx +6 -12
  53. package/lib/components/data/writeQuery/README.md +21 -10
  54. package/lib/components/data/writeQuery/writeQuery.stories.tsx +6 -10
  55. package/lib/components/design/actionSection/actionSection.stories.tsx +10 -14
  56. package/lib/components/design/banner/banner.stories.tsx +6 -12
  57. package/lib/components/design/bannerAction/bannerAction.stories.tsx +100 -21
  58. package/lib/components/design/blogSection/blogSection.stories.tsx +6 -12
  59. package/lib/components/design/carouselSection/carouselSection.stories.tsx +6 -12
  60. package/lib/components/design/designList/designList.stories.tsx +6 -12
  61. package/lib/components/design/faq/faq.stories.tsx +53 -31
  62. package/lib/components/design/fileGrid/fileGrid.stories.tsx +10 -16
  63. package/lib/components/design/fileViewer/fileViewer.stories.tsx +6 -12
  64. package/lib/components/design/footerSection/footerSection.stories.tsx +6 -12
  65. package/lib/components/design/googleReview/googleReview.stories.tsx +6 -12
  66. package/lib/components/design/heroSection/heroSection.stories.tsx +10 -16
  67. package/lib/components/design/iconList/iconList.stories.tsx +6 -12
  68. package/lib/components/design/imageGallery/imageGallery.stories.tsx +6 -12
  69. package/lib/components/design/imageZoom/imageZoom.stories.tsx +6 -12
  70. package/lib/components/design/leftContent/leftContent.stories.tsx +6 -12
  71. package/lib/components/design/logoCloud/logoCloud.stories.tsx +6 -12
  72. package/lib/components/design/onboarding/onboarding.stories.tsx +8 -14
  73. package/lib/components/design/pricing/pricing.stories.tsx +6 -12
  74. package/lib/components/design/rightContent/rightContent.stories.tsx +6 -12
  75. package/lib/components/design/sectionList/sectionList.stories.tsx +6 -12
  76. package/lib/components/design/teams/teams.stories.tsx +6 -12
  77. package/lib/components/display/alert/alert.stories.tsx +8 -14
  78. package/lib/components/display/calendar/README.md +49 -0
  79. package/lib/components/display/calendar/calendar.stories.tsx +78 -35
  80. package/lib/components/display/clipboard/clipboard.stories.tsx +6 -12
  81. package/lib/components/display/detailList/detailList.stories.tsx +172 -48
  82. package/lib/components/display/drawer/README.md +44 -11
  83. package/lib/components/display/drawer/drawer.stories.tsx +71 -16
  84. package/lib/components/display/emptyState/emptyState.stories.tsx +47 -15
  85. package/lib/components/display/feeds/feeds.stories.tsx +6 -12
  86. package/lib/components/display/flexTable/README.md +11 -7
  87. package/lib/components/display/flexTable/flexTable.stories.tsx +318 -20
  88. package/lib/components/display/grid/README.md +29 -30
  89. package/lib/components/display/grid/grid.stories.tsx +16 -23
  90. package/lib/components/display/kanban/kanban.stories.tsx +17 -23
  91. package/lib/components/display/list/README.md +30 -29
  92. package/lib/components/display/list/list.stories.tsx +11 -17
  93. package/lib/components/display/loading/loading.stories.tsx +7 -12
  94. package/lib/components/display/mapView/mapView.stories.tsx +9 -15
  95. package/lib/components/display/modal/modal.stories.tsx +6 -13
  96. package/lib/components/display/newCalendar/README.md +163 -0
  97. package/lib/components/display/newCalendar/newCalendar.stories.tsx +292 -0
  98. package/lib/components/display/newFeeds/README.md +53 -0
  99. package/lib/components/display/newFeeds/newFeeds.stories.tsx +104 -0
  100. package/lib/components/display/newKanban/README.md +25 -0
  101. package/lib/components/display/newKanban/newKanban.stories.tsx +131 -0
  102. package/lib/components/display/newList/README.md +30 -0
  103. package/lib/components/display/newList/newList.stories.tsx +231 -0
  104. package/lib/components/display/newPagination/README.md +15 -0
  105. package/lib/components/display/newTable/README.md +121 -0
  106. package/lib/components/display/newTable/newTable.stories.tsx +551 -0
  107. package/lib/components/display/notification/notification.stories.tsx +6 -12
  108. package/lib/components/display/progress/progress.stories.tsx +7 -12
  109. package/lib/components/display/stepper/README.md +4 -0
  110. package/lib/components/display/stepper/stepper.stories.tsx +70 -23
  111. package/lib/components/display/table/README.md +38 -37
  112. package/lib/components/display/table/table.stories.tsx +34 -36
  113. package/lib/components/display/tag/tag.stories.tsx +34 -40
  114. package/lib/components/input/address/address.stories.tsx +12 -18
  115. package/lib/components/input/canvas/canvas.stories.tsx +12 -18
  116. package/lib/components/input/checkbox/checkbox.stories.tsx +7 -13
  117. package/lib/components/input/datePicker/datePicker.stories.tsx +41 -11
  118. package/lib/components/input/form/form.stories.tsx +11 -17
  119. package/lib/components/input/markdown/README.md +80 -2
  120. package/lib/components/input/markdown/markdown.stories.tsx +83 -32
  121. package/lib/components/input/monthYearPicker/monthYearPicker.stories.tsx +52 -24
  122. package/lib/components/input/netPromoterScore/netPromoterScore.stories.tsx +6 -12
  123. package/lib/components/input/rating/rating.stories.tsx +6 -12
  124. package/lib/components/input/select/README.md +31 -29
  125. package/lib/components/input/select/select.stories.tsx +33 -39
  126. package/lib/components/input/signature/signature.stories.tsx +12 -18
  127. package/lib/components/input/textArea/textArea.stories.tsx +6 -12
  128. package/lib/components/input/textInput/textinput.stories.tsx +14 -20
  129. package/lib/components/input/uploadInput/uploadInput.stories.tsx +143 -19
  130. package/lib/components/navigation/bars/README.md +27 -0
  131. package/lib/components/navigation/bars/bars.stories.tsx +56 -19
  132. package/lib/components/navigation/bottomTab/bottomTab.stories.tsx +7 -12
  133. package/lib/components/navigation/breadcrumb/breadcrumb.stories.tsx +8 -14
  134. package/lib/components/navigation/header/header.stories.tsx +33 -21
  135. package/lib/components/navigation/leftNav/leftNav.stories.tsx +10 -16
  136. package/lib/components/navigation/tabs/tabs.stories.tsx +10 -16
  137. package/lib/components/structure/column/column.stories.tsx +10 -15
  138. package/lib/components/structure/container/container.stories.tsx +8 -13
  139. package/lib/components/structure/link/link.stories.tsx +11 -17
  140. package/lib/components/structure/text/text.stories.tsx +12 -17
  141. package/lib/components/template/authPage/authPage.stories.tsx +6 -5
  142. package/lib/components/template/calendarView/calendarView.stories.tsx +726 -0
  143. package/lib/components/template/chatDashboard/chatDashboard.stories.tsx +497 -0
  144. package/lib/components/template/landingPage/landingPage.stories.tsx +10 -7
  145. package/lib/components/template/mapLayout/mapLayout.stories.tsx +519 -0
  146. package/lib/components/template/productListing/productListing.stories.tsx +7 -13
  147. package/lib/components/template/productOverview/productOverview.stories.tsx +5 -11
  148. package/lib/components/template/shoppingCart/shoppingCart.stories.tsx +6 -12
  149. package/lib/components/template/userHomePage/userHomePage.stories.tsx +384 -524
  150. package/lib/components/template/userRankingDashboard/userRankingDashboard.stories.tsx +145 -75
  151. package/lib/mcp/tools/componentsRoot.d.ts +2 -0
  152. package/lib/mcp/tools/componentsRoot.d.ts.map +1 -0
  153. package/lib/mcp/tools/componentsRoot.js +59 -0
  154. package/lib/mcp/tools/componentsRoot.js.map +1 -0
  155. package/lib/mcp/tools/getBackendComponent.d.ts.map +1 -1
  156. package/lib/mcp/tools/getBackendComponent.js +2 -5
  157. package/lib/mcp/tools/getBackendComponent.js.map +1 -1
  158. package/lib/mcp/tools/getComponent.d.ts.map +1 -1
  159. package/lib/mcp/tools/getComponent.js +2 -5
  160. package/lib/mcp/tools/getComponent.js.map +1 -1
  161. package/lib/mcp/tools/listComponents.d.ts.map +1 -1
  162. package/lib/mcp/tools/listComponents.js +15 -10
  163. package/lib/mcp/tools/listComponents.js.map +1 -1
  164. package/lib/mcp/tools/suggestTemplate.d.ts.map +1 -1
  165. package/lib/mcp/tools/suggestTemplate.js +107 -21
  166. package/lib/mcp/tools/suggestTemplate.js.map +1 -1
  167. package/package.json +1 -1
  168. package/lib/components/data/dataWrapper/dataWrapper.stories.tsx +0 -831
@@ -1,21 +1,43 @@
1
- import { storiesOf } from "@storybook/react";
1
+ import { Disclosure, Menu, Popover, Transition } from "@headlessui/react";
2
+ import {
3
+ BanknotesIcon,
4
+ ClockIcon,
5
+ CurrencyDollarIcon,
6
+ DocumentTextIcon,
7
+ UsersIcon,
8
+ } from "@heroicons/react/24/outline";
9
+ import React from "react";
2
10
  import { useState } from "react";
3
11
  import { Button } from "../../action/button";
4
12
  import { ButtonGroup } from "../../action/buttonGroup";
13
+ import { Card } from "../../chart/card";
5
14
  import { LineChart } from "../../chart/lineChart";
15
+ import { NewList, NewListItem } from "../../display/newList";
6
16
  import { Select } from "../../input/select";
7
17
  import { TextInput } from "../../input/textInput";
18
+ import { Header } from "../../navigation/header";
8
19
  import { Tabs } from "../../navigation/tabs";
9
20
  import { Container } from "../../structure/container";
10
21
 
11
- const stories = storiesOf("Template", module).addParameters({
12
- docs: {
13
- description: {
14
- component:
15
- "Full-page admin dashboard templates combining multiple components into ready-to-use layouts. These templates demonstrate real-world compositions of Tabs, LineChart, ButtonGroup, Select, TextInput, and Container for user analytics and leaderboard views.",
16
- },
17
- },
18
- });
22
+ const meta = { title: "Template/App Ranking Dashboard" };
23
+ export default meta;
24
+
25
+
26
+ const Logo = new URL("../../../assets/logo.png", import.meta.url).href;
27
+
28
+ const NAVIGATION = [
29
+ { name: "Dashboard", href: "#" },
30
+ { name: "Users", href: "#" },
31
+ { name: "Reports", href: "#" },
32
+ { name: "Settings", href: "#" },
33
+ ];
34
+
35
+ const USER_NAV = [
36
+ { name: "Your profile", action: () => {} },
37
+ { name: "Sign out", action: () => {} },
38
+ ];
39
+
40
+ const USER = { name: "Louis Ong", email: "louis@blixify.co", image: Logo };
19
41
 
20
42
  interface User {
21
43
  id: string;
@@ -117,12 +139,12 @@ const WITHDRAWALS_DATA = [2800, 3200, 3500, 2100, 3000, 3800, 4200];
117
139
  const PROFITS_DATA = [3100, 4500, 5200, 4251, 3800, 5500, 6300];
118
140
 
119
141
  const NAV_TABS = [
120
- { id: "dashboard", name: "DASHBOARD", href: "#" },
121
- { id: "numbers", name: "NUMBERS", href: "#" },
122
- { id: "deposits", name: "DEPOSITS AND WITHDRAWALS", href: "#" },
123
- { id: "demographics", name: "DEMOGRAPHICS", href: "#" },
124
- { id: "referrals", name: "REFERRALS", href: "#" },
125
- { id: "users", name: "USERS", href: "#" },
142
+ { id: "dashboard", name: "Dashboard", href: "#" },
143
+ { id: "numbers", name: "Numbers", href: "#" },
144
+ { id: "deposits", name: "Deposits and Withdrawals", href: "#" },
145
+ { id: "demographics", name: "Demographics", href: "#" },
146
+ { id: "referrals", name: "Referrals", href: "#" },
147
+ { id: "users", name: "Users", href: "#" },
126
148
  ];
127
149
 
128
150
  const CHART_TABS = [
@@ -166,7 +188,7 @@ const OVERALL_STATS = {
166
188
  )} days avg`,
167
189
  };
168
190
 
169
- stories.add("User Ranking Dashboard", () => {
191
+ export const AppRankingDashboard = () => {
170
192
  const [selectedId, setSelectedId] = useState<string>(ALL_USERS_ID);
171
193
  const [search, setSearch] = useState("");
172
194
  const [activeTab, setActiveTab] = useState("users");
@@ -181,28 +203,90 @@ stories.add("User Ranking Dashboard", () => {
181
203
  u.name.toLowerCase().includes(search.toLowerCase())
182
204
  );
183
205
 
184
- const statsRow = isOverall
206
+ // INFO: shaped for <Card size="compact"> — count cast to any because
207
+ // values are pre-formatted strings ("$165,543.33"); Card just renders
208
+ // {count} so a string works at runtime even though the type is number.
209
+ const statsCardData = isOverall
185
210
  ? [
186
- { label: "Total deposits", value: OVERALL_STATS.totalDeposits },
187
- { label: "Total withdrawals", value: OVERALL_STATS.totalWithdrawals },
188
- { label: "Total users", value: OVERALL_STATS.totalUsers },
189
211
  {
190
- label: "Avg time on platform",
191
- value: OVERALL_STATS.avgTimeOnPlatform,
212
+ title: "Total deposits",
213
+ count: OVERALL_STATS.totalDeposits,
214
+ icon: <CurrencyDollarIcon className="h-4 w-4 text-primary-600" />,
215
+ },
216
+ {
217
+ title: "Total withdrawals",
218
+ count: OVERALL_STATS.totalWithdrawals,
219
+ icon: <BanknotesIcon className="h-4 w-4 text-primary-600" />,
220
+ },
221
+ {
222
+ title: "Total users",
223
+ count: OVERALL_STATS.totalUsers,
224
+ icon: <UsersIcon className="h-4 w-4 text-primary-600" />,
225
+ },
226
+ {
227
+ title: "Avg time on platform",
228
+ count: OVERALL_STATS.avgTimeOnPlatform,
229
+ icon: <ClockIcon className="h-4 w-4 text-primary-600" />,
192
230
  },
193
231
  ]
194
232
  : [
195
- { label: "Total deposits", value: selectedUser!.totalDeposits },
196
- { label: "Total withdrawals", value: selectedUser!.totalWithdrawals },
197
- { label: "Agreement length", value: selectedUser!.agreementLength },
198
- { label: "Time on platform", value: selectedUser!.timeOnPlatform },
233
+ {
234
+ title: "Total deposits",
235
+ count: selectedUser!.totalDeposits,
236
+ icon: <CurrencyDollarIcon className="h-4 w-4 text-primary-600" />,
237
+ },
238
+ {
239
+ title: "Total withdrawals",
240
+ count: selectedUser!.totalWithdrawals,
241
+ icon: <BanknotesIcon className="h-4 w-4 text-primary-600" />,
242
+ },
243
+ {
244
+ title: "Agreement length",
245
+ count: selectedUser!.agreementLength,
246
+ icon: <DocumentTextIcon className="h-4 w-4 text-primary-600" />,
247
+ },
248
+ {
249
+ title: "Time on platform",
250
+ count: selectedUser!.timeOnPlatform,
251
+ icon: <ClockIcon className="h-4 w-4 text-primary-600" />,
252
+ },
199
253
  ];
200
254
 
255
+ // INFO: shaped for <NewList> — img + title + action (trailing badge).
256
+ // The rank emoji rides on `icon`. Was an inline 5-row leaderboard before.
257
+ const leaderboardItems: NewListItem[] = RANKED_USERS.slice(0, 5).map(
258
+ (u, i) => ({
259
+ id: u.id,
260
+ title: u.name,
261
+ img: u.img,
262
+ icon: (
263
+ <span className="w-5 text-center text-sm">
264
+ {i < 3 ? RANKING_BADGES[i] : `#${i + 1}`}
265
+ </span>
266
+ ),
267
+ action: (
268
+ <span className="text-xs text-gray-500 whitespace-nowrap">
269
+ {u.score} pts
270
+ </span>
271
+ ),
272
+ })
273
+ );
274
+
201
275
  return (
202
- <Container bgColor="py-8 bg-white">
203
- <h1 className="text-2xl font-semibold text-gray-900 mb-6">
204
- User Ranking Dashboard
205
- </h1>
276
+ <div className="min-h-screen bg-gray-50">
277
+ <Header
278
+ defaultNav="/"
279
+ page="Users"
280
+ logo={Logo}
281
+ navigation={NAVIGATION}
282
+ userNavigation={USER_NAV}
283
+ user={USER}
284
+ lib={{ Disclosure, Menu, Transition, Popover }}
285
+ />
286
+ <Container bgColor="py-8 bg-gray-50">
287
+ <h1 className="text-2xl font-semibold text-gray-900 mb-6">
288
+ User Ranking Dashboard
289
+ </h1>
206
290
 
207
291
  <div>
208
292
  {/* Nav tabs */}
@@ -329,23 +413,14 @@ stories.add("User Ranking Dashboard", () => {
329
413
  ? "Overall Stats"
330
414
  : `${selectedUser!.name}'s Stats`}
331
415
  </h2>
416
+ {/* Contextual action lives with the contextual title.
417
+ Per-user view shows ID + Transactions button; overall
418
+ view shows neither. */}
332
419
  {!isOverall && (
333
- <p className="text-xs text-gray-400">
334
- ID: {selectedUser!.id}
335
- </p>
336
- )}
337
- </div>
338
- <div className="grid grid-cols-2 sm:flex sm:flex-nowrap sm:divide-x divide-gray-200">
339
- {statsRow.map((stat) => (
340
- <div key={stat.label} className="px-4 py-3 sm:flex-1">
341
- <p className="text-xs text-gray-500">{stat.label}</p>
342
- <p className="text-sm font-bold text-gray-900 mt-1">
343
- {stat.value}
420
+ <div className="flex items-center gap-3">
421
+ <p className="text-xs text-gray-400">
422
+ ID: {selectedUser!.id}
344
423
  </p>
345
- </div>
346
- ))}
347
- {!isOverall && (
348
- <div className="col-span-2 sm:col-span-1 sm:w-auto px-4 py-3 flex items-center justify-start sm:justify-center">
349
424
  <Button
350
425
  text="Transactions"
351
426
  type="normal"
@@ -355,6 +430,21 @@ stories.add("User Ranking Dashboard", () => {
355
430
  </div>
356
431
  )}
357
432
  </div>
433
+ {/* Compact Card grid (was inline divided cells). 2-up on
434
+ mobile, 4-up on desktop — same density-first pattern as
435
+ the UserHomePage KPI tiles. */}
436
+ <div className="grid grid-cols-2 gap-3 md:grid-cols-4">
437
+ {statsCardData.map((s) => (
438
+ <Card
439
+ key={s.title}
440
+ size="compact"
441
+ icon={s.icon}
442
+ iconBgColor="bg-primary-100"
443
+ title={s.title}
444
+ count={s.count as any}
445
+ />
446
+ ))}
447
+ </div>
358
448
  </div>
359
449
 
360
450
  {/* Ranking (overall) or Chart (specific user) */}
@@ -406,34 +496,12 @@ stories.add("User Ranking Dashboard", () => {
406
496
  <p className="text-sm font-medium text-gray-700 mb-3">
407
497
  Ranking
408
498
  </p>
409
- <div className="space-y-2">
410
- <p className="text-xs font-medium text-gray-400 uppercase tracking-wide mb-2">
411
- Leaderboard
412
- </p>
413
- {RANKED_USERS.slice(0, 5).map((u, i) => (
414
- <div
415
- key={u.id}
416
- className="flex items-center gap-2 py-1.5 rounded-lg"
417
- >
418
- <span className="text-sm w-5 text-center flex-shrink-0">
419
- {i < 3 ? RANKING_BADGES[i] : `#${i + 1}`}
420
- </span>
421
- <img
422
- src={u.img}
423
- alt={u.name}
424
- className="w-7 h-7 rounded-full object-cover flex-shrink-0"
425
- />
426
- <div className="min-w-0 flex-1">
427
- <p className="text-xs font-medium truncate text-gray-800">
428
- {u.name}
429
- </p>
430
- </div>
431
- <span className="text-xs text-gray-500 flex-shrink-0">
432
- {u.score} pts
433
- </span>
434
- </div>
435
- ))}
436
- </div>
499
+ <p className="text-xs font-medium text-gray-400 uppercase tracking-wide mb-2">
500
+ Leaderboard
501
+ </p>
502
+ {/* NewList replaces the inline 5-row leaderboard. Rank
503
+ emoji rides on `icon`, "X pts" on `action`. */}
504
+ <NewList list={leaderboardItems} />
437
505
  </div>
438
506
  </div>
439
507
  ) : (
@@ -447,6 +515,7 @@ stories.add("User Ranking Dashboard", () => {
447
515
  selectedId={activeChartTab}
448
516
  variant="tag"
449
517
  onClick={(id) => setActiveChartTab(id)}
518
+ size="small"
450
519
  />
451
520
  </div>
452
521
  <LineChart
@@ -476,6 +545,7 @@ stories.add("User Ranking Dashboard", () => {
476
545
  </div>
477
546
  </div>
478
547
  </div>
479
- </Container>
548
+ </Container>
549
+ </div>
480
550
  );
481
- });
551
+ }
@@ -0,0 +1,2 @@
1
+ export declare const handleResolveComponentsDir: (subPath?: string) => string;
2
+ //# sourceMappingURL=componentsRoot.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"componentsRoot.d.ts","sourceRoot":"","sources":["../../../src/mcp/tools/componentsRoot.ts"],"names":[],"mappings":"AAgCA,eAAO,MAAM,0BAA0B,wBAAmB,MAGF,CAAC"}
@@ -0,0 +1,59 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
14
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
15
+ }) : function(o, v) {
16
+ o["default"] = v;
17
+ });
18
+ var __importStar = (this && this.__importStar) || function (mod) {
19
+ if (mod && mod.__esModule) return mod;
20
+ var result = {};
21
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
22
+ __setModuleDefault(result, mod);
23
+ return result;
24
+ };
25
+ Object.defineProperty(exports, "__esModule", { value: true });
26
+ exports.handleResolveComponentsDir = void 0;
27
+ const fs = __importStar(require("fs"));
28
+ const path = __importStar(require("path"));
29
+ // INFO: __dirname is lib/mcp/tools at runtime, so this resolves to the MCP package
30
+ // itself — the bundled doc snapshot, frozen at whatever was published alongside it
31
+ const BUNDLED_ROOT = path.resolve(__dirname, "../../../");
32
+ // INFO: the docs must describe the blixify-ui-web the CALLER has installed, not the
33
+ // copy shipped with the MCP. The MCP is published as its own package on its own
34
+ // cadence, so a bundled snapshot is stale the moment a component ships. Resolving
35
+ // from the caller's cwd keeps the two in step on their own; the bundled copy is a
36
+ // fallback for when the library isn't installed at all.
37
+ const handleResolveInstalledRoot = () => {
38
+ try {
39
+ const pkg = require.resolve("blixify-ui-web/package.json", {
40
+ paths: [process.cwd()],
41
+ });
42
+ return path.dirname(pkg);
43
+ }
44
+ catch {
45
+ return null;
46
+ }
47
+ };
48
+ const handleResolveDocsRoot = () => {
49
+ const installed = handleResolveInstalledRoot();
50
+ if (installed && fs.existsSync(path.join(installed, "lib/components")))
51
+ return installed;
52
+ return BUNDLED_ROOT;
53
+ };
54
+ const PROJECT_ROOT = handleResolveDocsRoot();
55
+ const handleResolveComponentsDir = (subPath = "") => fs.existsSync(path.join(PROJECT_ROOT, "src/components"))
56
+ ? path.join(PROJECT_ROOT, "src/components", subPath)
57
+ : path.join(PROJECT_ROOT, "lib/components", subPath);
58
+ exports.handleResolveComponentsDir = handleResolveComponentsDir;
59
+ //# sourceMappingURL=componentsRoot.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"componentsRoot.js","sourceRoot":"","sources":["../../../src/mcp/tools/componentsRoot.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,uCAAyB;AACzB,2CAA6B;AAE7B,mFAAmF;AACnF,mFAAmF;AACnF,MAAM,YAAY,GAAG,IAAI,CAAC,OAAO,CAAC,SAAS,EAAE,WAAW,CAAC,CAAC;AAE1D,oFAAoF;AACpF,gFAAgF;AAChF,kFAAkF;AAClF,kFAAkF;AAClF,wDAAwD;AACxD,MAAM,0BAA0B,GAAG,GAAkB,EAAE;IACrD,IAAI;QACF,MAAM,GAAG,GAAG,OAAO,CAAC,OAAO,CAAC,6BAA6B,EAAE;YACzD,KAAK,EAAE,CAAC,OAAO,CAAC,GAAG,EAAE,CAAC;SACvB,CAAC,CAAC;QACH,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC;KAC1B;IAAC,MAAM;QACN,OAAO,IAAI,CAAC;KACb;AACH,CAAC,CAAC;AAEF,MAAM,qBAAqB,GAAG,GAAW,EAAE;IACzC,MAAM,SAAS,GAAG,0BAA0B,EAAE,CAAC;IAC/C,IAAI,SAAS,IAAI,EAAE,CAAC,UAAU,CAAC,IAAI,CAAC,IAAI,CAAC,SAAS,EAAE,gBAAgB,CAAC,CAAC;QACpE,OAAO,SAAS,CAAC;IACnB,OAAO,YAAY,CAAC;AACtB,CAAC,CAAC;AAEF,MAAM,YAAY,GAAG,qBAAqB,EAAE,CAAC;AAEtC,MAAM,0BAA0B,GAAG,CAAC,OAAO,GAAG,EAAE,EAAU,EAAE,CACjE,EAAE,CAAC,UAAU,CAAC,IAAI,CAAC,IAAI,CAAC,YAAY,EAAE,gBAAgB,CAAC,CAAC;IACtD,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,YAAY,EAAE,gBAAgB,EAAE,OAAO,CAAC;IACpD,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,YAAY,EAAE,gBAAgB,EAAE,OAAO,CAAC,CAAC;AAH5C,QAAA,0BAA0B,8BAGkB"}
@@ -1 +1 @@
1
- {"version":3,"file":"getBackendComponent.d.ts","sourceRoot":"","sources":["../../../src/mcp/tools/getBackendComponent.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAqDxB,eAAO,MAAM,uBAAuB;;;;;;;;;;CA6DnC,CAAC"}
1
+ {"version":3,"file":"getBackendComponent.d.ts","sourceRoot":"","sources":["../../../src/mcp/tools/getBackendComponent.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAkDxB,eAAO,MAAM,uBAAuB;;;;;;;;;;CA6DnC,CAAC"}
@@ -27,11 +27,8 @@ exports.getBackendComponentTool = void 0;
27
27
  const fs = __importStar(require("fs"));
28
28
  const path = __importStar(require("path"));
29
29
  const zod_1 = require("zod");
30
- // At runtime __dirname is lib/mcp/tools; resolve up to project root then into lib/components/data
31
- const PROJECT_ROOT = path.resolve(__dirname, "../../../");
32
- const DATA_DIR = fs.existsSync(path.join(PROJECT_ROOT, "src/components/data"))
33
- ? path.join(PROJECT_ROOT, "src/components/data")
34
- : path.join(PROJECT_ROOT, "lib/components/data");
30
+ const componentsRoot_1 = require("./componentsRoot");
31
+ const DATA_DIR = (0, componentsRoot_1.handleResolveComponentsDir)("data");
35
32
  /**
36
33
  * Backend components are the data-layer components under src/components/data.
37
34
  * We surface the ones that have a README or stories file, plus the dataWrapper
@@ -1 +1 @@
1
- {"version":3,"file":"getBackendComponent.js","sourceRoot":"","sources":["../../../src/mcp/tools/getBackendComponent.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,uCAAyB;AACzB,2CAA6B;AAC7B,6BAAwB;AAExB,kGAAkG;AAClG,MAAM,YAAY,GAAG,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AI,CAAC;QAEnE,IAAI,MAAM,EAAE;YACV,QAAQ,CAAC,IAAI,CACX,wDAAwD,GAAG,MAAM,CAClE,CAAC;SACH;QACD,IAAI,OAAO,EAAE;YACX,QAAQ,CAAC,IAAI,CACX,2EAA2E;gBACzE,OAAO;gBACP,OAAO,CACV,CAAC;SACH;QAED,+BAA+B;QAC/B,KAAK,MAAM,CAAC,IAAI,EAAE,EAAE,GAAG,EAAE,WAAW,EAAE,CAAC,IAAI,MAAM,CAAC,OAAO,CACvD,kBAAkB,CACnB,EAAE;YACD,IAAI,IAAI,KAAK,aAAa;gBAAE,SAAS;YACrC,MAAM,WAAW,GAAG,gBAAgB,CAAC,IAAI,CAAC,IAAI,CAAC,GAAG,EAAE,WAAW,CAAC,CAAC,CAAC;YAClE,IAAI,WAAW,EAAE;gBACf,QAAQ,CAAC,IAAI,CACX,aAAa,IAAI,QAAQ,WAAW,OAAO,GAAG,WAAW,CAC1D,CAAC;aACH;SACF;QAED,OAAO;YACL,OAAO,EAAE;gBACP;oBACE,IAAI,EAAE,MAAe;oBACrB,IAAI,EAAE,QAAQ,CAAC,IAAI,CAAC,MAAM,CAAC;iBAC5B;aACF;SACF,CAAC;IACJ,CAAC;CACF,CAAC"}
1
+ {"version":3,"file":"getBackendComponent.js","sourceRoot":"","sources":["../../../src/mcp/tools/getBackendComponent.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,uCAAyB;AACzB,2CAA6B;AAC7B,6BAAwB;AACxB,qDAA8D;AAE9D,MAAM,QAAQ,GAAG,IAAA,2CAA0B,EAAC,MAAM,CAAC,CAAC;AAEpD;;;;GAIG;AACH,MAAM,kBAAkB,GACtB;IACE,WAAW,EAAE;QACX,GAAG,EAAE,IAAI,CAAC,IAAI,CAAC,QAAQ,EAAE,aAAa,CAAC;QACvC,WAAW,EACT,sKAAsK;KACzK;IACD,YAAY,EAAE;QACZ,GAAG,EAAE,IAAI,CAAC,IAAI,CAAC,QAAQ,EAAE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,aAAa,IAAI,QAAQ,WAAW,OAAO,GAAG,WAAW,CAC1D,CAAC;aACH;SACF;QAED,OAAO;YACL,OAAO,EAAE;gBACP;oBACE,IAAI,EAAE,MAAe;oBACrB,IAAI,EAAE,QAAQ,CAAC,IAAI,CAAC,MAAM,CAAC;iBAC5B;aACF;SACF,CAAC;IACJ,CAAC;CACF,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"getComponent.d.ts","sourceRoot":"","sources":["../../../src/mcp/tools/getComponent.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAqCxB,eAAO,MAAM,gBAAgB;;;;;;;cAYK,MAAM;;;;;;;CAuEvC,CAAC"}
1
+ {"version":3,"file":"getComponent.d.ts","sourceRoot":"","sources":["../../../src/mcp/tools/getComponent.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAkCxB,eAAO,MAAM,gBAAgB;;;;;;;cAYK,MAAM;;;;;;;CAuEvC,CAAC"}
@@ -27,11 +27,8 @@ exports.getComponentTool = void 0;
27
27
  const fs = __importStar(require("fs"));
28
28
  const path = __importStar(require("path"));
29
29
  const zod_1 = require("zod");
30
- // At runtime __dirname is lib/mcp/tools; resolve up to project root then into lib/components
31
- const PROJECT_ROOT = path.resolve(__dirname, "../../../");
32
- const COMPONENTS_DIR = fs.existsSync(path.join(PROJECT_ROOT, "src/components"))
33
- ? path.join(PROJECT_ROOT, "src/components")
34
- : path.join(PROJECT_ROOT, "lib/components");
30
+ const componentsRoot_1 = require("./componentsRoot");
31
+ const COMPONENTS_DIR = (0, componentsRoot_1.handleResolveComponentsDir)();
35
32
  function findComponentDir(name) {
36
33
  const lowerName = name.toLowerCase();
37
34
  const walk = (dir) => {
@@ -1 +1 @@
1
- {"version":3,"file":"getComponent.js","sourceRoot":"","sources":["../../../src/mcp/tools/getComponent.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AA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I,CAAC,aAAa,CAAC;iBACnC;aACF;SACF,CAAC;IACJ,CAAC;CACF,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"listComponents.d.ts","sourceRoot":"","sources":["../../../src/mcp/tools/listComponents.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AA8DxB,eAAO,MAAM,kBAAkB;;;;;;;;;;CAsD9B,CAAC"}
1
+ {"version":3,"file":"listComponents.d.ts","sourceRoot":"","sources":["../../../src/mcp/tools/listComponents.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAmExB,eAAO,MAAM,kBAAkB;;;;;;;;;;CAsD9B,CAAC"}
@@ -27,11 +27,8 @@ exports.listComponentsTool = void 0;
27
27
  const fs = __importStar(require("fs"));
28
28
  const path = __importStar(require("path"));
29
29
  const zod_1 = require("zod");
30
- // At runtime __dirname is lib/mcp/tools; resolve up to project root then into lib/components
31
- const PROJECT_ROOT = path.resolve(__dirname, "../../../");
32
- const COMPONENTS_DIR = fs.existsSync(path.join(PROJECT_ROOT, "src/components"))
33
- ? path.join(PROJECT_ROOT, "src/components")
34
- : path.join(PROJECT_ROOT, "lib/components");
30
+ const componentsRoot_1 = require("./componentsRoot");
31
+ const COMPONENTS_DIR = (0, componentsRoot_1.handleResolveComponentsDir)();
35
32
  // Categories to exclude from the UI component listing
36
33
  // (templates are surfaced via suggest_template; data via get_backend_component)
37
34
  const EXCLUDE_DIRS = new Set(["template", "data"]);
@@ -45,19 +42,27 @@ function collectComponents(dir, results = []) {
45
42
  // Skip excluded top-level categories
46
43
  if (EXCLUDE_DIRS.has(parts[0]))
47
44
  continue;
48
- const hasIndex = fs.existsSync(path.join(fullPath, "index.tsx")) ||
49
- fs.existsSync(path.join(fullPath, "index.ts"));
50
- if (hasIndex) {
45
+ // INFO: the published package ships only README.md and stories under
46
+ // lib/components — no index file of any extension — so gating on a
47
+ // TypeScript entrypoint matched nothing outside a source checkout
48
+ const files = fs.readdirSync(fullPath);
49
+ const hasStories = files.some((f) => f.endsWith(".stories.tsx") || f.endsWith(".stories.ts"));
50
+ const isComponent = files.includes("index.tsx") ||
51
+ files.includes("index.ts") ||
52
+ files.includes("index.js") ||
53
+ files.includes("index.d.ts") ||
54
+ files.includes("README.md") ||
55
+ hasStories;
56
+ if (isComponent) {
51
57
  const category = parts[0];
52
58
  const name = parts[parts.length - 1];
53
- const files = fs.readdirSync(fullPath);
54
59
  results.push({
55
60
  name,
56
61
  category,
57
62
  relativePath: relFromComponents,
58
63
  importPath: `blixify-ui-web/${relFromComponents.replace(/\\/g, "/")}`,
59
64
  hasReadme: files.includes("README.md"),
60
- hasStories: files.some((f) => f.endsWith(".stories.tsx") || f.endsWith(".stories.ts")),
65
+ hasStories,
61
66
  });
62
67
  }
63
68
  // Always recurse
@@ -1 +1 @@
1
- {"version":3,"file":"listComponents.js","sourceRoot":"","sources":["../../../src/mcp/tools/listComponents.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,uCAAyB;AACzB,2CAA6B;AAC7B,6BAAwB;AAExB,6FAA6F;AAC7F,MAAM,YAAY,GAAG,IAAI,CAAC,OAAO,CAAC,SAAS,EAAE,WAAW,CAAC,CAAC;AAC1D,MAAM,cAAc,GAAG,EAAE,CAAC,UAAU,CAAC,IAAI,CAAC,IAAI,CAAC,YAAY,EAAE,gBAAgB,CAAC,CAAC;IAC7E,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,YAAY,EAAE,gBAAgB,CAAC;IAC3C,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,YAAY,EAAE,gBAAgB,CAAC,CAAC;AAE9C,sDAAsD;AACtD,gFAAgF;AAChF,MAAM,YAAY,GAAG,IAAI,GAAG,CAAC,CAAC,UAAU,EAAE,MAAM,CAAC,CAAC,CAAC;AAWnD,SAAS,iBAAiB,CACxB,GAAW,EACX,UAA4B,EAAE;IAE9B,KAAK,MAAM,KAAK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AAC,CAAC,EAAE;iBACjC;qBACE,MAAM,CAAC,OAAO,CAAC;qBACf,IAAI,CAAC,IAAI,CAAC,CAAC;gBACd,KAAK,CAAC,IAAI,CACR,OAAO,CAAC,CAAC,IAAI,2BAA2B,CAAC,CAAC,UAAU,OAClD,KAAK,CAAC,CAAC,CAAC,IAAI,KAAK,GAAG,CAAC,CAAC,CAAC,EACzB,EAAE,CACH,CAAC;aACH;YACD,KAAK,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;SAChB;QAED,OAAO;YACL,OAAO,EAAE;gBACP;oBACE,IAAI,EAAE,MAAe;oBACrB,IAAI,EAAE,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC;iBACvB;aACF;SACF,CAAC;IACJ,CAAC;CACF,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"suggestTemplate.d.ts","sourceRoot":"","sources":["../../../src/mcp/tools/suggestTemplate.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAoJxB,eAAO,MAAM,mBAAmB;;;;;;;eAYI,MAAM;;;;;;;CAwDzC,CAAC"}
1
+ {"version":3,"file":"suggestTemplate.d.ts","sourceRoot":"","sources":["../../../src/mcp/tools/suggestTemplate.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AA2OxB,eAAO,MAAM,mBAAmB;;;;;;;eAYI,MAAM;;;;;;;CAwDzC,CAAC"}