Skip to content

feat(studio): add sources, mind maps, and adaptive PDF export - #159

Merged
nullure merged 1 commit into
CaviraOSS:mainfrom
benoualiabdelkader:pr/studio-pdf-export
Nov 15, 2026
Merged

nullure merged 1 commit into
CaviraOSS:mainfrom
benoualiabdelkader:pr/studio-pdf-export

Conversation

@benoualiabdelkader

Copy link
Copy Markdown
Contributor

Summary

Adds the Studio UI and source library, with 12 mind-map templates and an adaptive print-ready PDF exporter.

What changed

  • Sources page, source navigation, and source-aware Chat/Landing upload flow.
  • Studio page for quiz, QCM, flashcards, summary, learning sheet, and mind-map generation from a selected source.
  • 12 mind-map templates: \ ree, \�alanced, \org,
    adial, \�rc, \ imeline, \stairs, \outline, \ ishbone, \columns, \lanes, \matrix.
  • Adaptive PDF export: a single readable portrait/landscape page when the map fits; otherwise a cover, contents with page references, and landscape detail pages per branch. Includes RTL Arabic metadata, /PrintScaling /None, progress reporting, and adaptive label shrinking.
  • Existing SVG, PNG, and Markdown exports preserved.
  • Responsive Arabic navigation and shared API client/types for sources, Studio, and quiz settings.

Validation


  • px tsc --noEmit -p frontend/tsconfig.json\

  • pm run build\ in \ rontend/\
  • Mind-map layout, direction, overview, view, and export tests included.

Dependencies

Notes

  • The PDF path stays client-side (canvas/raster composition) to keep Arabic shaping and fonts reliable; a backend vector exporter can follow separately.

@nullure nullure left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@nullure
nullure merged commit 10eec20 into CaviraOSS:main Nov 15, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants