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

[PM-8254] Create shareable export component #9246

Merged
merged 10 commits into from
May 28, 2024

Conversation

djsmith85
Copy link
Contributor

@djsmith85 djsmith85 commented May 18, 2024

Type of change

- [ ] Bug fix
- [ ] New feature development
- [X] Tech debt (refactoring, code cleanup, dependency upgrades, etc)
- [ ] Build/deploy pipeline (DevOps)
- [ ] Other

Objective

Code changes

  • Make export.component a standalone component - 249802b
    • Fix lint issue with takeUntil
  • Create shareable export.component.html - cb23906
    • Copied existing export.component.html as that has already been migrated to use the component library components
    • Strip the markup from the dialog and the submit-button
  • Add outputs to inform the hosting component about certain events (submit, loading, disabled) - dd54c7b
    • Emit successful Export
    • Expose a form-id so the hosting component can bind to this form
    • Fix name of output
  • Ensure that the file gets prefixed with org when exporting from an organization - 5131e45
  • When exporting from an organization ensure Organization_ClientExportedVault is collected - 857fd90

Before you submit

  • Please add unit tests where it makes sense to do so (encouraged but not required)
  • If this change requires a documentation update - notify the documentation team
  • If this change has particular deployment requirements - notify the DevOps team
  • Ensure that all UI additions follow WCAG AA requirements

Copy link

codecov bot commented May 18, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 28.15%. Comparing base (5dd7224) to head (6d792c4).

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #9246   +/-   ##
=======================================
  Coverage   28.15%   28.15%           
=======================================
  Files        2375     2375           
  Lines       70222    70222           
  Branches    13173    13173           
=======================================
  Hits        19773    19773           
  Misses      48884    48884           
  Partials     1565     1565           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Copy link
Contributor

github-actions bot commented May 18, 2024

Logo
Checkmarx One – Scan Summary & Details861e24ff-6a16-499a-ba8d-f1292e277d1b

No New Or Fixed Issues Found

@djsmith85 djsmith85 marked this pull request as ready for review May 21, 2024 07:53
@djsmith85 djsmith85 requested a review from a team as a code owner May 21, 2024 07:53
Base automatically changed from tools/pm-8252/use-new-userverification-for-exports-on-all-clients to main May 21, 2024 11:02
@djsmith85 djsmith85 requested a review from a team as a code owner May 21, 2024 11:02
@djsmith85 djsmith85 requested review from vincentsalucci and removed request for a team and vincentsalucci May 21, 2024 11:02
Fix lint issue with takeUntil
Copied existing export.component.html as that has already been migrated to use the component library components
Strip the markup from the dialog and the submit-button
…mit, loading, disabled)

Emit successful Export

Expose a form-id so the hosting component can bind to this form

Fix name of output
@djsmith85 djsmith85 force-pushed the tools/pm-8254/create-shareable-export-component branch from 1423391 to 1378eb4 Compare May 21, 2024 11:15
audrey-jensen
audrey-jensen previously approved these changes May 21, 2024
Copy link
Contributor

@audrey-jensen audrey-jensen left a comment

Choose a reason for hiding this comment

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

🎨 suggestion
⛏️ nitpick
🤔 non-blocking concern

Comment on lines 166 to 173
this.bitSubmit.loading$.pipe(takeUntil(this.destroy$)).subscribe((loading) => {
this.formLoading.emit(loading);
});

this.bitSubmit.disabled$.pipe(takeUntil(this.destroy$)).subscribe((disabled) => {
this.formDisabled.emit(disabled);
});
}
Copy link
Contributor

Choose a reason for hiding this comment

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

🎨 EventEmitter<T> implements Subject<T>. You should be able to subscribe to it directly:

this.bitSubmit.loading$
  .pipe(takeUntil(this.destroy$))
  .subscribe(this.formLoading);

this.bitSubmit.disabled$
  .pipe(takeUntil(this.destroy$))
  .subscribe(this.formDisabled);

@djsmith85 djsmith85 merged commit c749447 into main May 28, 2024
63 checks passed
@djsmith85 djsmith85 deleted the tools/pm-8254/create-shareable-export-component branch May 28, 2024 20:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants