shuashuai commented on code in PR #1501:
URL: https://github.com/apache/answer/pull/1501#discussion_r2871498901


##########
ui/src/pages/Admin/AiAssistant/index.tsx:
##########
@@ -65,60 +171,117 @@ const Index = () => {
   return (
     <div className="d-flex flex-column flex-grow-1 position-relative">
       <h3 className="mb-4">{t('ai_assistant', { keyPrefix: 'nav_menus' })}</h3>
-      <Table responsive="md">
-        <thead>
-          <tr>
-            <th className="min-w-15">{t('topic')}</th>
-            <th style={{ width: '10%' }}>{t('helpful')}</th>
-            <th style={{ width: '10%' }}>{t('unhelpful')}</th>
-            <th style={{ width: '20%' }}>{t('created')}</th>
-            <th style={{ width: '10%' }} className="text-end">
-              {t('action')}
-            </th>
-          </tr>
-        </thead>
-        <tbody className="align-middle">
-          {conversations?.list.map((item) => {
-            return (
-              <tr key={item.id}>
-                <td>
-                  <Button
-                    variant="link"
-                    className="p-0 text-decoration-none text-truncate max-w-30"
-                    onClick={() => handleShowDetailModal(item)}>
-                    {item.topic}
-                  </Button>
-                </td>
-                <td>{item.helpful_count}</td>
-                <td>{item.unhelpful_count}</td>
-                <td>
-                  <div className="vstack">
-                    <BaseUserCard data={item.user_info} avatarSize="20px" />
-                    <FormatTime
-                      className="small text-secondary"
-                      time={item.created_at}
-                    />
-                  </div>
-                </td>
-                <td className="text-end">
-                  <Action id={item.id} refreshList={refreshList} />
-                </td>
+      <Nav variant="underline" className="mb-4 border-bottom">
+        <Nav.Item>
+          <Nav.Link
+            className="px-0 me-4"
+            active={activeTab === 'conversations'}
+            onClick={() => setActiveTab('conversations')}>
+            {t('tabs.conversations')}
+          </Nav.Link>
+        </Nav.Item>
+        <Nav.Item>
+          <Nav.Link
+            className="px-0"
+            active={activeTab === 'settings'}
+            onClick={() => setActiveTab('settings')}>
+            {t('tabs.settings')}
+          </Nav.Link>
+        </Nav.Item>
+      </Nav>
+

Review Comment:
   This is implemented in the way of navigation, not the tabs, you can refer to 
the line of sight in 'ui/src/pages/Admin/Questions/index.tsx'
   
   <img width="816" height="310" alt="image" 
src="https://github.com/user-attachments/assets/4cee1cfe-1c34-4dc4-9170-3393d12b4677";
 />



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to