feat: integrate Google semantic search and branded desktop launcher
Core CI / core (ubuntu-latest) (push) Failing after 3m27s
Core CI / core (macos-latest) (push) Canceled after 0s
Core CI / core (windows-latest) (push) Canceled after 0s
Core CI / desktop (ubuntu-latest) (push) Successful in 5m45s
Core CI / desktop (macos-latest) (push) Canceled after 0s
Core CI / desktop (windows-latest) (push) Canceled after 0s

This commit is contained in:
karl committed 2026-10-12 17:44:56 +02:00
1 parent a90df15503
commit caf6a2f82e
80 files changed
+14971 -837

No files matched your search

+639 -214
View File
@@ -1,13 +1,38 @@
:root {
font-family:
Inter,
Segoe UI,
"Inter Variable",
system-ui,
-apple-system,
"Segoe UI",
sans-serif;
color: #20332e;
background: #f6f7f2;
font-synthesis: none;
color-scheme: light;
color-scheme: light dark;
--brand: #2563ff;
--canvas: #f8fafc;
--surface: #fff;
--subtle: #f1f5f9;
--selected: #e8efff;
--ink: #0b0f14;
--muted: #64748b;
--line: #e2e8f0;
--error: #b42318;
--shadow: 0 12px 36px #0b0f1418;
color: var(--ink);
background: var(--canvas);
font-size: 14px;
}
@media (prefers-color-scheme: dark) {
:root {
--canvas: #0b0f14;
--surface: #111720;
--subtle: #18212e;
--selected: #182c53;
--ink: #f8fafc;
--muted: #9cacc2;
--line: #263141;
--error: #ffaaa2;
--shadow: 0 12px 36px #00000050;
}
}
* {
box-sizing: border-box;
@@ -15,250 +40,626 @@
body {
margin: 0;
}
button,
input {
font: inherit;
#app {
height: 100dvh;
min-height: 500px;
display: flex;
flex-direction: column;
}
button {
button,
input,
select {
font: inherit;
color: inherit;
}
button,
summary {
cursor: pointer;
}
button:disabled {
cursor: wait;
opacity: 0.6;
}
header,
footer {
display: flex;
justify-content: space-between;
button {
display: inline-flex;
align-items: center;
padding: 24px 40px;
justify-content: center;
gap: 7px;
background: var(--surface);
border: 1px solid var(--line);
border-radius: 7px;
padding: 8px 12px;
transition:
background-color 120ms ease,
border-color 120ms ease;
}
button:hover,
summary:hover {
background: var(--subtle);
}
button:disabled {
opacity: 0.5;
cursor: default;
}
input,
select {
background: var(--surface);
border: 1px solid var(--line);
border-radius: 6px;
padding: 9px 10px;
min-width: 0;
}
input::placeholder {
color: var(--muted);
}
input[type="search"]::-webkit-search-cancel-button {
display: none;
}
button:focus-visible,
input:focus-visible,
select:focus-visible,
summary:focus-visible {
outline: 2px solid var(--brand);
outline-offset: 3px;
}
.icon {
display: inline-flex;
align-items: center;
justify-content: center;
flex: 0 0 auto;
}
.icon svg {
width: 20px;
height: 20px;
fill: currentColor;
}
header {
display: flex;
align-items: center;
gap: 20px;
padding: 16px 22px 12px;
min-height: 64px;
}
.brand {
display: flex;
align-items: center;
gap: 10px;
flex: 0 0 auto;
}
.brand-symbol {
width: 29px;
height: 29px;
object-fit: contain;
}
.wordmark {
font-size: 28px;
font-size: 20px;
font-weight: 750;
letter-spacing: -1.5px;
letter-spacing: -0.65px;
}
.dot {
color: #87a77f;
}
.privacy {
.index-status {
font-size: 12px;
color: #58705c;
color: var(--muted);
border-left: 1px solid var(--line);
padding-left: 18px;
min-width: 0;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
.header-actions {
display: flex;
align-items: center;
gap: 8px;
margin-left: auto;
flex: 0 0 auto;
}
.quiet-button {
border-color: transparent;
background: transparent;
font-size: 12px;
}
.icon-button {
padding: 7px;
border-color: transparent;
background: transparent;
}
main {
max-width: 1120px;
margin: 0 auto;
padding: 24px 40px;
}
.intro {
margin: 12px 0 30px;
}
.eyebrow {
font-size: 11px;
font-weight: 700;
letter-spacing: 1.8px;
color: #78887c;
}
.intro h1 {
font-size: clamp(28px, 4vw, 42px);
letter-spacing: -1.5px;
margin: 12px 0;
}
.intro > p:last-child {
color: #738077;
margin: 0;
display: flex;
flex-direction: column;
flex: 1;
min-height: 0;
padding: 0 18px;
}
#search-form {
display: flex;
align-items: center;
gap: 16px;
background: white;
border: 1px solid #d2dccf;
border-radius: 14px;
padding: 18px 22px;
box-shadow: 0 8px 30px #243b2910;
}
#query {
width: 100%;
border: 0;
background: transparent;
font-size: 19px;
color: inherit;
outline: none;
gap: 12px;
background: var(--surface);
border: 1px solid var(--line);
border-radius: 10px;
padding: 12px 15px;
min-height: 56px;
box-shadow: 0 2px 8px #0b0f1404;
}
#search-form:focus-within {
border-color: #588663;
box-shadow: 0 0 0 3px #65866922;
border-color: var(--brand);
box-shadow: 0 0 0 2px #2563ff15;
}
.search-icon {
font-size: 30px;
color: #6a8770;
#search-form > .icon {
color: var(--muted);
}
#search-form > .icon svg {
width: 24px;
height: 24px;
}
#query {
flex: 1;
min-width: 0;
padding: 0;
border: 0;
outline: none;
font-size: 18px;
background: transparent;
letter-spacing: -0.25px;
}
#query:focus-visible {
outline: none;
}
kbd {
white-space: nowrap;
color: #829086;
font-size: 11px;
border: 1px solid #dce3d9;
padding: 5px;
border-radius: 4px;
}
.toolbar {
display: flex;
justify-content: space-between;
display: inline-flex;
align-items: center;
margin: 18px 0;
font-size: 12px;
color: #78847b;
justify-content: center;
font-size: 11px;
line-height: 1.2;
padding: 4px 6px;
min-height: 23px;
border: 1px solid var(--line);
border-radius: 5px;
background: var(--surface);
color: var(--muted);
white-space: nowrap;
}
.toolbar button,
.folder-row button {
background: #e8ede2;
border: 1px solid #d9e0d2;
padding: 9px 14px;
kbd .icon svg {
width: 13px;
height: 13px;
}
.popover {
position: relative;
}
summary {
display: flex;
align-items: center;
gap: 8px;
list-style: none;
}
summary::-webkit-details-marker {
display: none;
}
.popover > summary {
border: 1px solid var(--line);
border-radius: 7px;
color: #36583c;
padding: 8px 10px;
background: var(--surface);
font-size: 12px;
}
#settings > summary {
border: 0;
background: transparent;
padding: 8px;
}
.popover-panel {
position: absolute;
right: 0;
top: calc(100% + 9px);
width: 360px;
max-width: calc(100vw - 36px);
z-index: 20;
padding: 20px;
border: 1px solid var(--line);
border-radius: 12px;
background: var(--surface);
box-shadow: var(--shadow);
max-height: calc(100vh - 120px);
overflow: auto;
animation: panel-in 160ms ease-out;
}
.popover-panel h2 {
font-size: 15px;
margin: 0 0 15px;
}
.filters-grid {
display: grid;
grid-template-columns: repeat(2, minmax(0, 1fr));
gap: 13px;
}
.filters-grid label {
font-size: 12px;
color: var(--muted);
}
.filters-grid input {
display: block;
width: 100%;
margin-top: 6px;
font-size: 12px;
}
.resource-label {
display: block;
font-size: 12px;
margin-bottom: 8px;
color: var(--muted);
}
#cpu-threads {
width: 100%;
}
#roots {
list-style: none;
padding: 0;
margin-bottom: 0;
}
#roots li {
display: flex;
align-items: center;
justify-content: space-between;
gap: 10px;
padding: 9px 0;
border-top: 1px solid var(--line);
}
#roots button {
font-size: 11px;
padding: 6px 9px;
}
#semantic-panel {
margin: 8px 0 0;
font-size: 12px;
}
#semantic-panel > summary {
min-height: 34px;
padding: 5px 7px;
border-radius: 6px;
color: var(--muted);
}
#semantic-panel > summary > .icon:first-child {
color: var(--brand);
}
#semantic-status {
flex: 1;
min-width: 0;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.semantic-content {
padding: 12px 15px;
margin: 6px 0 8px;
border: 1px solid var(--line);
border-radius: 8px;
background: var(--surface);
animation: panel-in 160ms ease-out;
}
.semantic-content strong {
font-size: 12px;
}
#semantic-progress {
display: block;
width: 100%;
height: 6px;
margin-top: 12px;
accent-color: var(--brand);
}
.semantic-actions {
display: flex;
gap: 8px;
}
.semantic-actions button {
font-size: 12px;
}
.hint {
font-size: 12px;
color: var(--muted);
line-height: 1.6;
}
#folder-form {
background: #eef2e9;
padding: 18px;
padding: 14px 16px;
margin: 8px 0;
background: var(--surface);
border: 1px solid var(--line);
border-radius: 10px;
animation: panel-in 160ms ease-out;
}
#folder-form label {
font-size: 13px;
font-size: 12px;
font-weight: 600;
}
.folder-row {
display: flex;
gap: 8px;
margin-top: 10px;
margin-top: 8px;
}
.folder-row input {
min-width: 0;
flex: 1;
padding: 9px;
border: 1px solid #c9d3c3;
border-radius: 6px;
}
.hint {
color: #74806e;
.folder-row button {
font-size: 12px;
}
#notice {
font-size: 12px;
color: var(--muted);
line-height: 1.5;
margin: 4px 8px;
}
#notice:empty {
display: none;
}
.error,
#semantic-status.error {
color: var(--error);
}
.workspace {
display: grid;
grid-template-columns: minmax(0, 1.3fr) minmax(250px, 1fr);
gap: 28px;
border-top: 1px solid #e1e6db;
padding-top: 20px;
grid-template-columns: minmax(0, 0.96fr) minmax(0, 1.04fr);
flex: 1;
min-height: 0;
margin-top: 6px;
border: 1px solid var(--line);
border-radius: 10px 10px 0 0;
overflow: hidden;
background: var(--surface);
}
.workspace:has(aside[hidden]) {
grid-template-columns: 1fr;
}
.results-pane {
display: flex;
flex-direction: column;
min-height: 0;
min-width: 0;
background: var(--canvas);
}
.eyebrow {
font-size: 10px;
font-weight: 600;
letter-spacing: 1px;
color: var(--muted);
}
#result-summary {
margin: 0;
padding: 12px 15px 9px;
flex: 0 0 auto;
}
#results {
list-style: none;
padding: 0;
margin: 0;
padding: 0 8px 8px;
overflow-y: auto;
flex: 1;
min-height: 0;
scrollbar-gutter: stable;
}
#results:empty {
display: none;
}
#results li {
padding: 3px 0;
}
.result {
display: grid;
grid-template-columns: 1fr auto;
grid-template-columns: 42px minmax(0, 1fr) auto;
text-align: left;
width: 100%;
padding: 16px;
min-height: 96px;
padding: 13px 12px;
background: transparent;
border: 1px solid transparent;
border-radius: 10px;
color: inherit;
gap: 8px;
border-radius: 8px;
gap: 5px 12px;
color: var(--ink);
}
.result:hover {
background: #edf1e7;
background: var(--subtle);
}
.result.selected {
background: white;
border-color: #d1dbc9;
box-shadow: 0 3px 12px #314b2810;
background: var(--selected);
border-color: #2563ff20;
}
.result .file-icon {
grid-row: 1/4;
align-self: start;
}
.file-icon {
display: flex;
align-items: center;
justify-content: center;
width: 42px;
height: 42px;
border-radius: 7px;
background: var(--subtle);
color: var(--brand);
}
.file-icon svg {
width: 28px;
height: 28px;
}
.file-icon[data-type="pdf"] {
color: #e12e3d;
}
.file-icon[data-type="code"] {
color: var(--muted);
}
.result strong {
font-size: 14px;
overflow-wrap: anywhere;
grid-column: 2;
align-self: center;
font-size: 13px;
font-weight: 650;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
.path {
font-size: 11px;
color: #79847a;
overflow-wrap: anywhere;
.kind {
font-size: 10px;
color: var(--muted);
white-space: nowrap;
}
.result .path,
.snippet {
grid-column: 1/-1;
.result .kind {
grid-column: 3;
align-self: center;
color: var(--brand);
}
.snippet {
grid-column: 2/4;
font-size: 12px;
color: #61705f;
line-height: 1.55;
display: -webkit-box;
-webkit-line-clamp: 2;
-webkit-box-orient: vertical;
overflow: hidden;
}
.kind {
font-size: 10px;
padding: 3px 7px;
border-radius: 5px;
background: #e6eddf;
color: #638054;
.path {
font-size: 11px;
color: var(--muted);
overflow-wrap: anywhere;
}
.result .path {
grid-column: 2/4;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
.new-row {
animation: row-in 160ms ease-out;
}
#empty {
flex: 1;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
text-align: center;
padding: 45px 30px;
color: var(--muted);
}
#empty > .icon {
margin-bottom: 12px;
color: var(--brand);
}
#empty > .icon svg {
width: 36px;
height: 36px;
}
#empty h2 {
margin: 7px 0;
color: var(--ink);
font-size: 19px;
letter-spacing: -0.45px;
font-weight: 600;
}
#empty p {
max-width: 420px;
font-size: 13px;
line-height: 1.7;
}
aside {
padding: 18px 22px;
border-left: 1px solid #dce3d5;
display: flex;
flex-direction: column;
border-left: 1px solid var(--line);
min-width: 0;
min-height: 0;
background: var(--canvas);
}
.preview-header {
display: flex;
align-items: center;
gap: 13px;
padding: 18px 20px 10px;
}
.preview-heading {
min-width: 0;
}
aside h2 {
font-size: 20px;
margin: 0 0 5px;
font-size: 14px;
font-weight: 650;
overflow-wrap: anywhere;
}
aside pre {
font: 13px/1.8 inherit;
white-space: pre-wrap;
overflow-wrap: anywhere;
.preview-heading .path {
margin: 0;
line-height: 1.5;
}
.preview-toolbar {
display: flex;
align-items: center;
justify-content: space-between;
gap: 10px;
padding: 0 20px 14px;
}
#preview-kind {
font-size: 12px;
color: #67875f;
font-size: 11px;
color: var(--muted);
}
#empty {
text-align: center;
padding: 38px 18px;
color: #91a088;
.preview-actions {
display: flex;
gap: 6px;
flex: 0 0 auto;
}
#empty > span {
font-size: 55px;
.preview-actions button {
font-size: 11px;
padding: 6px 9px;
}
#empty h2 {
font-size: 20px;
font-weight: 500;
color: #607358;
.preview-actions .icon svg {
width: 17px;
height: 17px;
}
#empty p {
font-size: 13px;
line-height: 1.6;
.passage {
flex: 1;
min-height: 0;
margin: 0 10px 10px;
padding: 22px 25px;
overflow: auto;
background: var(--surface);
border: 1px solid var(--line);
border-radius: 7px;
scrollbar-gutter: stable;
}
#notice {
min-height: 18px;
font-size: 12px;
color: #627a5c;
.passage > .eyebrow {
margin: 0 0 18px;
}
#notice.error {
color: #a54639;
aside pre {
font-family: inherit;
font-size: 14px;
line-height: 1.9;
white-space: pre-wrap;
overflow-wrap: anywhere;
margin: 0;
}
footer {
color: #95a18e;
display: flex;
justify-content: space-between;
align-items: center;
gap: 12px;
padding: 13px 20px;
min-height: 50px;
border-top: 1px solid var(--line);
color: var(--muted);
font-size: 11px;
border-top: 1px solid #e1e6db;
margin-top: 32px;
}
button:focus-visible,
input:focus-visible {
outline: 2px solid #5b8357;
outline-offset: 3px;
.footer-privacy {
display: flex;
align-items: center;
gap: 8px;
min-width: 0;
}
.footer-privacy > .icon {
color: var(--ink);
}
.privacy {
font-size: 10px;
border-left: 1px solid var(--line);
padding-left: 9px;
white-space: nowrap;
}
.keyboard-hints {
display: flex;
align-items: center;
gap: 6px;
white-space: nowrap;
}
.keyboard-hints > span:not(.icon) {
margin-right: 8px;
}
.sr-only {
position: absolute;
@@ -274,70 +675,94 @@ input:focus-visible {
[hidden] {
display: none !important;
}
@media (max-width: 760px) {
header,
footer {
padding: 20px;
@keyframes row-in {
from {
opacity: 0;
transform: translateY(3px);
}
main {
padding: 12px 20px;
to {
opacity: 1;
transform: translateY(0);
}
}
@keyframes panel-in {
from {
opacity: 0;
transform: translateY(-3px);
}
to {
opacity: 1;
transform: translateY(0);
}
}
@media (max-width: 820px) {
.index-status {
display: none;
}
.header-actions {
gap: 5px;
}
.quiet-button > span:not(.icon) {
display: none;
}
.workspace {
grid-template-columns: 1fr;
grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}
aside {
border-left: 0;
border-top: 1px solid #dce3d5;
.keyboard-hints > span {
display: none;
}
.folder-row {
flex-wrap: wrap;
.privacy {
display: none;
}
.folder-row input {
flex-basis: 100%;
.preview-actions button > span:not(.icon) {
display: none;
}
footer {
gap: 12px;
flex-wrap: wrap;
.preview-header {
padding: 14px 14px 8px;
}
.preview-toolbar {
padding: 0 14px 12px;
}
.passage {
padding: 18px;
}
}
.filters-grid {
display: grid;
grid-template-columns: repeat(3, minmax(0, 1fr));
gap: 12px;
padding: 16px 0;
@media (prefers-reduced-motion: reduce) {
*,
*::before,
*::after {
animation: none !important;
transition: none !important;
scroll-behavior: auto !important;
}
}
.filters-grid label {
font-size: 11px;
color: #68785f;
}
.filters-grid input {
display: block;
width: 100%;
margin-top: 6px;
padding: 8px;
border: 1px solid #d5decd;
border-radius: 6px;
background: white;
}
details summary {
font-size: 12px;
color: #61795a;
cursor: pointer;
}
.preview-actions {
display: flex;
gap: 8px;
}
.preview-actions button {
font-size: 12px;
padding: 8px 12px;
border: 1px solid #d3decb;
border-radius: 6px;
background: #e9efdf;
color: #36583c;
}
@media (max-width: 760px) {
.filters-grid {
grid-template-columns: repeat(2, minmax(0, 1fr));
@media (forced-colors: active) {
:root {
--canvas: Canvas;
--surface: Canvas;
--subtle: ButtonFace;
--ink: CanvasText;
--muted: CanvasText;
--line: ButtonBorder;
--selected: Highlight;
--brand: LinkText;
--error: CanvasText;
}
.result.selected {
color: HighlightText;
border-color: Highlight;
}
.result.selected .path,
.result.selected .kind {
color: HighlightText;
}
.file-icon {
border: 1px solid ButtonBorder;
}
button:focus-visible,
input:focus-visible,
select:focus-visible,
summary:focus-visible {
outline-color: Highlight;
}
}