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

Add modified time to search results #342

Merged
merged 2 commits into from
Sep 26, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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