Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
C
chatbot-canifa-feedback
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
1
Merge Requests
1
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Vũ Hoàng Anh
chatbot-canifa-feedback
Commits
d58ec74f
Commit
d58ec74f
authored
Apr 22, 2026
by
Vũ Hoàng Anh
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix(ui): remove ultra-desc assistant widget and repair main page routes
parent
36f23f95
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
17 additions
and
7 deletions
+17
-7
main.html
backend/static/main.html
+17
-5
product-desc.html
backend/static/product-desc/product-desc.html
+0
-2
No files found.
backend/static/main.html
View file @
d58ec74f
...
@@ -100,7 +100,7 @@ body{margin:0;display:flex;min-height:100vh}
...
@@ -100,7 +100,7 @@ body{margin:0;display:flex;min-height:100vh}
<span
class=
"nav-icon"
><svg
width=
"18"
height=
"18"
viewBox=
"0 0 24 24"
fill=
"none"
stroke=
"currentColor"
stroke-width=
"2"
stroke-linecap=
"round"
stroke-linejoin=
"round"
><rect
x=
"2"
y=
"7"
width=
"20"
height=
"14"
rx=
"2"
ry=
"2"
/><path
d=
"M16 21V5a2 2 0 0 0-2-2h-4a2 2 0 0 0-2 2v16"
/></svg></span>
<span
class=
"nav-icon"
><svg
width=
"18"
height=
"18"
viewBox=
"0 0 24 24"
fill=
"none"
stroke=
"currentColor"
stroke-width=
"2"
stroke-linecap=
"round"
stroke-linejoin=
"round"
><rect
x=
"2"
y=
"7"
width=
"20"
height=
"14"
rx=
"2"
ry=
"2"
/><path
d=
"M16 21V5a2 2 0 0 0-2-2h-4a2 2 0 0 0-2 2v16"
/></svg></span>
<span>
Sơ đồ hoạt động
</span>
<span>
Sơ đồ hoạt động
</span>
</a>
</a>
<a
data-page=
"experiment_detail.html?id=exp_chatbot_prod"
class=
"nav-item"
onclick=
"navigateTo(this)"
title=
"Chatbot"
>
<a
data-page=
"experiment_detail
/experiment_detail
.html?id=exp_chatbot_prod"
class=
"nav-item"
onclick=
"navigateTo(this)"
title=
"Chatbot"
>
<span
class=
"nav-icon"
><svg
width=
"18"
height=
"18"
viewBox=
"0 0 24 24"
fill=
"none"
stroke=
"currentColor"
stroke-width=
"2"
stroke-linecap=
"round"
stroke-linejoin=
"round"
><path
d=
"m3 9 9-7 9 7v11a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z"
/><polyline
points=
"9 22 9 12 15 12 15 22"
/></svg></span>
<span
class=
"nav-icon"
><svg
width=
"18"
height=
"18"
viewBox=
"0 0 24 24"
fill=
"none"
stroke=
"currentColor"
stroke-width=
"2"
stroke-linecap=
"round"
stroke-linejoin=
"round"
><path
d=
"m3 9 9-7 9 7v11a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z"
/><polyline
points=
"9 22 9 12 15 12 15 22"
/></svg></span>
<span>
Chatbot
</span>
<span>
Chatbot
</span>
<span
class=
"nav-badge badge-live"
>
LIVE
</span>
<span
class=
"nav-badge badge-live"
>
LIVE
</span>
...
@@ -128,12 +128,12 @@ body{margin:0;display:flex;min-height:100vh}
...
@@ -128,12 +128,12 @@ body{margin:0;display:flex;min-height:100vh}
<span>
Outfit Logic
</span>
<span>
Outfit Logic
</span>
<span
class=
"nav-badge badge-new"
>
NEW
</span>
<span
class=
"nav-badge badge-new"
>
NEW
</span>
</a>
</a>
<a
data-page=
"ai-report.html"
class=
"nav-item"
onclick=
"navigateTo(this)"
title=
"AI Data Analyst"
>
<a
data-page=
"ai-report
/ai-report
.html"
class=
"nav-item"
onclick=
"navigateTo(this)"
title=
"AI Data Analyst"
>
<span
class=
"nav-icon"
><svg
width=
"18"
height=
"18"
viewBox=
"0 0 24 24"
fill=
"none"
stroke=
"currentColor"
stroke-width=
"2"
stroke-linecap=
"round"
stroke-linejoin=
"round"
><line
x1=
"18"
y1=
"20"
x2=
"18"
y2=
"10"
/><line
x1=
"12"
y1=
"20"
x2=
"12"
y2=
"4"
/><line
x1=
"6"
y1=
"20"
x2=
"6"
y2=
"14"
/></svg></span>
<span
class=
"nav-icon"
><svg
width=
"18"
height=
"18"
viewBox=
"0 0 24 24"
fill=
"none"
stroke=
"currentColor"
stroke-width=
"2"
stroke-linecap=
"round"
stroke-linejoin=
"round"
><line
x1=
"18"
y1=
"20"
x2=
"18"
y2=
"10"
/><line
x1=
"12"
y1=
"20"
x2=
"12"
y2=
"4"
/><line
x1=
"6"
y1=
"20"
x2=
"6"
y2=
"14"
/></svg></span>
<span>
AI Data Analyst
</span>
<span>
AI Data Analyst
</span>
<span
class=
"nav-badge badge-beta"
>
NEW
</span>
<span
class=
"nav-badge badge-beta"
>
NEW
</span>
</a>
</a>
<a
data-page=
"ai-sql.html"
class=
"nav-item"
onclick=
"navigateTo(this)"
title=
"AI sinh SQL"
>
<a
data-page=
"ai-sql
/ai-sql
.html"
class=
"nav-item"
onclick=
"navigateTo(this)"
title=
"AI sinh SQL"
>
<span
class=
"nav-icon"
><svg
width=
"18"
height=
"18"
viewBox=
"0 0 24 24"
fill=
"none"
stroke=
"currentColor"
stroke-width=
"2"
stroke-linecap=
"round"
stroke-linejoin=
"round"
><ellipse
cx=
"12"
cy=
"5"
rx=
"9"
ry=
"3"
/><path
d=
"M3 5V19A9 3 0 0 0 21 19V5"
/><path
d=
"M3 12A9 3 0 0 0 21 12"
/></svg></span>
<span
class=
"nav-icon"
><svg
width=
"18"
height=
"18"
viewBox=
"0 0 24 24"
fill=
"none"
stroke=
"currentColor"
stroke-width=
"2"
stroke-linecap=
"round"
stroke-linejoin=
"round"
><ellipse
cx=
"12"
cy=
"5"
rx=
"9"
ry=
"3"
/><path
d=
"M3 5V19A9 3 0 0 0 21 19V5"
/><path
d=
"M3 12A9 3 0 0 0 21 12"
/></svg></span>
<span>
AI sinh SQL
</span>
<span>
AI sinh SQL
</span>
<span
class=
"nav-badge badge-beta"
>
NEW
</span>
<span
class=
"nav-badge badge-beta"
>
NEW
</span>
...
@@ -378,6 +378,18 @@ function handleLogout() {
...
@@ -378,6 +378,18 @@ function handleLogout() {
canifaAuth
.
logout
();
canifaAuth
.
logout
();
}
}
function
normalizePagePath
(
page
)
{
if
(
!
page
)
return
page
;
const
[
rawPath
,
query
=
''
]
=
page
.
split
(
'?'
);
const
legacyMap
=
{
'experiment_detail.html'
:
'experiment_detail/experiment_detail.html'
,
'ai-report.html'
:
'ai-report/ai-report.html'
,
'ai-sql.html'
:
'ai-sql/ai-sql.html'
,
};
const
normalizedPath
=
legacyMap
[
rawPath
]
||
rawPath
;
return
query
?
`
${
normalizedPath
}
?
${
query
}
`
:
normalizedPath
;
}
// ═══ SETTINGS MODAL LOGIC ═══
// ═══ SETTINGS MODAL LOGIC ═══
async
function
loadUserSettings
()
{
async
function
loadUserSettings
()
{
const
token
=
localStorage
.
getItem
(
'canifa_token'
);
const
token
=
localStorage
.
getItem
(
'canifa_token'
);
...
@@ -440,7 +452,7 @@ async function saveSettingsModal() {
...
@@ -440,7 +452,7 @@ async function saveSettingsModal() {
// ═══ NAVIGATION ═══
// ═══ NAVIGATION ═══
function
navigateTo
(
el
)
{
function
navigateTo
(
el
)
{
const
page
=
el
.
getAttribute
(
'data-page'
);
const
page
=
normalizePagePath
(
el
.
getAttribute
(
'data-page'
)
);
if
(
!
page
)
return
;
if
(
!
page
)
return
;
const
src
=
page
.
startsWith
(
'http'
)
?
page
:
'/static/'
+
page
+
(
page
.
includes
(
'?'
)
?
'&'
:
'?'
)
+
't='
+
Date
.
now
();
const
src
=
page
.
startsWith
(
'http'
)
?
page
:
'/static/'
+
page
+
(
page
.
includes
(
'?'
)
?
'&'
:
'?'
)
+
't='
+
Date
.
now
();
document
.
getElementById
(
'contentFrame'
).
src
=
src
;
document
.
getElementById
(
'contentFrame'
).
src
=
src
;
...
@@ -457,7 +469,7 @@ function navigateTo(el) {
...
@@ -457,7 +469,7 @@ function navigateTo(el) {
// ═══ INIT: Load page from URL param ═══
// ═══ INIT: Load page from URL param ═══
(
function
()
{
(
function
()
{
const
params
=
new
URLSearchParams
(
window
.
location
.
search
);
const
params
=
new
URLSearchParams
(
window
.
location
.
search
);
const
page
=
params
.
get
(
'page'
);
const
page
=
normalizePagePath
(
params
.
get
(
'page'
)
);
if
(
page
)
{
if
(
page
)
{
const
src
=
page
.
startsWith
(
'http'
)
?
page
:
'/static/'
+
page
+
(
page
.
includes
(
'?'
)
?
'&'
:
'?'
)
+
't='
+
Date
.
now
();
const
src
=
page
.
startsWith
(
'http'
)
?
page
:
'/static/'
+
page
+
(
page
.
includes
(
'?'
)
?
'&'
:
'?'
)
+
't='
+
Date
.
now
();
document
.
getElementById
(
'contentFrame'
).
src
=
src
;
document
.
getElementById
(
'contentFrame'
).
src
=
src
;
...
...
backend/static/product-desc/product-desc.html
View file @
d58ec74f
...
@@ -370,8 +370,6 @@
...
@@ -370,8 +370,6 @@
</div>
</div>
<script
src=
"/static/product-desc/product-desc.js"
></script>
<script
src=
"/static/product-desc/product-desc.js"
></script>
<!-- AI Assistant Widget -->
<script
src=
"/static/product-desc/ai-assistant.js?v=1"
></script>
<!-- Chatbot Widget -->
<!-- Chatbot Widget -->
<script
src=
"/static/product-desc/product-desc-chatbot.js?v=2"
></script>
<script
src=
"/static/product-desc/product-desc-chatbot.js?v=2"
></script>
</body>
</body>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment