Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

quick fix for test data for ux review #9

Merged
merged 1 commit into from
Apr 29, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions strr-web/pages/account-select.vue
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,8 @@ const query = useRoute().query;
let userAccounts = activeUserAccounts;

if ('test' in query && query.test === "true") {
const testData: AccountI = testAccounts as unknown as AccountI;
userAccounts = [ testData ];
const testData: AccountI[] = testAccounts as unknown as AccountI[];
userAccounts = testData;
}


Expand Down
81 changes: 55 additions & 26 deletions strr-web/pages/test-accounts.json
Original file line number Diff line number Diff line change
@@ -1,27 +1,56 @@
{
"accessType": "REGULAR",
"branchName": "",
"businessName": "PPR Dev JR 2",
"businessSize": "2-5",
"businessType": "REALA",
"created": "2022-01-06T00:14:08+00:00",
"createdBy": "BCREGTEST HARRIETT FORTY",
"hasApiAccess": false,
"id": 2869,
"isBusinessAccount": true,
"mailingAddress": {
"city": "Lake Country",
"country": "CA",
"postalCode": "V4V 1V7",
"region": "BC",
"street": "9874 Pollard Rd",
"streetAdditional": ""
[
{
"accessType": "REGULAR",
"branchName": "",
"businessName": "PPR Dev JR 1",
"businessSize": "2-5",
"businessType": "REALA",
"created": "2022-01-06T00:14:08+00:00",
"createdBy": "BCREGTEST HARRIETT FORTY",
"hasApiAccess": false,
"id": 2869,
"isBusinessAccount": true,
"mailingAddress": {
"city": "Lake Country",
"country": "CA",
"postalCode": "V4V 1V7",
"region": "BC",
"street": "9874 Pollard Rd",
"streetAdditional": ""
},
"modified": "2022-01-06T00:14:08+00:00",
"name": "PPR Dev JR 2",
"orgStatus": "ACTIVE",
"orgType": "PREMIUM",
"statusCode": "ACTIVE",
"uuid": "e3d5c9da-4853-4e1d-bef9-0b765df3c523",
"label": "PPR Dev JR 2"
},
"modified": "2022-01-06T00:14:08+00:00",
"name": "PPR Dev JR 2",
"orgStatus": "ACTIVE",
"orgType": "PREMIUM",
"statusCode": "ACTIVE",
"uuid": "e3d5c9da-4853-4e1d-bef9-0b765df3c523",
"label": "PPR Dev JR 2"
}
{
"accessType": "REGULAR",
"branchName": "",
"businessName": "PPR Dev JR 1",
"businessSize": "2-5",
"businessType": "REALA",
"created": "2022-01-06T00:14:08+00:00",
"createdBy": "BCREGTEST HARRIETT FORTY",
"hasApiAccess": false,
"id": 2869,
"isBusinessAccount": true,
"mailingAddress": {
"city": "Lake Country",
"country": "CA",
"postalCode": "V4V 1V7",
"region": "BC",
"street": "9874 Pollard Rd",
"streetAdditional": ""
},
"modified": "2022-01-06T00:14:08+00:00",
"name": "PPR Dev JR 2",
"orgStatus": "ACTIVE",
"orgType": "PREMIUM",
"statusCode": "ACTIVE",
"uuid": "e3d5c9da-4853-4e1d-bef9-0b765df3c523",
"label": "PPR Dev JR 2"
}
]
Loading