Skip to content

Commit 4f23876

Browse files
committed
seed.ts updates and consistency
1 parent b15d170 commit 4f23876

2 files changed

Lines changed: 32 additions & 2 deletions

File tree

‎scripts/seed.ts‎

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -167,6 +167,36 @@ async function buildSeedData() {
167167
supportNotify: true,
168168
});
169169

170+
// Standard Admin (Has userWrite, but NOT isSuper)
171+
// Use this account to see if it can deactivate partners but NOT Super Admins
172+
const staffAdmin = await createUser({
173+
email: "staffadmin@test.com",
174+
name: "Staff Admin",
175+
passwordHash,
176+
type: UserType.STAFF,
177+
enabled: true,
178+
pending: false,
179+
isSuper: false,
180+
userRead: true,
181+
userWrite: true,
182+
itemNotify: true,
183+
offerWrite: true,
184+
requestRead: true,
185+
requestWrite: true,
186+
allocationRead: true,
187+
allocationWrite: true,
188+
archivedRead: true,
189+
distributionRead: true,
190+
distributionWrite: true,
191+
shipmentRead: true,
192+
shipmentWrite: true,
193+
signoffWrite: true,
194+
wishlistRead: true,
195+
supportRead: true,
196+
supportWrite: true,
197+
supportNotify: true,
198+
});
199+
170200
// Create distribution lead staff user
171201
const distributionLead = await createUser({
172202
email: "distribution@test.com",
@@ -233,6 +263,7 @@ async function buildSeedData() {
233263

234264
console.log("✓ Created users");
235265
console.log(` - Super Admin: ${superAdmin.email}`);
266+
console.log(` - Staff Admin: ${staffAdmin.email}`);
236267
console.log(` - Distribution Lead: ${distributionLead.email}`);
237268
console.log(` - Partner 1: ${partner1.email}`);
238269
console.log(` - Partner 2: ${partner2.email}`);

‎src/components/Tutorial.tsx‎

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
import { useCallback, useEffect, useMemo, useRef, useState } from "react";
2-
import {
3-
Joyride,
2+
import Joyride, {
43
Step,
54
CallBackProps,
65
STATUS,

0 commit comments

Comments
 (0)