@anchrd/intel-ui 0.2.1 → 0.4.0

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 (33) hide show
  1. package/components.json +7 -1
  2. package/package.json +3 -1
  3. package/src/app/app-sidebar/app-sidebar.tsx +56 -0
  4. package/src/app/app-tree/app-tree.tsx +427 -0
  5. package/src/app/app.tsx +84 -54
  6. package/src/app/header-actions/header-actions.tsx +15 -0
  7. package/src/app/header-search/header-search.tsx +291 -0
  8. package/src/app/sidebar-preferences/sidebar-preferences.ts +68 -0
  9. package/src/app/sidebar-preferences/sidebar-preferences.types.ts +15 -0
  10. package/src/app/sidebar-resize-handle/sidebar-resize-handle.tsx +85 -0
  11. package/src/app/user-footer/user-footer.tsx +76 -0
  12. package/src/components/ui/breadcrumb.tsx +102 -0
  13. package/src/components/ui/button.tsx +64 -0
  14. package/src/components/ui/collapsible.tsx +20 -0
  15. package/src/components/ui/command.tsx +160 -0
  16. package/src/components/ui/dialog.tsx +143 -0
  17. package/src/components/ui/dropdown-menu.tsx +84 -0
  18. package/src/components/ui/input.tsx +21 -0
  19. package/src/components/ui/separator.tsx +26 -0
  20. package/src/components/ui/sheet.tsx +136 -0
  21. package/src/components/ui/sidebar.tsx +693 -0
  22. package/src/components/ui/skeleton.tsx +13 -0
  23. package/src/components/ui/tooltip.tsx +51 -0
  24. package/src/data/intel-data-provider/intel-data-provider.ts +58 -39
  25. package/src/data/intel-data-provider/intel-data-provider.types.ts +17 -8
  26. package/src/flows/flows.tsx +59 -142
  27. package/src/hooks/use-mobile.ts +19 -0
  28. package/src/i18n/en.json +48 -29
  29. package/src/knowledge/knowledge.tsx +133 -423
  30. package/src/router/router.tsx +4 -0
  31. package/src/router/selection-search.ts +19 -0
  32. package/src/styles.css +54 -51
  33. package/src/tools/tools.tsx +175 -158
package/src/i18n/en.json CHANGED
@@ -5,20 +5,45 @@
5
5
  "nav.knowledge": "Knowledge",
6
6
  "nav.flows": "Flows",
7
7
  "nav.tools": "Tools",
8
- "knowledge.title": "Company knowledge",
9
- "knowledge.description": "Documents, decisions, and context shared by people and AI.",
8
+ "shell.toggleSidebar": "Collapse or expand the sidebar",
9
+ "shell.resizeSidebar": "Sidebar width",
10
+ "shell.signedInUser": "Signed-in user",
11
+ "shell.userUnavailable": "Account unavailable",
12
+ "search.open": "Search",
13
+ "search.title": "Search Intel",
14
+ "search.description": "Find knowledge, flows, and tools you are allowed to see.",
15
+ "search.placeholder": "Search knowledge, flows, and tools",
16
+ "search.filter": "Filter by kind",
17
+ "search.all": "Everything",
18
+ "search.kind.knowledge": "Knowledge",
19
+ "search.kind.flow": "Flows",
20
+ "search.kind.tool": "Tools",
21
+ "search.hint": "Type to search.",
22
+ "search.searching": "Searching…",
23
+ "search.empty": "Nothing found for “{query}”.",
24
+ "search.failed": "The search could not be completed.",
25
+ "tree.label": "Knowledge and flows",
26
+ "tree.empty": "Nothing here yet.",
27
+ "tree.emptyFolder": "This folder is empty.",
28
+ "tree.failed": "This part of the tree could not be loaded.",
29
+ "tree.expand": "Show what is inside {title}",
30
+ "tree.collapse": "Hide what is inside {title}",
31
+ "tree.add": "Add to {title}",
32
+ "tree.addRoot": "Add at the top level",
33
+ "tree.new.folder": "New folder",
34
+ "tree.new.document": "New document",
35
+ "tree.new.upload": "Upload file",
36
+ "tree.new.flow": "New flow",
37
+ "tree.upload": "File to upload",
38
+ "tree.createFailed": "It could not be created. Check your access and try again.",
39
+ "tree.uploadFailed": "The file could not be uploaded. Check the 15 MB limit and try again.",
40
+ "tree.kind.folder": "Folder",
41
+ "tree.kind.document": "Document",
42
+ "tree.kind.attachment": "File",
43
+ "tree.kind.flow": "Flow",
10
44
  "knowledge.empty": "No knowledge has been added yet.",
