Skip to content

Commit

Permalink
Remove 4-doc restriction on "Docs awaiting review" (#290)
Browse files Browse the repository at this point in the history
Remove 4-doc restriction on "Docs Awaiting Review"
  • Loading branch information
jeffdaley authored Aug 15, 2023
1 parent 9283632 commit 47e2fed
Showing 1 changed file with 17 additions and 20 deletions.
37 changes: 17 additions & 20 deletions web/app/templates/authenticated/dashboard.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -13,37 +13,34 @@

{{#if this.docsWaitingForReview}}
<div
class="flex flex-col w-full py-10 border-0 border-b hds-border-primary"
class="hds-border-primary flex w-full flex-col border-0 border-b py-10"
>
<div class="flex items-center space-x-2 mb-8">
<div class="mb-8 flex items-center space-x-2">
<FlightIcon @name="user-check" @size="24" />
<h2
class="hds-typography-display-300 hds-font-weight-semibold hds-foreground-strong"
>Documents waiting for your review</h2>
</div>

<div class="tile-list">
{{#each this.docsWaitingForReview as |doc index|}}
{{#if (lt index 4)}}
<Doc::Tile
@avatar="{{get doc.ownerPhotos 0}}"
@docID="{{doc.objectID}}"
@docNumber="{{doc.docNumber}}"
@modifiedAgo="{{doc.modifiedAgo}}"
@owner="{{get doc.owners 0}}"
@productArea="{{doc.product}}"
@status="{{lowercase doc.status}}"
@title="{{doc.title}}"
/>
{{/if}}
{{#each this.docsWaitingForReview as |doc|}}
<Doc::Tile
@avatar="{{get doc.ownerPhotos 0}}"
@docID="{{doc.objectID}}"
@docNumber="{{doc.docNumber}}"
@modifiedAgo="{{doc.modifiedAgo}}"
@owner="{{get doc.owners 0}}"
@productArea="{{doc.product}}"
@status="{{lowercase doc.status}}"
@title="{{doc.title}}"
/>
{{/each}}

</div>
</div>
{{/if}}

<div class="flex flex-col w-full py-10 border-0 border-b hds-border-primary">
<div class="flex items-center space-x-2 mb-8">
<div class="hds-border-primary flex w-full flex-col border-0 border-b py-10">
<div class="mb-8 flex items-center space-x-2">
<FlightIcon @name="eye" @size="24" />
<h2
class="hds-typography-display-300 hds-font-weight-semibold hds-foreground-strong"
Expand Down Expand Up @@ -72,7 +69,7 @@
</div>
{{else if (eq this.recentDocs.all null)}}
<div class="h-[100px]">
<p class="mb-7 text-color-foreground-faint text-body-300">
<p class="mb-7 text-body-300 text-color-foreground-faint">
Error fetching documents.
</p>
<Hds::Button
Expand All @@ -91,7 +88,7 @@

</div>

<div class="flex flex-col w-full py-10">
<div class="flex w-full flex-col py-10">
<Dashboard::LatestUpdates />
</div>

Expand Down

0 comments on commit 47e2fed

Please sign in to comment.