-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
1492: Synchronizations follow up (#303)
* Show more specific statuses * Edge case: pinwheel account may not be created in CBV yet * Remove vestigial * Transition the page correctly as soon as full sync has completed * Add test for new method * Coalesce some statuses to completed for other jobs * Remove question mark * Set locale manually * Update app/app/models/pinwheel_account.rb Co-authored-by: Tom Dooner <[email protected]> --------- Co-authored-by: Tom Dooner <[email protected]>
- Loading branch information
1 parent
d953842
commit 852e044
Showing
13 changed files
with
138 additions
and
82 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,38 @@ | ||
<svg class="in-progress <%= completed ? "display-none" : "" %> usa-icon border-05 rotate border-base-light radius-pill padding-1 usa-icon--size-5" aria-hidden="true" focusable="false" role="img"> | ||
<use | ||
xlink:href="<%= asset_path("@uswds/uswds/dist/img/sprite.svg#autorenew") %>" | ||
></use> | ||
</svg> | ||
<% if status == :in_progress %> | ||
<div class="grid-row"> | ||
<svg class="usa-icon border-05 rotate border-base-light radius-pill padding-1 usa-icon--size-5" aria-hidden="true" focusable="false" role="img"> | ||
<use | ||
xlink:href="<%= asset_path("@uswds/uswds/dist/img/sprite.svg#autorenew") %>" | ||
></use> | ||
</svg> | ||
</div> | ||
<div class="grid-row"> | ||
<span class="margin-top-05 text-thin"><%= label %></span> | ||
</div> | ||
<% end %> | ||
<svg class="completed <%= !completed ? "display-none" : "" %> usa-icon border-05 bg-primary text-white border-primary radius-pill padding-1 usa-icon--size-5" aria-hidden="true" focusable="false" role="img"> | ||
<use | ||
xlink:href="<%= asset_path("@uswds/uswds/dist/img/sprite.svg#check") %>" | ||
></use> | ||
</svg> | ||
<% if status == :succeeded || status == :completed %> | ||
<div class="grid-row"> | ||
<svg class="usa-icon border-05 bg-primary text-white border-primary radius-pill padding-1 usa-icon--size-5" aria-hidden="true" focusable="false" role="img"> | ||
<use | ||
xlink:href="<%= asset_path("@uswds/uswds/dist/img/sprite.svg#check") %>" | ||
></use> | ||
</svg> | ||
</div> | ||
<div class="grid-row"> | ||
<span class="margin-top-05 text-bold text-primary"><%= label %></span> | ||
</div> | ||
<% end %> | ||
<% if status == :failed %> | ||
<div class="grid-row"> | ||
<svg class="usa-icon border-05 bg-base-darker text-white border-base-darker radius-pill padding-1 usa-icon--size-5" aria-hidden="true" focusable="false" role="img"> | ||
<use | ||
xlink:href="<%= asset_path("@uswds/uswds/dist/img/sprite.svg#priority_high") %>" | ||
></use> | ||
</svg> | ||
</div> | ||
<div class="grid-row"> | ||
<span class="margin-top-05 text-bold"><%= label %></span> | ||
</div> | ||
<% end %> |
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,22 @@ | ||
<div class="grid-row" id="<%= dom_id pinwheel_account %>"> | ||
<div | ||
class="tablet:grid-col-2 grid-col-fill" | ||
> | ||
<%= render partial: "cbv/synchronizations/indicator", locals: { label: t(".income"), status: coalesce_to_completed(pinwheel_account.synchronization_status("income")) } %> | ||
</div> | ||
<div | ||
class="tablet:grid-col-2 grid-col-fill" | ||
> | ||
<%= render partial: "cbv/synchronizations/indicator", locals: { label: t(".employment"), status: coalesce_to_completed(pinwheel_account.synchronization_status("employment")) } %> | ||
</div> | ||
<div | ||
class="tablet:grid-col-2 grid-col-fill" | ||
> | ||
<%= render partial: "cbv/synchronizations/indicator", locals: { label: t(".paystubs"), status: pinwheel_account.synchronization_status("paystubs") } %> | ||
</div> | ||
<div | ||
class="tablet:grid-col-2 grid-col-fill" | ||
> | ||
<%= render partial: "cbv/synchronizations/indicator", locals: { label: t(".identity"), status: coalesce_to_completed(pinwheel_account.synchronization_status("identity")) } %> | ||
</div> | ||
</div> |
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