@buerokratt-ria/menu 0.2.12 → 0.2.14

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.
package/CHANGELOG.md CHANGED
@@ -2,6 +2,14 @@
2
2
 
3
3
  All changes to this project will be documented in this file.
4
4
 
5
+ ## [0.2.14] - 08-06-2026
6
+
7
+ - Added knowledge center to menu items
8
+
9
+ ## [0.2.13] - 02-06-2026
10
+
11
+ - Removed /advisors from menu items
12
+
5
13
  ## [0.2.12] - 06-05-2026
6
14
 
7
15
  - Added path /chat-analysis to menu items
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@buerokratt-ria/menu",
3
- "version": "0.2.12",
3
+ "version": "0.2.14",
4
4
  "description": "Generic MainNavigation component that would be injected as dependency.",
5
5
  "main": "index.js",
6
6
  "scripts": {},
@@ -6,6 +6,7 @@ import {
6
6
  MdMiscellaneousServices,
7
7
  MdSettings,
8
8
  MdOutlineMonitorWeight,
9
+ MdOutlineSchool,
9
10
  } from 'react-icons/md';
10
11
 
11
12
  export const menuData = [
@@ -39,4 +40,9 @@ export const menuData = [
39
40
  icon: <MdOutlineMonitorWeight className='menu-item-icon' />,
40
41
  url: import.meta.env.REACT_APP_MONITORING_BASE_URL,
41
42
  },
43
+ {
44
+ id: 'knowledge-center',
45
+ icon: <MdOutlineSchool className='menu-item-icon' />,
46
+ url: import.meta.env.REACT_APP_KNOWLEDGE_CENTER_BASE_URL,
47
+ },
42
48
  ];
@@ -220,13 +220,6 @@
220
220
  },
221
221
  "path": "/feedback"
222
222
  },
223
- {
224
- "label": {
225
- "et": "Nõustajad",
226
- "en": "Advisors"
227
- },
228
- "path": "/advisors"
229
- },
230
223
  {
231
224
  "label": {
232
225
  "et": "Avaandmed",
@@ -282,6 +275,78 @@
282
275
  }
283
276
  ]
284
277
  },
278
+ {
279
+ "id": "knowledge-center",
280
+ "label": {
281
+ "et": "Teadmuskeskus",
282
+ "en": "Knowledge Center"
283
+ },
284
+ "path": "/knowledge-center",
285
+ "children": [
286
+ {
287
+ "id": "rag-search",
288
+ "label": {
289
+ "et": "Mudelid ja seadistused",
290
+ "en": "Models' management"
291
+ },
292
+ "path": "/rag-search",
293
+ "children": [
294
+ {
295
+ "label": {
296
+ "et": "Mudelite ühendused",
297
+ "en": "LLM connections"
298
+ },
299
+ "path": "/rag-search/llm-connections"
300
+ },
301
+ {
302
+ "label": {
303
+ "et": "Viiba Seaded",
304
+ "en": "Prompt Configurations"
305
+ },
306
+ "path": "/rag-search/prompt-configurations"
307
+ },
308
+ {
309
+ "label": {
310
+ "et": "Testi mudelit",
311
+ "en": "Test LLM"
312
+ },
313
+ "path": "/rag-search/test-llm"
314
+ }
315
+ ]
316
+ },
317
+ {
318
+ "id": "ckb",
319
+ "label": {
320
+ "et": "Teadmusbaas",
321
+ "en": "Knowledge Base"
322
+ },
323
+ "path": "/ckb",
324
+ "children": [
325
+ {
326
+ "label": {
327
+ "et": "Agentuur",
328
+ "en": "Agency"
329
+ },
330
+ "path": "/ckb/agency"
331
+ },
332
+ {
333
+ "label": {
334
+ "et": "Aruanded",
335
+ "en": "Reports"
336
+ },
337
+ "path": "/ckb/reports"
338
+ },
339
+ {
340
+ "label": {
341
+ "et": "API Integratsioonid",
342
+ "en": "API Integrations"
343
+ },
344
+ "path": "/ckb/api"
345
+ }
346
+ ]
347
+ }
348
+ ]
349
+ },
285
350
  {
286
351
  "id": "settings",
287
352
  "label": {
@@ -19,11 +19,11 @@ const useFilteredMenuItems = (countConf?: CountConf) => {
19
19
 
20
20
  const roles: any[] = data.response;
21
21
  const rolePermissions = {
22
- ROLE_ADMINISTRATOR: ["conversations", "training", "analytics", "services", "settings", "monitoring"],
23
- ROLE_SERVICE_MANAGER: ["training", "services", "monitoring"],
24
- ROLE_CUSTOMER_SUPPORT_AGENT: ["conversations", "monitoring"],
25
- ROLE_CHATBOT_TRAINER: ["training", "monitoring"],
26
- ROLE_ANALYST: ["analytics", "monitoring"],
22
+ ROLE_ADMINISTRATOR: ["conversations", "training", "analytics", "services", "knowledge-center", "settings"],
23
+ ROLE_SERVICE_MANAGER: ["training", "services"],
24
+ ROLE_CUSTOMER_SUPPORT_AGENT: ["conversations"],
25
+ ROLE_CHATBOT_TRAINER: ["training"],
26
+ ROLE_ANALYST: ["analytics"],
27
27
  };
28
28
 
29
29
  let permissions = new Set();
@@ -57,7 +57,7 @@
57
57
  width: 100%;
58
58
  display: flex;
59
59
  align-items: center;
60
- gap: get-spacing(paldiski);
60
+ gap: 5px !important;
61
61
  color: get-color(black-coral-0);
62
62
  padding: 14px 8px 14px 32px;
63
63
  box-shadow: inset 0 -1px 0 get-color(sapphire-blue-14);