Step 4: Add admin UI page for pricing configuration
- Add pricing API functions to admin.ts - Create admin pricing page with form and validation - Add MANAGE_PRICING permission to auth context - Add pricing to admin navigation - Add translations for pricing page (en, ca, es) - Update PageLayout and Header types for new page
This commit is contained in:
parent
4d0dad8e2b
commit
d838d1be96
11 changed files with 509 additions and 5 deletions
|
|
@ -17,7 +17,8 @@ type PageId =
|
|||
| "admin-invites"
|
||||
| "admin-availability"
|
||||
| "admin-trades"
|
||||
| "admin-price-history";
|
||||
| "admin-price-history"
|
||||
| "admin-pricing";
|
||||
|
||||
interface HeaderProps {
|
||||
currentPage: PageId;
|
||||
|
|
@ -48,6 +49,7 @@ const ADMIN_NAV_ITEMS: NavItem[] = [
|
|||
},
|
||||
{ id: "admin-invites", labelKey: "invites", href: "/admin/invites", adminOnly: true },
|
||||
{ id: "admin-price-history", labelKey: "prices", href: "/admin/price-history", adminOnly: true },
|
||||
{ id: "admin-pricing", labelKey: "pricing", href: "/admin/pricing", adminOnly: true },
|
||||
];
|
||||
|
||||
export function Header({ currentPage }: HeaderProps) {
|
||||
|
|
|
|||
|
|
@ -12,7 +12,8 @@ type PageId =
|
|||
| "admin-invites"
|
||||
| "admin-availability"
|
||||
| "admin-trades"
|
||||
| "admin-price-history";
|
||||
| "admin-price-history"
|
||||
| "admin-pricing";
|
||||
|
||||
interface PageLayoutProps {
|
||||
/** Current page ID for navigation highlighting */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue