Skip to content

Commit

Permalink
feat: add Create Assessment button and update dashboard routing
Browse files Browse the repository at this point in the history
  • Loading branch information
kalyan540 committed Jan 6, 2025
1 parent 37cb6a8 commit 4199456
Showing 1 changed file with 26 additions and 1 deletion.
27 changes: 26 additions & 1 deletion superset-frontend/src/pages/Dashboard/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,14 @@ const DashboardRoute: FC = () => {
Dashboard
</button>

<button
className={`button ${activeButton === 'Create' ? 'active' : ''}`}
onClick={() => handleButtonClick('Create')}
>
<img src="/static/assets/images/Analytics.png" alt="Icon" className="icon" />
Create Assessment
</button>

<button
className={`button ${activeButton === 'Analytics' ? 'active' : ''}`}
onClick={() => handleButtonClick('Analytics')}
Expand All @@ -121,7 +129,22 @@ const DashboardRoute: FC = () => {
onClick={() => handleButtonClick('ChatBot')}
>
<img src="/static/assets/images/chatboticon.png" alt="Icon" className="icon" />
ChatBot
NPD Bot
</button>
<button
className={`button ${activeButton === 'Alerts' ? 'active' : ''}`}
onClick={() => handleButtonClick('Alerts')}
>
<img src="/static/assets/images/Alerts.png" alt="Icon" className="icon" />
Alerts
</button>

<button
className={`button ${activeButton === 'Reports' ? 'active' : ''}`}
onClick={() => handleButtonClick('Reports')}
>
<img src="/static/assets/images/Reports.png" alt="Icon" className="icon" />
Reports
</button>


Expand Down Expand Up @@ -178,6 +201,8 @@ const DashboardRoute: FC = () => {
<ChatBOT />
) : activeButton === 'Analytics' ? (
<DashboardPage idOrSlug={'15'} />
) : activeButton === 'Create' ? (
<DashboardPage idOrSlug={'13'} />
) : (
<div>
<h2>This page is in development.</h2>
Expand Down

0 comments on commit 4199456

Please sign in to comment.