Skip to content

Commit

Permalink
feat: qbd direct servey and info box in dashboard (#1175)
Browse files Browse the repository at this point in the history
* qbd direct servey and info box in dashboard

* adding padding
  • Loading branch information
DhaaraniCIT authored Feb 5, 2025
1 parent 7688c10 commit 8d5a7f2
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 0 deletions.
1 change: 1 addition & 0 deletions run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ do
sed -i $SED_EXTRA_ARGS "s?{{REFINER_INTACCT_ONBOARDING_DONE_SURVEY_ID}}?${REFINER_INTACCT_ONBOARDING_DONE_SURVEY_ID}?g" $f;
sed -i $SED_EXTRA_ARGS "s?{{REFINER_QBD_ONBOARDING_DONE_SURVEY_ID}}?${REFINER_QBD_ONBOARDING_DONE_SURVEY_ID}?g" $f;
sed -i $SED_EXTRA_ARGS "s?{{REFINER_INTACCT_EXPORT_DONE_SURVEY_ID}}?${REFINER_INTACCT_EXPORT_DONE_SURVEY_ID}?g" $f;
sed -i $SED_EXTRA_ARGS "s?{{REFINER_QBD_EXPORT_DONE_SURVEY_ID}}?${REFINER_QBD_EXPORT_DONE_SURVEY_ID}?g" $f;
sed -i $SED_EXTRA_ARGS "s?{{BUSINESS_CENTRAL_OAUTH_REDIRECT_URI}}?${BUSINESS_CENTRAL_OAUTH_REDIRECT_URI}?g" $f;
sed -i $SED_EXTRA_ARGS "s?{{BUSINESS_CENTRAL_OAUTH_CLIENT_ID}}?${BUSINESS_CENTRAL_OAUTH_CLIENT_ID}?g" $f;
sed -i $SED_EXTRA_ARGS "s?{{XERO_OAUTH_CLIENT_ID}}?${XERO_OAUTH_CLIENT_ID}?g" $f;
Expand Down
1 change: 1 addition & 0 deletions scripts/setup_env.js
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ const environment = {
},
qbd: {
onboarding_done_survery_id: `${process.env.REFINER_QBD_ONBOARDING_DONE_SURVEY_ID ? process.env.REFINER_QBD_ONBOARDING_DONE_SURVEY_ID : '{{REFINER_QBD_ONBOARDING_DONE_SURVEY_ID}}'}`,
export_done_survery_id: `${process.env.REFINER_QBD_EXPORT_DONE_SURVEY_ID ? process.env.REFINER_QBD_EXPORT_DONE_SURVEY_ID : '{{REFINER_QBD_EXPORT_DONE_SURVEY_ID}}'}`,
}
},
};
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -130,6 +130,12 @@ export class QbdDirectDashboardComponent implements OnInit {
this.isExportInProgress = false;
this.exportProgressPercentage = 0;
this.processedCount = 0;

if (this.failedExpenseGroupCount === 0) {
this.refinerService.triggerSurvey(
AppName.QBD_DIRECT, environment.refiner_survey.qbd.export_done_survery_id, RefinerSurveyType.EXPORT_DONE
);
}
});
}
});
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,11 @@ <h5>{{ exportableAccountingExportIds.length }} new expense{{(exportableAccountin
</div>
</div>
</div>
<div *ngIf="appName === AppName.QBD_DIRECT && isExportInProgress" class="tw-pt-16-px">
<app-configuration-info-label
[infoText]="'Click \‘Update Selected\’ in QuickBooks Web Connector after exporting to sync your expenses immediately'">
</app-configuration-info-label>
</div>
</div>
<div *ngIf="isExportInProgress">
<p-progressBar class="!tw-h-6-px" [value]="exportProgressPercentage" [showValue]='false' [mode]="loaderType"></p-progressBar>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,8 @@ export class DashboardExportSectionComponent implements OnInit {

importStates: string;

AppName = AppName;

constructor() { }

triggerExport() {
Expand Down

0 comments on commit 8d5a7f2

Please sign in to comment.