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

[SM-1168] Update access policy selector to disable on submit #8519

Merged
merged 5 commits into from Apr 29, 2024

Conversation

Thomas-Avery
Copy link
Contributor

Type of change

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

Objective

The purpose of this PR is to update usage of the access policy selector to disable the form on submit and make loading more consistent with other tabs.

Code changes

  • bitwarden_license/bit-web/src/app/secrets-manager/projects/project/project-people.component.html:
    Add spinner

  • bitwarden_license/bit-web/src/app/secrets-manager/projects/project/project-people.component.ts:
    Fix floating promises.
    Disable the form group on submit.

  • bitwarden_license/bit-web/src/app/secrets-manager/service-accounts/people/service-account-people.component.html:
    Add spinner

  • bitwarden_license/bit-web/src/app/secrets-manager/service-accounts/people/service-account-people.component.ts:
    Fix floating promises.
    Remove catch error since this is now covered by serviceAccountAccessGuard
    Disable the form group on submit.

  • bitwarden_license/bit-web/src/app/secrets-manager/shared/access-policies/access-policy-selector/access-policy-selector.component.html:
    Add disabled to required fields.

Screenshots

Before Project → People load in

image

After Project → People load in
image

Before Project → People submit
image

After Project → People submit
image

Before Service Account → People load in
image

After Service Account → People load in
image

Before Service Account → People submit
image

After Service Account → People submit
image

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

@Thomas-Avery Thomas-Avery self-assigned this Mar 27, 2024
@Thomas-Avery Thomas-Avery requested a review from a team as a code owner March 27, 2024 21:21
@github-actions github-actions bot added the needs-qa Marks a PR as requiring QA approval label Mar 27, 2024
Copy link

codecov bot commented Mar 27, 2024

Codecov Report

Attention: Patch coverage is 0% with 15 lines in your changes are missing coverage. Please review.

Project coverage is 27.69%. Comparing base (20de053) to head (c301fe6).

Files Patch % Lines
...nager/projects/project/project-people.component.ts 0.00% 9 Missing ⚠️
...ccounts/people/service-account-people.component.ts 0.00% 6 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #8519      +/-   ##
==========================================
- Coverage   27.70%   27.69%   -0.01%     
==========================================
  Files        2392     2392              
  Lines       69368    69375       +7     
  Branches    12938    12938              
==========================================
  Hits        19215    19215              
- Misses      48673    48680       +7     
  Partials     1480     1480              

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

Copy link
Contributor

github-actions bot commented Mar 27, 2024

Logo
Checkmarx One – Scan Summary & Detailsf2ad11d6-cf7b-4f9c-8a64-6fbdd38a4b75

No New Or Fixed Issues Found

coltonhurst
coltonhurst previously approved these changes Apr 24, 2024
Copy link
Member

@coltonhurst coltonhurst left a comment

Choose a reason for hiding this comment

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

LGTM

@Thomas-Avery Thomas-Avery removed the needs-qa Marks a PR as requiring QA approval label Apr 29, 2024
@Thomas-Avery Thomas-Avery merged commit 61d079c into main Apr 29, 2024
19 checks passed
@Thomas-Avery Thomas-Avery deleted the sm/sm-1168 branch April 29, 2024 22:30
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