diff --git a/README.md b/README.md index f8755b9..3a9b882 100644 --- a/README.md +++ b/README.md @@ -26,11 +26,9 @@ It began as an exploratory PDF-chat prototype. It now includes a product landing ## One conversation for the job -The product page opens with a full-screen black hero with a gradient headline, followed by a concise “How it works” section and interactive examples rendered in HTML/CSS. Team credits and deeper technical details live in the docs. **Open Mantis** opens the working chat: upload a manual, ask a question, attach a photo, and expand sources beneath the answer. **Try an example** on the landing page scrolls to local examples; their source notes expand inline, and previous exchanges remain in the scrolling transcript. The full app also offers sample conversations in its own chat. The top manual picker lists uploaded documents. The left **Your chats** drawer lists saved conversations so you can reopen them; there is no separate library page. +Upload a manual, ask about your equipment, and inspect the passages behind each answer. Keep uploaded documents in **Your manuals** and return to saved conversations through **Your chats**. -![Mantis product page](docs/assets/product.jpg) - -![Mantis saved conversations in the Your chats drawer](docs/assets/workspace.jpg) +![Mantis landing screen](docs/assets/product-hero.png) ## What you can do @@ -67,6 +65,8 @@ Open the **[product page](http://127.0.0.1:8000)** or go directly to the **[work Use the landing page’s sample questions and expandable notes without leaving the page. To explore examples in the full chat, choose **Try an example** there, or open [`/workspace#demo`](http://127.0.0.1:8000/workspace#demo). The chat starts with a scripted spindle-overload scenario. The landing page offers suggested questions for vibration, overheating, alarm photos, and maintenance records in one scrollable chat; each click appends another exchange. Try the illustrative alarm-screen attachment, ask a maintenance handover question, and expand the sample source. No API key or AI calls are involved. Personal photos attached in example mode stay in the browser and are not analyzed. +![Mantis scripted chat example with an answer, source notes, and suggested follow-up questions](docs/assets/chat-example.png) + Choose **Exit example** or upload your own manual to leave example mode. Then attach a photo or ask about the selected manual to use the real backend. Switching modes resets the conversation, so example replies never enter a live request's history. ### 2. Connect your manuals diff --git a/docs/assets/README.md b/docs/assets/README.md index 43ee68f..4258628 100644 --- a/docs/assets/README.md +++ b/docs/assets/README.md @@ -2,7 +2,9 @@ - `banner.svg`: editable artwork for the GitHub README, using the existing Mantis mark and black/orange project identity. - `banner.png`: 1280 × 400 raster export, so GitHub renders the bundled Anton and Space Mono typography consistently. -- `product.jpg`: screenshot of the real product landing page. +- `product-hero.png`: desktop screenshot of only the landing page’s first screen, used near the start of the README. +- `chat-example.png`: separate screenshot of the actual scripted chat with conversation and composer aligned to the same content column, used in the README’s example instructions. +- `product.jpg`: earlier full-page product screenshot, retained for reference. - `workspace.jpg`: screenshot of the actual Your chats drawer with a saved example conversation and no private manuals or credentials. The banner source embeds the original Mantis mark. The PNG was rendered from that SVG with resvg using `mantis/web/assets/Anton-Regular.ttf` and `mantis/web/assets/SpaceMono-Regular.ttf`. Font licenses and brand provenance are documented in [the application asset guide](../../mantis/web/assets/README.md). diff --git a/docs/assets/chat-example.png b/docs/assets/chat-example.png new file mode 100644 index 0000000..2c04061 Binary files /dev/null and b/docs/assets/chat-example.png differ diff --git a/docs/assets/product-hero.png b/docs/assets/product-hero.png new file mode 100644 index 0000000..8ac5416 Binary files /dev/null and b/docs/assets/product-hero.png differ diff --git a/docs/verification.md b/docs/verification.md index 7cebf80..d52e6a7 100644 --- a/docs/verification.md +++ b/docs/verification.md @@ -54,3 +54,5 @@ Saved-chat tests cover persistence, workspace isolation, deletion, revision conf Browser checks for Your chats verified automatic save, reopening after a fresh page load, continuing a restored conversation, separate manuals/chats drawers, and mobile access without horizontal overflow or application console errors. Review regressions simulate Windows-normalized asset paths and a second writer immediately after a chat transaction commits. The workspace controller is also exercised with a DOM double and deferred requests: blocked manual changes/deletion during failed or pending saves, retry during a follow-up, removed-manual recovery, discard confirmation, and successful upload selection. These are state/interaction tests, not browser layout checks. + +Conversation alignment was checked at 1440 × 900 and 390 × 844: the transcript and composer share both horizontal boundaries, user/reply/source blocks remain inside that column, and neither viewport has horizontal overflow. The README chat screenshot reflects this layout. diff --git a/mantis/web/css/workspace.css b/mantis/web/css/workspace.css index a2ec61a..9bf0d4e 100644 --- a/mantis/web/css/workspace.css +++ b/mantis/web/css/workspace.css @@ -7,6 +7,8 @@ --muted: #9a9faa; --orange: #ff8a35; --mono: "JetBrains Mono", monospace; + --conversation-width: 1040px; + --conversation-gutter: 32px; } * { box-sizing: border-box; @@ -216,7 +218,7 @@ button { overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: #353940 transparent; - padding: 32px 32px 18px; + padding: 32px var(--conversation-gutter) 18px; } .welcome { width: min(680px, 100%); @@ -242,6 +244,8 @@ button { } #messages { width: 100%; + max-width: var(--conversation-width); + margin-inline: auto; display: flex; flex-direction: column; gap: 25px; @@ -345,6 +349,9 @@ button { border-color: #ffffff26; } .pending { + width: 100%; + max-width: var(--conversation-width); + margin-inline: auto; font-size: 12px; color: #cf8f58; letter-spacing: 3px; @@ -352,12 +359,12 @@ button { } .composer-shell { width: 100%; - padding: 12px 32px 12px; + padding: 12px var(--conversation-gutter); background: #101010; border-top: 1px solid #ffffff05; } .composer-shell > * { - max-width: 1040px; + max-width: var(--conversation-width); margin-left: auto; margin-right: auto; } @@ -739,8 +746,11 @@ dialog input { .mode-banner button { font-size: 8px; } + .chat-app { + --conversation-gutter: 10px; + } .chat-scroll { - padding: 20px 13px 16px; + padding: 20px var(--conversation-gutter) 16px; } .welcome { margin: 5vh auto 25px; @@ -772,7 +782,7 @@ dialog input { height: 155px; } .composer-shell { - padding: 10px 10px 9px; + padding: 10px var(--conversation-gutter) 9px; } .composer { gap: 7px;