PictoPy icon indicating copy to clipboard operation
PictoPy copied to clipboard

Docs: Interactive/clickable architecture diagram on the Architecture page

Open Mansi2007275 opened this issue 4 months ago • 6 comments

Describe the feature

Is this related to a problem?

Not a bug — this is a documentation/UX enhancement request.

Describe the feature

PictoPy has a genuinely non-trivial multi-service architecture: a Tauri/React frontend, a Rust backend layer, a Python (FastAPI) backend for AI/image processing, and a separate sync-microservice. Currently, the Architecture page on the docs site (https://aossie-org.github.io/PictoPy/overview/architecture/) explains this as static text/description.

I'd like to propose replacing (or supplementing) this with an interactive, clickable architecture diagram where each major component is a clickable node:

  • Frontend (Tauri/React)
  • Rust Backend
  • Python Backend (FastAPI)
  • Sync-Microservice

Clicking a node would either:

  • Expand an inline summary of that component's responsibilities directly on the diagram, or
  • Jump/link to that component's dedicated docs section (e.g. clicking "Python Backend" navigates to the Python Backend API page)

Why this is useful

  • New contributors (like myself) currently have to read through several separate doc pages to piece together how the services communicate. A single interactive diagram gives an at-a-glance mental model before diving into details.
  • Material for MkDocs supports Mermaid diagrams natively, so this can likely be done with minimal tooling overhead — no need for custom JS frameworks.
  • Makes the docs site feel more like an onboarding tool and less like a flat reference.

Proposed implementation approach

  1. Enable Mermaid diagram support in mkdocs.yml (via pymdownx.superfences custom fence for Mermaid), if not already enabled.
  2. Build a flowchart/graph diagram representing the 4 components and their communication paths (e.g. Frontend ↔ Rust Backend ↔ Python Backend ↔ Sync-Microservice).
  3. Use Mermaid's clickable node syntax (click NodeName "url" "tooltip") to link each node to its corresponding docs page.
  4. Fallback: if click-to-expand inline is preferred over navigation, this could instead be built as a small custom HTML/JS component embedded in the page.

Scope

This is a documentation-site-only change — no impact on the actual application code, frontend, or backend.

Additional context

I'm happy to work on this if the general direction (Mermaid diagram with clickable nodes linking to existing doc pages) sounds good to maintainers. Open to adjusting the approach based on feedback — e.g., if a more custom interactive component is preferred over Mermaid.

Add ScreenShots

@rohan-pandeyy i would like to woork on this feture please confirm it so that i can raise PR

Record

  • [x] I agree to follow this project's Code of Conduct
  • [x] I want to work on this issue

Mansi2007275 avatar Jul 03 '26 19:07 Mansi2007275

👋 Thanks for opening this issue! The maintainers will review it shortly. Till then, do not open any PR. This is a strict rule we like to follow around here :)

github-actions[bot] avatar Jul 03 '26 19:07 github-actions[bot]

Hi @Mansi2007275 Since your issue is Documentation related only , we do have a Single issue that is used to track all the documentation changes, where you can propose your idea ,instead of opening multiple issues we have 1 to track all the documentation related issues https://github.com/AOSSIE-Org/PictoPy/issues/1257

akshajtiwari avatar Jul 04 '26 10:07 akshajtiwari

Interesting idea, @Mansi2007275! But before you move ahead with opening a PR, I'd love to see a short implementation demo video to better understand how it'd look like in practice. Would you be able to share a video?

rohan-pandeyy avatar Jul 07 '26 16:07 rohan-pandeyy

sure @rohan-pandeyy i will try to give you short video of that

Mansi2007275 avatar Jul 24 '26 16:07 Mansi2007275

@Mansi2007275 Are you still working on this issue?

VanshajPoonia avatar Aug 20 '26 07:08 VanshajPoonia

Sir @VanshajPoonia @rohan-pandeyy please reveiw

Mansi2007275 avatar Sep 29 '26 00:09 Mansi2007275