Skip to content

Commit

Permalink
Add dashboard announcement
Browse files Browse the repository at this point in the history
  • Loading branch information
jeffdaley committed Apr 12, 2024
1 parent 2fa655b commit 2bc1ab5
Show file tree
Hide file tree
Showing 3 changed files with 45 additions and 6 deletions.
34 changes: 29 additions & 5 deletions web/app/components/dashboard/new-features-banner.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,39 @@
data-test-new-features-banner
@type="inline"
@color="highlight"
@icon="folder-star"
{{! Icon is hidden by CSS; See `dashboard.scss` }}
@onDismiss={{this.dismiss}}
class="mb-10"
as |A|
>
<A.Title>Introducing Projects!</A.Title>
<A.Title>What's new in Hermes</A.Title>
<A.Description>
Projects are a new way to organize documents and links around an effort.
<div class="mt-2 mb-1 flex items-center gap-2">
<ul class="icon-list">
{{! Conditional }}
<li>
<FlightIcon @name="users" />
<p>
Google Groups can be added as document approvers
</p>
</li>
<li>
<FlightIcon @name="swap-horizontal" />
<p>
Document ownership can be transferred between users
</p>
</li>
<li>
<FlightIcon @name="smile" />
<p>
We've improved owner filtering on the
<LinkTo @route="authenticated.documents" class="underlined-link">
All Docs
</LinkTo>
view
</p>
</li>
</ul>
{{! <div class="mt-2 mb-1 flex items-center gap-2">
<Hds::Button
@route="authenticated.projects"
@text="Browse projects"
Expand All @@ -24,7 +48,7 @@
@color="secondary"
@size="small"
/>
</div>
</div> }}
</A.Description>
</Hds::Alert>
{{/if}}
2 changes: 1 addition & 1 deletion web/app/components/dashboard/new-features-banner.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import window from "ember-window-mock";
import { action } from "@ember/object";

export const NEW_FEATURES_BANNER_LOCAL_STORAGE_ITEM =
"jan-18-2024-newFeatureBannerIsShown";
"apr-12-2024-newFeatureBannerIsShown";

interface DashboardNewFeaturesBannerSignature {
Args: {};
Expand Down
15 changes: 15 additions & 0 deletions web/app/styles/components/dashboard.scss
Original file line number Diff line number Diff line change
Expand Up @@ -68,3 +68,18 @@
@apply mt-0;
}
}

.hds-alert--color-highlight {
@apply pl-5;

.hds-alert__icon {
@apply hidden;
}
}

.icon-list {
li {
@apply grid items-center gap-2.5 py-0.5 pl-1;
grid-template-columns: 16px 1fr;
}
}

0 comments on commit 2bc1ab5

Please sign in to comment.