11
- "knowledge.new": "New document",
12
- "knowledge.newFolder": "New folder",
13
- "knowledge.upload": "Upload file",
14
- "knowledge.uploading": "Uploading…",
15
- "knowledge.uploadFailed": "The file could not be uploaded. Check the 15 MB limit and try again.",
16
45
  "knowledge.download": "Download file",
17
46
  "knowledge.attachmentHelp": "The canonical file is stored privately in Intel. Its AI-readable projection is indexed separately.",
18
- "knowledge.search": "Search knowledge",
19
- "knowledge.noResults": "No matching knowledge found.",
20
- "knowledge.clearSearch": "Clear search",
21
- "knowledge.tree": "Knowledge tree",
22
47
  "knowledge.select": "Select a document or folder to work with it.",
23
48
  "knowledge.folderHelp": "Select a child document, or create something inside this folder.",
24
49
  "knowledge.contextPolicy": "AI context policy",
@@ -42,6 +67,7 @@
42
67
  "knowledge.graphReset": "Fit graph",
43
68
  "knowledge.graphFailed": "The authorized knowledge graph could not be loaded.",
44
69
  "knowledge.operationFailed": "The change was not saved. Reload the latest version and try again.",
70
+ "knowledge.loadFailed": "This item could not be loaded. Check your access and try again.",
45
71
  "knowledge.downloadFailed": "The attachment could not be downloaded. Check your access and try again.",
46
72
  "knowledge.links": "Links and backlinks",
47
73
  "knowledge.noLinks": "No explicit relationships yet.",
@@ -56,28 +82,23 @@
56
82
  "knowledge.deleteLink": "Delete relationship",
57
83
  "knowledge.saveConflict": "This document changed elsewhere. Reload it before saving again.",
58
84
  "knowledge.saveError": "This document could not be saved. Reload and try again.",
59
- "tools.title": "Company tools",
60
- "tools.description": "The MCP tools you can reach through the company portal.",
61
85
  "tools.connect": "Connect the portal",
62
- "tools.reconnect": "Reconnect",
86
+ "tools.reconnect": "Reconnect the portal",
63
87
  "tools.disconnected": "Portal not connected",
64
88
  "tools.disconnectedHelp": "Sign in to the company MCP portal once. The portal decides which servers you may use and holds their credentials; Intel never sees them.",
65
89
  "tools.empty": "No tools available to you",
66
- "tools.emptyHelp": "The portal returned no tools for your account. An administrator configures which servers it offers.",
67
- "tools.testTitle": "Tool playground",
68
- "tools.select": "Select a tool to inspect and test it.",
69
- "tools.arguments": "Arguments (JSON object)",
70
- "tools.runTest": "Run controlled test",
71
- "tools.invalidJson": "Arguments must be a valid JSON object.",
72
- "tools.destructive": "The portal marks this tool as potentially destructive. Review the arguments before running it.",
90
+ "tools.emptyHelp": "The portal answered, and it offers your account no tools. An administrator decides in the portal which servers exist and who may reach them.",
91
+ "tools.unreachable": "Portal not reachable",
92
+ "tools.unreachableHelp": "The company MCP portal did not answer, so Intel cannot tell which tools you have. Nothing is stored here; try again once the portal responds.",
93
+ "tools.origin": "Origin",
94
+ "tools.originPortal": "Company portal",
95
+ "tools.inputSchema": "Input schema",
96
+ "tools.outputSchema": "Result schema",
73
97
  "tools.destructiveShort": "Destructive",
74
- "tools.testUnsafe": "The playground only runs tools explicitly marked read-only and non-destructive.",
75
- "tools.operationFailed": "The tool list could not be loaded. Reconnect the portal and try again.",
98
+ "tools.liveNote": "This list is a live query with your own portal access. Intel stores neither the tools nor who may use them; the portal decides both.",
76
99
  "tools.connectFailed": "The portal could not be connected with your current access.",
77
- "flows.title": "Company flows",
78
- "flows.description": "Model-agnostic processes that connect instructions, Knowledge, tools, and people.",
79
- "flows.new": "New flow",
80
- "flows.empty": "No flows have been created yet.",
100
+ "tools.arguments": "Arguments",
101
+ "tools.invalidJson": "The arguments must be a JSON object in curly braces; a list or a single value will not work.",
81
102
  "flows.select": "Select a flow or create one to open the visual editor.",
82
103
  "flows.inspect": "Select a node to edit its configuration.",
83
104
  "flows.publish": "Publish",
@@ -85,8 +106,6 @@
85
106
  "flows.share": "Share flow",
86
107
  "flows.revokeShare": "Revoke flow access",
87
108
  "flows.organization": "Everyone in the organization",
88
- "flows.published": "Published",
89
- "flows.draft": "Draft",
90
109
  "flows.runStarted": "Durable run started",
91
110
  "flows.node.trigger": "Trigger",
92
111
  "flows.node.instruction": "Instruction",