x
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
<div class="max-w-5xl">
<section class="mb-10" aria-label="Your searches">
<h2 class="mb-3 text-[13px] font-semibold text-ink-muted">Your searches</h2>
<ul class="divide-y divide-line overflow-hidden rounded-card border border-line bg-surface">
<li class="grid grid-cols-[1.25rem_1fr] items-center gap-x-4 gap-y-1 px-4 py-3.5 transition-colors hover:bg-canvas sm:grid-cols-[1.25rem_minmax(0,1.5fr)_minmax(0,1fr)_9rem_6rem]">
<label class="inline-flex items-center gap-2.5 text-sm text-ink">
<input type="checkbox" name="ids[]" value="ex-deferred-overview" class="ui-checkbox" aria-label="Compare best brazilian footballer" data-selection-target="box" data-action="selection#update">
</label>
<a class="truncate text-[15px] font-semibold text-ink hover:text-iris-700" lang="en" href="/searches/ex-deferred-overview">best brazilian footballer</a>
<span class="col-start-2 truncate text-[13px] text-ink-muted sm:col-start-auto">us · en · desktop</span>
<span class="col-start-2 sm:col-start-auto"><span class="inline-flex items-center gap-2 text-[13px] text-ink-soft">
<span class="size-2 shrink-0 rounded-full bg-good" aria-hidden="true"></span>Follow-up answer
</span>
</span>
<span class="hidden text-right text-[13px] tabular-nums text-ink-muted sm:block">19 Nov 10:41</span>
</li>
<li class="grid grid-cols-[1.25rem_1fr] items-center gap-x-4 gap-y-1 px-4 py-3.5 transition-colors hover:bg-canvas sm:grid-cols-[1.25rem_minmax(0,1.5fr)_minmax(0,1fr)_9rem_6rem]">
<label class="inline-flex items-center gap-2.5 text-sm text-ink">
<input type="checkbox" name="ids[]" value="ex-inline-overview" class="ui-checkbox" aria-label="Compare highest mountain in europe" data-selection-target="box" data-action="selection#update">
</label>
<a class="truncate text-[15px] font-semibold text-ink hover:text-iris-700" lang="de" href="/searches/ex-inline-overview">highest mountain in europe</a>
<span class="col-start-2 truncate text-[13px] text-ink-muted sm:col-start-auto">de · de · mobile</span>
<span class="col-start-2 sm:col-start-auto"><span class="inline-flex items-center gap-2 text-[13px] text-ink-soft">
<span class="size-2 shrink-0 rounded-full bg-good" aria-hidden="true"></span>Inline answer
</span>
</span>
<span class="hidden text-right text-[13px] tabular-nums text-ink-muted sm:block">19 Nov 10:38</span>
</li>
<li class="grid grid-cols-[1.25rem_1fr] items-center gap-x-4 gap-y-1 px-4 py-3.5 transition-colors hover:bg-canvas sm:grid-cols-[1.25rem_minmax(0,1.5fr)_minmax(0,1fr)_9rem_6rem]">
<label class="inline-flex items-center gap-2.5 text-sm text-ink">
<input type="checkbox" name="ids[]" value="ex-no-overview" class="ui-checkbox" aria-label="Compare google ai overview api" data-selection-target="box" data-action="selection#update">
</label>
<a class="truncate text-[15px] font-semibold text-ink hover:text-iris-700" lang="en" href="/searches/ex-no-overview">google ai overview api</a>
<span class="col-start-2 truncate text-[13px] text-ink-muted sm:col-start-auto">us · en · desktop</span>
<span class="col-start-2 sm:col-start-auto"><span class="inline-flex items-center gap-2 text-[13px] text-ink-soft">
<span class="size-2 shrink-0 rounded-full bg-ink-faint" aria-hidden="true"></span>No overview
</span>
</span>
<span class="hidden text-right text-[13px] tabular-nums text-ink-muted sm:block">19 Nov 10:31</span>
</li>
<li class="grid grid-cols-[1.25rem_1fr] items-center gap-x-4 gap-y-1 px-4 py-3.5 transition-colors hover:bg-canvas sm:grid-cols-[1.25rem_minmax(0,1.5fr)_minmax(0,1fr)_9rem_6rem]">
<label class="inline-flex items-center gap-2.5 text-sm text-ink">
<input type="checkbox" name="ids[]" value="ex-expired-token" class="ui-checkbox" aria-label="Compare how long do olympic marathons take" data-selection-target="box" data-action="selection#update">
</label>
<a class="truncate text-[15px] font-semibold text-ink hover:text-iris-700" lang="en" href="/searches/ex-expired-token">how long do olympic marathons take</a>
<span class="col-start-2 truncate text-[13px] text-ink-muted sm:col-start-auto">uk · en · desktop</span>
<span class="col-start-2 sm:col-start-auto"><span class="inline-flex items-center gap-2 text-[13px] text-ink-soft">
<span class="size-2 shrink-0 rounded-full bg-bad" aria-hidden="true"></span>Follow-up failed
</span>
</span>
<span class="hidden text-right text-[13px] tabular-nums text-ink-muted sm:block">18 Nov 18:02</span>
</li>
</ul>
</section>
</div>
1
2
3
4
5
6
7
8
<div class="max-w-5xl">
<%= render HistoryListComponent.new(title: "Your searches") do |list| %>
<% list.with_row(id: "ex-deferred-overview", query: "best brazilian footballer", lang: "en", settings: "us · en · desktop", tone: :ok, outcome: "Follow-up answer", time: "19 Nov 10:41") %>
<% list.with_row(id: "ex-inline-overview", query: "highest mountain in europe", lang: "de", settings: "de · de · mobile", tone: :ok, outcome: "Inline answer", time: "19 Nov 10:38") %>
<% list.with_row(id: "ex-no-overview", query: "google ai overview api", lang: "en", settings: "us · en · desktop", tone: :neutral, outcome: "No overview", time: "19 Nov 10:31") %>
<% list.with_row(id: "ex-expired-token", query: "how long do olympic marathons take", lang: "en", settings: "uk · en · desktop", tone: :bad, outcome: "Follow-up failed", time: "18 Nov 18:02") %>
<% end %>
</div>