Skip to content

Commit 67b69d4

Browse files
Integrate AI search feature (Ficodes#204)
* AI Search integration v1 (Ficodes#189) Co-authored-by: Ivan Mitev <> * Take config for AI service from the backend * Improve search filters --------- Co-authored-by: imitev-bae <imitev.bae@gmail.com>
1 parent 7b12506 commit 67b69d4

19 files changed

Lines changed: 954 additions & 67 deletions

angular.json

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,11 @@
2727
"styles": [
2828
"src/styles.css"
2929
],
30-
"scripts": []
30+
"scripts": [],
31+
"allowedCommonJsDependencies": [
32+
"moment",
33+
"currencies.json"
34+
]
3135
},
3236
"configurations": {
3337
"production": {

cypress/support/constants.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ export const init_config = {
1717
'ticketingUrl': '',
1818
'matomoId': '',
1919
'matomoUrl': '',
20-
'searchEnabled': false,
20+
'searchEnabled': true,
2121
'domeAbout': 'https://dome-marketplace.eu/about/',
2222
'domeRegister': 'https://dome-marketplace.github.io/onboarding/',
2323
'domePublish': 'https://knowledgebase.dome-marketplace.org/shelves/company-onboarding-process',

src/app/data/availableFilters.ts

Lines changed: 114 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,114 @@
1+
export type Filter = {
2+
name: string
3+
children?: Filter[]
4+
}
5+
6+
const availableFilters: Filter[] = [
7+
{
8+
name: 'technical_approach',
9+
children: [
10+
{
11+
name: 'Infrastructure as a Service (IaaS)',
12+
children: [
13+
{ name: 'Compute' },
14+
{ name: 'Network' },
15+
{ name: 'Storage' },
16+
{ name: 'Security' },
17+
],
18+
},
19+
{ name: 'Container as a Service (CaaS)' },
20+
{
21+
name: 'Platform as a Service (PaaS)',
22+
children: [
23+
{ name: 'Database' },
24+
{ name: 'Development and Testing' },
25+
{ name: 'Business Analytics' },
26+
{ name: 'Process management' },
27+
{ name: 'Knowledge management' },
28+
{ name: 'Data management' },
29+
],
30+
},
31+
{ name: 'Software as a Service (SaaS)' },
32+
{ name: 'Artificial Intelligence and Machine Learning' },
33+
{
34+
name: 'Data as a Service (DaaS)',
35+
children: [{ name: 'Data product distribution and exchange' }],
36+
},
37+
{ name: 'Cybersecurity and Data Privacy' },
38+
{ name: 'Internet of Things (IoT)' },
39+
],
40+
},
41+
{
42+
name: 'business_domain',
43+
children: [
44+
{ name: 'Automotive' },
45+
{ name: 'Agriculture, Forestry, Fishing' },
46+
{ name: 'Blockchain (DLT)' },
47+
{ name: 'Beauty and Perfume' },
48+
{ name: 'Cleaning and Facility Management Services' },
49+
{
50+
name: 'Community Groups, Social, Political and Religious',
51+
children: [{ name: 'Governmental Administration and Regulation' }],
52+
},
53+
{ name: 'Education' },
54+
{ name: 'Construction' },
55+
{ name: 'Employment, Recruitment, HR' },
56+
{
57+
name: 'Energy and Utility Suppliers',
58+
children: [
59+
{ name: 'Electricity' },
60+
{ name: 'Gas' },
61+
{ name: 'Waste Collection, Treatment and Disposal Activities' },
62+
{ name: 'Water Supply' },
63+
],
64+
},
65+
{ name: 'Financial Services and Insurance' },
66+
{ name: 'Healthcare' },
67+
{ name: 'IT' },
68+
{ name: 'Leisure and Entertainment' },
69+
{ name: 'Legal, Public Order, Security' },
70+
{
71+
name: 'Manufacturing',
72+
children: [{ name: 'Manufacturing of Metal Products' }, { name: 'Other (manufacturing)' }],
73+
},
74+
{ name: 'Mining and Drilling' },
75+
{ name: 'Project Management, Marketing and Admin' },
76+
{ name: 'Personal Services' },
77+
{ name: 'Restaurants, Bars, Cafes, Catering' },
78+
{ name: 'Real Estate' },
79+
{ name: 'Publishing, Printing and Photography' },
80+
{ name: 'Tourism and Accommodation' },
81+
{ name: 'Science and Engineering' },
82+
{ name: 'Trade' },
83+
{
84+
name: 'Transportation and Transportation infrastructure',
85+
children: [
86+
{ name: 'Transport of Freight' },
87+
{ name: 'Transport of Persons' },
88+
{ name: 'Other' },
89+
],
90+
},
91+
],
92+
},
93+
{
94+
name: 'professional_services',
95+
children: [
96+
{ name: 'Implementation Services' },
97+
{ name: 'Consulting' },
98+
{
99+
name: 'Service Management',
100+
children: [{ name: 'Operations' }, { name: 'Maintenance' }, { name: 'Governance' }],
101+
},
102+
],
103+
},
104+
{
105+
name: 'compliance_profile',
106+
children: [
107+
{ name: 'Baseline' },
108+
{ name: 'Professional' },
109+
{ name: 'Professional+' },
110+
],
111+
},
112+
]
113+
114+
export default availableFilters

src/app/models/interfaces.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,9 @@ export interface Category {
1414
name: string,
1515
version?: string,
1616
validFor?: object,
17-
children?: Category[]
17+
children?: Category[],
18+
count?: number, // Count from AI search facets
19+
sanitizedId?: string // Sanitized ID for CSS selectors (used with static filters)
1820
}
1921

2022
export interface LoginInfo {

src/app/pages/dashboard/dashboard.component.html

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -170,7 +170,6 @@ <h3>{{ "dashboard.customers.cards.c4.title" | translate }}</h3>
170170
<h3 class="sub-section-title">
171171
{{ "dashboard.customers.howTitle" | translate }}
172172
</h3>
173-
174173
<ul class="disc ml-4">
175174
<li>
176175
<strong>{{ "dashboard.customers.how.s1Title" | translate }}</strong><br />
@@ -185,12 +184,11 @@ <h3 class="sub-section-title">
185184
{{ "dashboard.customers.how.s3Text" | translate }}
186185
</li>
187186
</ul>
188-
189187
<p class="dd-mt-auto">
190188
<a class="btn btn-outline" target="_blank" href="https://onboarding.dome-marketplace.eu/?page=buyer">
191189
{{ "dashboard.customers.startJourney" | translate }}
192190
</a>
193-
</p> -->
191+
</p>
194192
</div>
195193
</div>
196194

@@ -249,7 +247,7 @@ <h3 class="sub-section-title">
249247
<a class="btn btn-outline" target="_blank" href=" https://onboarding.dome-marketplace.eu/?page=seller">
250248
{{ "dashboard.providers.startJourney" | translate }}
251249
</a>
252-
</p>
250+
</p>
253251
</div>
254252
</div>
255253
</div>

0 commit comments

Comments
 (0)