Skip to content
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
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down Expand Up @@ -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
Expand Down
4 changes: 3 additions & 1 deletion docs/assets/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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).
Binary file added docs/assets/chat-example.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/assets/product-hero.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 2 additions & 0 deletions docs/verification.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
20 changes: 15 additions & 5 deletions mantis/web/css/workspace.css
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@
--muted: #9a9faa;
--orange: #ff8a35;
--mono: "JetBrains Mono", monospace;
--conversation-width: 1040px;
--conversation-gutter: 32px;
}
* {
box-sizing: border-box;
Expand Down Expand Up @@ -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%);
Expand All @@ -242,6 +244,8 @@ button {
}
#messages {
width: 100%;
max-width: var(--conversation-width);
margin-inline: auto;
display: flex;
flex-direction: column;
gap: 25px;
Expand Down Expand Up @@ -345,19 +349,22 @@ button {
border-color: #ffffff26;
}
.pending {
width: 100%;
max-width: var(--conversation-width);
margin-inline: auto;
font-size: 12px;
color: #cf8f58;
letter-spacing: 3px;
padding: 6px 35px;
}
.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;
}
Expand Down Expand Up @@ -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;
Expand Down Expand Up @@ -772,7 +782,7 @@ dialog input {
height: 155px;
}
.composer-shell {
padding: 10px 10px 9px;
padding: 10px var(--conversation-gutter) 9px;
}
.composer {
gap: 7px;
Expand Down
Loading