agent conformation
This commit is contained in:
35
src/features/store-admin/pages/UploadsPage.tsx
Normal file
35
src/features/store-admin/pages/UploadsPage.tsx
Normal file
@@ -0,0 +1,35 @@
|
||||
import { VStack } from '@astryxdesign/core/VStack';
|
||||
import { PageHeader } from '@/components/PageHeader';
|
||||
import { useAuth } from '@/auth/AuthContext';
|
||||
import { useBranchScope } from '../BranchScope';
|
||||
import { UploadsPanel } from '@/features/uploads/UploadsPanel';
|
||||
|
||||
/**
|
||||
* This merchant's uploads.
|
||||
*
|
||||
* Scoped from the session, never from a picker — the same rule the import
|
||||
* itself follows. A store login's tenant is fixed by who they are, and offering
|
||||
* a choice with one legal answer is only a chance to get it wrong.
|
||||
*
|
||||
* The branch comes from the shared scope selector, so this page answers
|
||||
* whichever branch the header is currently pointed at; `selected` of null means
|
||||
* all of them, which is the right default for a merchant looking across their
|
||||
* outlets.
|
||||
*/
|
||||
export function UploadsPage() {
|
||||
const { user } = useAuth();
|
||||
const { selected } = useBranchScope();
|
||||
|
||||
return (
|
||||
<VStack gap={3}>
|
||||
<PageHeader
|
||||
title="Uploads"
|
||||
description="Spreadsheets sent to the catalogue service — what each one added, and whether it reached a shelf."
|
||||
/>
|
||||
<UploadsPanel
|
||||
tenantid={user?.tenantid ?? 0}
|
||||
{...(selected === null ? {} : { locationid: selected })}
|
||||
/>
|
||||
</VStack>
|
||||
);
|
||||
}
|
||||
Reference in New Issue
Block a user