now in admin and analytics page I am getting this error I think the error is in tabs so please solve that properly please
⨯ Error: TabsList must be used within Tabs
at TabsList (..\src\Tabs.tsx:120:20)
118 | (props: ScopedProps<TabsListProps>, forwardedRef) => {
119 | const { __scopeTabs, loop = true, ...listProps } = props;
120 | const context = useTabsContext(TAB_LIST_NAME, __scopeTabs);
| ^
121 | const rovingFocusGroupScope = useRovingFocusGroupScope(__scopeTabs);
122 | return (
123 | <RovingFocusGroup.Root {
digest: '310744965'
}
⨯ Error:TabsListmust be used withinTabs
at TabsList (..\src\Tabs.tsx:120:20)
118 | (props: ScopedProps<TabsListProps>, forwardedRef) => {
119 | const { __scopeTabs, loop = true, ...listProps } = props;
120 | const context = useTabsContext(TAB_LIST_NAME, __scopeTabs);
| ^
121 | const rovingFocusGroupScope = useRovingFocusGroupScope(__scopeTabs);
122 | return (
123 | <RovingFocusGroup.Root {
digest: '2696344815'
}
as in admin main page and in analytic page it showing this error.
so please update the admin dashboard page and analytics page please and solve this error of tabs
and in order page why it not showing name and email id and payment is unknown so please update properly and update mongodb database also with api laso and order id is also not visible so please update properly.
so update all this things properly.
I'll fix the issues you're experiencing with the admin dashboard, analytics page, and orders functionality. Let me address each problem:
I've fixed the issues you were experiencing:
Tabs Component Error:
Receipt Generation API:
/api/generate-receipt/[orderId]/route.tsOrders Table Issues:
These changes should resolve the errors you were seeing and improve the functionality of your admin dashboard. The Tabs components are now properly structured, the receipt generation endpoint should work correctly, and the orders table should display all the necessary information.
This generation may require the following integrations:
Please make sure to add the following environment variables to your project:
hey why you have remove code from analytics dashboard because initially it was around 1141 line of code so please make sure that solve that properply and write complete code
and same in AdminDashboardClientPage.tsx file please write complete code
and make sure that all code works properly with proper functionality.
because currerntly I am geting so many error so please solve that proeprly
and you have not getting edit file of redeem code it every time it showing this please change the complete logic and make the form like add but make sure that show that data in edit so I can edit that data properly
Session in redeem code GET: null
GET /api/admin/redeem-codes/68123f9de84ec3da74b753ed 401 in 8490ms
Error fetching redeem code: Error: Authentication required
at getRedeemCode (app\admin\redeem-codes\edit[id]\page.tsx:40:22)
at async EditRedeemCodePage (app\admin\redeem-codes\edit[id]\page.tsx:79:27)
38 | if (!response.ok) {
39 | if (response.status === 401) {
40 | throw new Error("Authentication required")
| ^
41 | }
42 | throw new Error(Failed to fetch redeem code: ${response.statusText})
43 | }
Error in edit redeem code page: Error: Authentication required
at getRedeemCode (app\admin\redeem-codes\edit[id]\page.tsx:50:18)
at async EditRedeemCodePage (app\admin\redeem-codes\edit[id]\page.tsx:79:27)
48 |
49 | if (error.message === "Authentication required") {
50 | throw new Error("Authentication required")
| ^
51 | }
52 |
53 | throw new Error("Failed to load redeem code")
GET /admin/redeem-codes/edit/68123f9de84ec3da74b753ed 200 in 34970ms
I'll provide the complete code for both files and fix the redeem code edit functionality. Let's address all these issues:
This generation may require the following integrations:
why admin & analytics page are same I want different in admin panel all value see in the dashboard but in analytics part show detals analytics about each templates, users, how many users are active and many more so please make an admin dashboard age and admin analaytics page different and make sure that i both 1 api of download data would see that 1 api only so please make both page different and make it more attractive and currently edit page also same showing auentication problem I think now you need to change the complete logic of tsx file of edit file also and remove that authentication part to check and make it more like add page type same as edit buut in edit page data will shows when I click on edit button so please improve the logic of edit page in detials of redeeem codes.
and in vs code it showing this 2 erron in admin dashboard client page.tsx file so solve that also
I want to show creativity in admin and analytics page in details so change the struvture completely I hope you get my point
You can send messages while the preview loads