-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Qbd checkbox button creation (#1054)
* feat: checkbox button creation * PR comments fix * feat: onboarding basic setup (#1055) * feat: onboarding basic setup * feat: qbd direct onboarding landing page (#1056) * feat: qbd direct onboarding landing page * feat: qbd-direct-onboarding-pre-requisite implementation * PR comments fix * PR fix * updateWorkspaceOnboardingState service return type update * qbd direct logo update * feat: qbd-direct onboarding prerequisite UI implementation (#1058) * feat: qbd-direct-onboarding-pre-requisite implementation * styling changes * unit test fix * step footer contentt fix * pre requisite Ui updation * PR comments fix * PR comments fix * feat: Download qwd file UI changes (#1059) * feat: Download qwd file UI changes * download file Ui updation * download file Ui updation * download file Ui updation * download file Ui updation * feat: qbd connector setup UI changes (#1060) * feat: qbd connector setup UI changes * Merge branch qbd-direct-onboarding-download-file-UI into qbd-direct-step-connector-UI * feat: Qbd direct connection data sync UI changes (#1061) * feat: Qbd direct connection data sync UI changes * input made required * svg update * feat: qbd direct pre requisite ts changes (#1062) * feat: qbd direct pre requisite ts changes * feat: qbd direct pre requisite ts changes * feat: qbd direct connector download file ts changes (#1063) * feat: qbd direct connector download file ts changes * feat: qbd direct connector setup connector ts changes (#1064) * feat: qbd direct connector setup connector ts changes * feat: qbd direct connector data sync up ts changes (#1065) * PR comment fix * PR comment fix * Qbd direct connector data sync up ts (#1070) * feat: qbd direct pre requisite ts changes * feat: qbd direct pre requisite ts changes * feat: qbd direct connector download file ts changes * feat: qbd direct connector setup connector ts changes * feat: qbd direct connector data sync up ts changes * feat: QBD direct main connection page business logic (#1066) * feat: QBD direct main connection page business logic * onboarding connection ts changes * onboarding connection ts changes --------- Co-authored-by: ashwin1111 <[email protected]> --------- Co-authored-by: ashwin1111 <[email protected]> --------- Co-authored-by: ashwin1111 <[email protected]> --------- Co-authored-by: ashwin1111 <[email protected]> --------- Co-authored-by: ashwin1111 <[email protected]> --------- Co-authored-by: ashwin1111 <[email protected]> --------- Co-authored-by: ashwin1111 <[email protected]>
- Loading branch information
1 parent
80c9b48
commit 024398f
Showing
65 changed files
with
1,264 additions
and
85 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
import { QBDPreRequisiteState } from "../../enum/enum.model"; | ||
|
||
export type QbdConnectorPost = { | ||
file_location: string; | ||
} | ||
|
||
export type QbdConnectorGet = { | ||
id: number, | ||
workspace_id: number, | ||
username: string, | ||
password: string, | ||
ticket_id: string, | ||
file_location: string, | ||
qwc: string, | ||
created_at: Date, | ||
updated_at: Date | ||
} | ||
|
||
export type QBDPrerequisiteObject = { | ||
id: number, | ||
label: string, | ||
caption: string, | ||
externalLink?: string, | ||
iconName: string, | ||
state: QBDPreRequisiteState | ||
} | ||
|
||
export type SyncDataType = { | ||
attribute_type: string; | ||
count: null | number | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,96 @@ | ||
import { brandingContent, brandingFeatureConfig } from "src/app/branding/branding-config"; | ||
import { QbdDirectOnboardingState } from "../../enum/enum.model"; | ||
import { OnboardingStepper } from "../../misc/onboarding-stepper.model"; | ||
|
||
type QbdOnboardingStepperMap = { | ||
[QbdDirectOnboardingState.YET_TO_START]: number; | ||
[QbdDirectOnboardingState.CONFIRM_PRE_REQUISITES]: number; | ||
[QbdDirectOnboardingState.CONNECTION]: number; | ||
[QbdDirectOnboardingState.PENDING_QWC_UPLOAD]: number; | ||
[QbdDirectOnboardingState.INCORRECT_COMPANY_PATH]: number; | ||
[QbdDirectOnboardingState.INCORRECT_PASSWORD]: number; | ||
[QbdDirectOnboardingState.DESTINATION_SYNC_IN_PROGRESS]: number; | ||
[QbdDirectOnboardingState.DESTINATION_SYNC_COMPLETE]: number; | ||
[QbdDirectOnboardingState.EXPORT_SETTINGS]: number; | ||
[QbdDirectOnboardingState.IMPORT_SETTINGS]: number; | ||
[QbdDirectOnboardingState.ADVANCED_SETTINGS]: number; | ||
[QbdDirectOnboardingState.COMPLETE]: number; | ||
} | ||
|
||
export class QbdDirectOnboardingModel { | ||
brandingContent = brandingContent.qbd_direct.configuration; | ||
|
||
private onboardingSteps: OnboardingStepper[] = [ | ||
{ | ||
active: false, | ||
completed: false, | ||
step: this.brandingContent.preRequisite.stepName, | ||
icon: 'arrow-tail-up-medium', | ||
route: '/integrations/qbo/onboarding/pre_requisite', | ||
styleClasses: ['step-name-pre-requisite--text'] | ||
}, | ||
{ | ||
active: false, | ||
completed: false, | ||
step: this.brandingContent.connector.stepName, | ||
icon: 'link-vertical-medium', | ||
route: '/integrations/qbo/onboarding/connector', | ||
styleClasses: ['step-name-connector--text !tw-left-[-70px]'] | ||
}, | ||
{ | ||
active: false, | ||
completed: false, | ||
step: this.brandingContent.exportSetting.stepName, | ||
icon: 'arrow-tail-up-medium', | ||
route: '/integrations/qbo/onboarding/export_settings', | ||
styleClasses: ['step-name-export--text'] | ||
}, | ||
{ | ||
active: false, | ||
completed: false, | ||
step: this.brandingContent.importSetting.stepName, | ||
icon: 'arrow-tail-down-medium', | ||
route: '/integrations/qbo/onboarding/import_settings', | ||
styleClasses: ['step-name-export--text'] | ||
}, | ||
{ | ||
active: false, | ||
completed: false, | ||
step: this.brandingContent.advancedSettings.stepName, | ||
icon: 'gear-medium', | ||
route: '/integrations/qbo/onboarding/advanced_settings', | ||
styleClasses: ['step-name-advanced--text'] | ||
} | ||
]; | ||
|
||
private readonly onboardingStateStepMap: QbdOnboardingStepperMap = { | ||
[QbdDirectOnboardingState.YET_TO_START]: 1, | ||
[QbdDirectOnboardingState.CONFIRM_PRE_REQUISITES]: 1, | ||
[QbdDirectOnboardingState.CONNECTION]: 2, | ||
[QbdDirectOnboardingState.PENDING_QWC_UPLOAD]: 2, | ||
[QbdDirectOnboardingState.INCORRECT_COMPANY_PATH]: 2, | ||
[QbdDirectOnboardingState.INCORRECT_PASSWORD]: 2, | ||
[QbdDirectOnboardingState.DESTINATION_SYNC_IN_PROGRESS]: 2, | ||
[QbdDirectOnboardingState.DESTINATION_SYNC_COMPLETE]: 2, | ||
[QbdDirectOnboardingState.EXPORT_SETTINGS]: 3, | ||
[QbdDirectOnboardingState.IMPORT_SETTINGS]: 4, | ||
[QbdDirectOnboardingState.ADVANCED_SETTINGS]: 5, | ||
[QbdDirectOnboardingState.COMPLETE]: 6 | ||
}; | ||
|
||
getOnboardingSteps(currentStep: string, onboardingState: QbdDirectOnboardingState): OnboardingStepper[] { | ||
this.onboardingSteps.forEach(step => { | ||
if (step.step.toLowerCase() === currentStep.toLowerCase()) { | ||
step.active = true; | ||
} else { | ||
step.active = false; | ||
} | ||
}); | ||
|
||
for (let index = this.onboardingStateStepMap[onboardingState] - 1; index > 0; index--) { | ||
this.onboardingSteps[index - 1].completed = true; | ||
} | ||
|
||
return this.onboardingSteps; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...pp/core/services/qbd-direct/qbd-direct-configuration/qbd-direct-connector.service.spec.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
17 changes: 16 additions & 1 deletion
17
src/app/core/services/qbd-direct/qbd-direct-configuration/qbd-direct-connector.service.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,24 @@ | ||
import { Injectable } from '@angular/core'; | ||
import { ApiService } from '../../common/api.service'; | ||
import { WorkspaceService } from '../../common/workspace.service'; | ||
import { Observable } from 'rxjs'; | ||
import { QbdConnectorPost, QbdConnectorGet, SyncDataType } from 'src/app/core/models/qbd-direct/qbd-direct-configuration/qbd-direct-connector.model'; | ||
|
||
@Injectable({ | ||
providedIn: 'root' | ||
}) | ||
export class QbdDirectConnectorService { | ||
|
||
constructor() { } | ||
constructor( | ||
private apiService: ApiService, | ||
private workspaceService: WorkspaceService | ||
) { } | ||
|
||
postQbdDirectConntion(payload: QbdConnectorPost): Observable<QbdConnectorGet> { | ||
return this.apiService.post(`/workspaces/${this.workspaceService.getWorkspaceId()}/connector_settings/`, payload); | ||
} | ||
|
||
syncAttribuites(): Observable<SyncDataType[]> { | ||
return this.apiService.get(`/workspaces/${this.workspaceService.getWorkspaceId()}/qbd/attribute_stats/`, {}); | ||
} | ||
} |
16 changes: 0 additions & 16 deletions
16
src/app/core/services/qbd-direct/qbd-direct-core/qbd-direct-connector.service.spec.ts
This file was deleted.
Oops, something went wrong.
9 changes: 0 additions & 9 deletions
9
src/app/core/services/qbd-direct/qbd-direct-core/qbd-direct-connector.service.ts
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.