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

21977 Implemented Pending list #683

Merged
merged 4 commits into from
Jul 17, 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 package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "business-filings-ui",
"version": "7.3.13",
"version": "7.3.14",
"private": true,
"appName": "Filings UI",
"sbcName": "SBC Common Components",
Expand Down
24 changes: 22 additions & 2 deletions src/App.vue
Original file line number Diff line number Diff line change
Expand Up @@ -343,8 +343,9 @@ export default class App extends Mixins(
created (): void {
// listen for reload data events
this.$root.$on('reloadData', async () => {
// clear Todo List / Filing History List before fetching new data
// clear lists before fetching new data
this.setTasks([])
this.setPendingsList([])
this.setFilings([])
await this.fetchData()
})
Expand Down Expand Up @@ -391,6 +392,7 @@ export default class App extends Mixins(
@Action(useRootStore) setKeycloakRoles!: (x: Array<string>) => void
@Action(useRootStore) setNameRequest!: (x: any) => void
@Action(useRootStore) setParties!: (x: Array<PartyIF>) => void
@Action(useRootStore) setPendingsList!: (x: Array<any>) => void
@Action(useRootStore) setRecordsAddress!: (x: OfficeAddressIF) => void
@Action(useRootStore) setRegisteredAddress!: (x: OfficeAddressIF) => void
@Action(useRootStore) setTasks!: (x: Array<ApiTaskIF>) => void
Expand Down Expand Up @@ -687,7 +689,25 @@ export default class App extends Mixins(

/** Stores bootstrap item in the Pending List. */
storeBootstrapPending (response: any): void {
this.storeBootstrapFiling(response) // *** TODO: implement this
const filing = response.filing as TaskTodoIF
// NB: these were already validated in storeBootstrapItem()
const header = filing.header
const data = filing[header.name]

// set addresses
this.storeAddresses({ data: data.offices || [] })

// set parties
this.storeParties({ data: { parties: data.parties || [] } })
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Although this bootstrap filing isn't complete, we want to show the addresses and parties (both disabled) on the page, ie:

image


const description = GetCorpFullDescription(data.nameRequest.legalType)
const filingName = EnumUtilities.filingTypeToName(header.name, null, data.type)

// save display name for later
filing.displayName = `${description} ${filingName}`

// add this as a pending item
this.setPendingsList([filing])
}

/** Stores bootstrap item in the Filing History List. */
Expand Down
4 changes: 3 additions & 1 deletion src/components/Dashboard/AddressListSm.vue
Original file line number Diff line number Diff line change
Expand Up @@ -352,7 +352,9 @@ export default class AddressListSm extends Mixins(CommonMixin, CountriesProvince
return [] // All panels closed by default
} else if (this.disabled) {
return [OPEN_PANEL, CLOSE_PANEL]
} else return [OPEN_PANEL]
} else {
return [OPEN_PANEL]
}
}
}
</script>
Expand Down
Loading
Loading