Skip to content

Commit

Permalink
Add modified time to search results (#342)
Browse files Browse the repository at this point in the history
WIP: Waiting on some merges
  • Loading branch information
jeffdaley authored Sep 26, 2023
1 parent a5b5843 commit 0a243ef
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions web/app/components/results/index.hbs
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
{{! @glint-nocheck: not typesafe yet }}
<section class="flex min-h-full flex-1 flex-col items-center">
<div class="x-container">
{{#if (and this.firstPageIsShown this.queryIsProductName)}}
Expand Down Expand Up @@ -31,11 +30,12 @@
documents matching “{{@query}}”</h1>
<div class="flex w-full flex-col space-y-12 py-10">
<div class="tile-list">
{{#each @results.hits as |doc index|}}
{{#each @results.hits as |doc|}}
<Doc::Tile
@avatar="{{get doc.ownerPhotos 0}}"
@docID="{{doc.objectID}}"
@isResult="{true}"
@isResult={{true}}
@modifiedTime={{doc.modifiedTime}}
@owner="{{get doc.owners 0}}"
@productArea="{{doc.product}}"
@snippet="{{doc._snippetResult.content.value}}"
Expand Down
2 changes: 1 addition & 1 deletion web/app/components/results/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import { capitalize } from "@ember/string";

interface ResultsIndexComponentSignature {
Args: {
results: SearchResponse;
results: SearchResponse<HermesDocument>;
query: string;
};
}
Expand Down

0 comments on commit 0a243ef

Please sign in to comment.