Repository navigation
Unify maintenance manuals, photos, and examples in one chat - #4
Merged
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Mantis now uses one working chat for equipment manuals, photos, follow-up questions, and sources. The old dashboard/library page and separate product demo are replaced by a chat-first interface with the supplied logo, black/orange styling, a compact manual drawer, and expandable citations beneath replies. “Try an example” opens this same app with a clearly scripted CNC conversation; changing manuals or live/example modes clears its context.
Live questions retain the last four successful text exchanges. JPEG/PNG/WebP photos are validated (8 MB, 20 megapixels, no animation or remote URLs), sent for visible observations/transcription, and used to inform selected-manual retrieval. Photo-only replies require insufficient-evidence status and cannot invent manual citations. Current-message images are not resent in history, and Mantis does not persist photos or conversation. Requests are bounded before JSON parsing; cancellation/reset suppresses stale replies and failed drafts can be retried.
The landing page retains the presentation’s gradient headline and orange glow in a full-screen hero, followed by a concise three-step “How it works”, crisp native HTML/CSS chat preview, and footer. Team/background credits remain in the docs. Section links clear the sticky header; desktop and mobile hero sizing was verified. Updated README, configuration/API/architecture/verification docs, package assets, screenshots, and dependency metadata.
Validation: 34 Python tests, 12 frontend tests, Ruff/syntax/format checks, and isolated wheel build/smoke test pass. Desktop/mobile browser checks cover the example, inline sources, keyboard submission, switching modes, and overflow. A temporary local fake-provider server verified actual PDF upload/selection, questions/follow-up, original PDF links, the live photo path, and the manual drawer with no external AI calls. No console errors observed. Live model behavior and visual accuracy remain unverified because no valid API key is configured.