Skip to content

Commit 0118958

Browse files
committed
feat: Enable search and AI
1 parent 7489d43 commit 0118958

File tree

3 files changed

+14
-1
lines changed

3 files changed

+14
-1
lines changed

manifest.webapp

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,16 @@
3535
"description": "Required by the cozy-bar to display the avatar",
3636
"type": "io.cozy.contacts",
3737
"verbs": ["GET"]
38+
},
39+
"chatConversations": {
40+
"description": "Required by the cozy Assistant",
41+
"type": "io.cozy.ai.chat.conversations",
42+
"verbs": ["GET", "POST"]
43+
},
44+
"chatEvents": {
45+
"description": "Required by the cozy Assistant",
46+
"type": "io.cozy.ai.chat.events",
47+
"verbs": ["GET"]
3848
}
3949
},
4050
"mobile": {

src/components/AppLayout.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import { BarComponent } from 'cozy-bar'
66
const AppLayout = () => {
77
return (
88
<>
9-
<BarComponent searchOptions={{ enabled: false }} />
9+
<BarComponent />
1010
<Outlet />
1111
</>
1212
)

src/components/AppRouter.jsx

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
import React from 'react'
22
import { HashRouter, Routes, Route, Outlet } from 'react-router-dom'
33

4+
import { BarRoutes } from 'cozy-bar'
5+
46
import App from '@/components/App'
57
import AppLayout from '@/components/AppLayout'
68

@@ -17,6 +19,7 @@ const AppRouter = () => {
1719
<Routes>
1820
<Route element={<AppLayout />}>
1921
<Route path="/" element={<OutletWrapper Component={App} />}>
22+
{BarRoutes.map(BarRoute => BarRoute)}
2023
<Route path="bridge/*" />
2124
</Route>
2225
</Route>

0 commit comments

Comments
 (0)