Presentation fixes:
- Mirror the in-progress pen/highlighter stroke to the audience window
live (new 'inkLive' channel) so highlights appear as they are drawn,
not only after the pen lifts.
- Cover the macOS menu bar on the beamer: raise the audience window
above .mainMenu level so the Apple/Wi-Fi strip no longer shows during
a presentation.
Styling no longer lives in the file:
- generateDeck no longer embeds the ThemeProfile; a saved .md holds only
content. The profile is inlined only for the transient audience-window
payload (inlineStyleProfile: true), never to disk.
- On open, the app applies the active style profile (FileService.openDeck
/ activeProfileFor, DeckNotifier.loadDeck); applyMarkdown preserves the
current profile.
Quality pass / tests green:
- Complete the consent-screen translations (English plus 7 missing
strings per other language).
- Pass the consent gate in widget/ui-scale tests by seeding the consent
key, so the app shell renders.
- Update markdown round-trip tests for the new default and add coverage
for live stroke streaming and styling-free saves.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
The consent gate wrapped ConsentDialog in a second MaterialApp with no
localizationsDelegates. That started a fresh Localizations scope without
the AppLocalizations delegate, so context.l10n inside the dialog resolved
to nothing and the consent screen rendered with no text.
Render the consent screen as a plain Scaffold inside the app's existing
MaterialApp, which already supplies both the theme and the localization
delegates. Text now renders in all languages.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Complete localization for privacy/consent features in all supported languages:
- Italian (Italiano)
- German (Deutsch)
- French (Français)
- Spanish (Español)
- Frisian (Frysk)
- Papiamento
Each language block now contains 12 consent-related translations covering:
- Welcome and privacy explanation
- License information
- User agreement text
- Revoke consent option
- Required acceptance message
Consent screens are now fully localized for all 8 supported languages.
Co-Authored-By: Claude Haiku 4.5 <noreply@anthropic.com>
The project uses EUPL v1.2, not MIT. Updated consent dialog to display
the actual EUPL license text and point to the official EUPL license page.
- Changed 'Licentie (MIT)' to 'Licentie (EUPL 1.2)'
- Updated _getLicenseText() with EUPL v1.2 summary
- Fixed license link to https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12
Co-Authored-By: Claude Haiku 4.5 <noreply@anthropic.com>
Implement three privacy features:
1. Consent gate at app startup - users must accept privacy terms before using OciDeck
2. License visibility - MIT license displayed in consent dialog
3. Consent revocation - privacy settings tab allows users to withdraw consent and return to consent screen
Changes:
- New ConsentProvider for managing consent state with SharedPreferences persistence
- New ConsentDialog with privacy explanation and MIT license (expandable)
- Added Privacy tab to settings dialog with revoke consent button
- Updated localization strings for Dutch/English consent screens
Consent flow:
- On first launch or after revocation, consent screen blocks app access
- Users can read privacy terms, view license, and accept to proceed
- Consent can be revoked anytime from Settings → Privacy tab
- After revocation, app returns to consent screen on next launch
Co-Authored-By: Claude Haiku 4.5 <noreply@anthropic.com>
Duplicaten opruimen (md5) met samenvoegen van tags en opmerkingen en het
omzetten van slideverwijzingen — ook in presentaties op schijf die niet
geopend zijn. Filter om alleen afbeeldingen zonder tags te tonen. De
verwijder-waarschuwing dekt nu ook niet-geopende presentaties. Plus de
eerder uitstaande toegankelijkheids- en tabelplak-verbeteringen.
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Image library:
- "Clean up duplicates" finds byte-identical images by md5, keeps one
file per group (preferring the most-used, then the oldest), merges
the tags/descriptions and captions of the copies, repoints slides in
open decks and in .md presentations on disk, and deletes the copies
after a confirmation that lists every group.
- A header toggle filters to images without tags/description, so it is
easy to see which ones still need attention.
- The delete warning now also lists presentations on disk that still
reference the image (marked "not open"), next to the open decks.
Editor and accessibility (already in tree):
- Interface text scaling up to 200%, keyboard-operable panel divider,
keyboard-first add-slide dialog, and screen-reader improvements.
- Paste a spreadsheet/CSV/markdown selection into a table cell to fill
the whole grid.
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Flutter's macOS engine only sends mouse-moved events to the key window
by default. The borderless audience (beamer) window deliberately never
becomes key, so chart tooltips never appeared on the second screen, and
hover styling stuck around whenever a window lost key status before the
exit event arrived. Track the mouse whenever the app is active instead,
for both the main window and every secondary window.
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Provide English fallbacks and translations in every supported language for
the new clear-all-checklists dialog, menu item and snackbars, satisfying the
localization completeness tests.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Two-column slides share one text size driven by the busier column, so a
19-item column rendered the items tiny while fixed-size title and headings
dominated the slide. For dense columns (>12 items) spend less height on the
title, column headings and inter-item gaps, and use a tighter top/bottom
margin, so the list items render larger and stay readable. Sparser slides
keep their original proportions.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Two reserved bands kept checklist/bullet slides from using the available
height, leaving the text small with an empty band below it:
- Tighten the logo safe-area reserve to match the split-layout reserve
(logoSize + 24 instead of + 64); it still clears the logo.
- Use a slightly smaller top/bottom margin than the side margin in the
single-column bullets layout.
Combined with the as-rendered measurement fix, short checklists now grow to
fill more of the slide height while margins stay tidy.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
The auto-fit measured the raw bullet string with a generic bullet marker,
but checklists render the stripped text behind a checkbox and numbered lists
render `N.`. Measuring the longer raw text over-counted the block height, so
the fit picked too small a scale and left the text smaller than the space
allowed. Thread the list style into the measurement so it matches what is
drawn, letting checklist/numbered text grow to use the available height.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
The editor subtree is keyed on the deck revision and only re-reads its slide
when that revision changes. clearAllChecklists mutated the deck without
bumping the revision, so the currently selected slide's editor kept showing
its cached (still-checked) checkboxes even though the slide preview updated.
Add a bumpRevision flag to _mutate and use it for the deck-wide clear so the
editor remounts and reflects the cleared state.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Cap the progress pie to a smaller, fixed slot and give the freed width to
the bullets. This keeps the visual split closer to 50/50 instead of letting
the chart dominate, and lets the text grow to use the full slide height so
it stays readable on checklists with many items.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
- Add "Alle checkboxen legen" item to the deck overflow menu that, after
a confirmation dialog showing the count, unchecks every checklist item
across the whole presentation in a single undoable step.
- Make the checklist progress pie responsive: it now scales to the column
width it is given instead of a fixed, tiny size, so it fills the
available space in all three bullet layouts.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
A two-bullet-column slide sized both columns with the smaller of the two fit
scales, so a sparse column (e.g. 8 items) was shrunk to a crowded one's size
(e.g. 19 items), leaving the text tiny with empty space below it.
Each column now scales to fill its own height; the column headings keep a
shared size so the layout stays tidy.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
- Show the tab close button for an open presentation tab even when it is the
only tab.
- Double-click the date field in the presentation-info dialog to fill in
today's date.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
- Bullet slides can carry an optional subheading under the title (stored as
`## …` in the slide's subtitle, round-tripped losslessly).
- The two-bullet-column subheadings and the bullets subheading participate in
the auto-fit so the text keeps scaling to fill the slide.
- Slide text auto-sizing now measures with the deck's own font, so the fit
matches what is rendered and the text uses the available space instead of
staying smaller than needed.
- Editor fields, translations (all languages), docs and tests included.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
- The slide title now renders above the code panel (styled like other slide
types) instead of inside the dark code window — it is the slide's title.
- Code is sized to fill the panel: scaled up to use spare space (capped) and
down so long fragments still fit, instead of a small block in a big box.
- Add a per-profile monospace font for code slides (e.g. Courier), applied in
the preview and the HTML export.
- Settings: a banner on the Colours and Logo tabs makes clear they edit the
loaded style profile, and colour pickers now accept a custom hex value.
- Update docs and translations for the new strings.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
- The radar/spider scale no longer clutters the figure: the evenly spaced
tick values now sit in a slim legend beside the chart, both in the live
preview and in the SVG/HTML export.
- Hovering a radar point shows a tooltip (axis, series, value) like the other
charts; the invisible scale-anchor dataset is ignored.
- Refresh the documentation (README, user guide, file format, changelog) for
all recent work: code-slide theming with custom hex colours, the spider/radar
chart type, chart min/max, legend hover, and the chart tooltip behaviour.
- Drop two redundant non-null assertions in the chart preview tests.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Code slides:
- Theme code (broncode) background and text colours, with an optional
syntax-colouring toggle. With it off the block renders monochrome, so a
black background + bright green gives a classic CRT-screen look.
- Colour pickers gained a custom hex entry so arbitrary colours (e.g. CRT
green) can be set, not just presets. Exported HTML mirrors the code colours.
Radar/spider charts:
- Optional min/max now define the radar scale (centre/outer ring) instead of
threshold lines. Evenly spaced, labelled tick rings are drawn in both the
live preview and the SVG export so the scale is readable. A nice scale is
derived from the data when no bounds are set.
Line chart tooltips:
- Detect the touched dot by true (x and y) distance instead of the x-only
default, so the tooltip belongs to the point under the cursor. Overlapping
dots all show, and the font shrinks a step when several stack.
New UI strings are translated across all supported languages.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Charts:
- Shrink axis label fonts and thin/space x-axis labels by actual pixel
spacing so dense or long labels no longer overlap.
- Line tooltip shows only the point nearest the cursor instead of every
series stacked vertically.
- Hovering a legend entry highlights its element: bar/line series fade the
others (pie expands the matching slice), in app and presentation mode.
- Add optional min/max threshold lines per bar/line chart (ignored for pie),
editable in the chart editor and drawn in both the live preview and the
exported SVG.
Theme:
- Resolve relative logo paths in a ThemeProfile against the project path and
home directory so deck logos load regardless of working directory.
Tests cover bound round-trip, editor fields, SVG bounds, legend-hover fading,
and bound-line rendering.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Documentation & licensing:
- Add the EUPL-1.2 licence (LICENSE.md) and set the project licence; refresh
the README (name origin wink, updated feature list, documentation index).
- Add CONTRIBUTING, SECURITY, CODE_OF_CONDUCT, CHANGELOG, AUTHORS, and
THIRD_PARTY_NOTICES, plus docs/ (ARCHITECTURE, BUILD, USER_GUIDE, SHORTCUTS,
LICENSE_COMPLIANCE) and .github/ (CI workflow, issue/PR templates).
- Bring docs/FILE_FORMAT.md in line with current behaviour (code & chart
slides, per-slide TLP comment, annotation .ink.json sidecar, chart data/ CSVs).
Open-source compliance:
- Add tool/check_licenses.dart and a `make licenses` target (wired into
check-full and CI) that verifies every resolved dependency uses a recognised
open-source licence. A scan of all 151 packages and bundled assets found only
OSI-approved licences.
Charts (Fase 1.1):
- Replace the chart CSV textarea with an in-app editable data grid (editable
series/labels/values, add/remove row & column, read-only when linked).
- Centralize the linked-CSV directory name (`data/`) in a shared constant.
Also normalize formatting repo-wide with `dart format` and fix one
curly-braces lint, so `make check` and CI are green.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
New "Grafiek" slide type rendering bar, line and pie charts.
Storage fits Marp: a ```chart fenced block holds the spec as JSON. Small
charts keep their data inline (the .md stays self-contained); data-driven
charts link an external CSV via "source": "data/<name>.csv" kept in a
separate data/ directory and packaged into .ocideck like images. On save
the inline data is stripped for linked charts (the CSV is the source of
truth); on open it is re-hydrated from the CSV.
- lib/models/chart.dart: ChartSpec/ChartSeries JSON parse/serialize,
inline-vs-source handling, and a CSV parser.
- In-app rendering (preview/presenter/PDF/PPTX) via fl_chart.
- HTML export renders charts as self-contained inline SVG generated in
Dart (no JS chart library); export inlines linked data so the page is
standalone.
- Editor: type picker, title, a CSV-style data field, and CSV import that
can inline the data or link it as data/<name>.csv (with unlink).
- Markdown round-trip + .ocideck packaging of linked CSVs; translations
for all supported languages.
flutter analyze is clean, all tests pass (new chart/CSV/round-trip tests),
and the macOS debug build compiles.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Draw on slides while presenting, kept as a layer fully separate from the
Marp content so the deck stays pure, portable Marp.
Presenter tools (D pen, T highlighter, E eraser, X laser, C clear, Esc
puts the tool away) with a small floating colour/tool bar shown only when
a tool is active. Strokes use coordinates normalized to the 16:9 slide so
they render identically on the laptop and the beamer; in dual-screen mode
the ink and the laser are mirrored live to the audience window.
Persistence (decoupled from the .md):
- In memory the layer is keyed by Slide.id (stable within a session).
- On disk it lives in a sidecar <name>.ink.json next to the deck and as a
separate entry inside the .ocideck package; the markdown is untouched.
- Because slide ids are regenerated on load, the sidecar anchors strokes
by order + a content fingerprint, re-attaching them after reordering and
dropping them when a slide's content changed.
- Deck.annotations carries the layer in memory but is never serialized to
markdown; deckProvider.setAnnotations keeps it out of undo/redo.
flutter analyze is clean, all tests pass (incl. new stroke/codec tests),
and the macOS debug build compiles. Drawing and live beamer sync still
need verification on real hardware.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Each slide can now carry its own Traffic Light Protocol level. When the
presentation is shared at a given TLP level, slides classified stricter
than that level are withheld, so the same deck can be shown safely to
audiences with different clearances.
- Slide.tlp field with markdown round-trip via a <!-- tlp: <key> --> marker
(also on code slides).
- Editor: a per-slide "TLP van deze slide" dropdown.
- Central rule slideVisibleAtTlp() compares levels on the TLP severity
order (none < CLEAR < GREEN < AMBER < AMBER+STRICT < RED).
- Filtering lives in _slidesForPresentationOrExport, the single source of
slides for presenting (single-window and dual-screen) and for every
export (PDF, PPTX, HTML), so all paths honour it.
- Translations for the new strings in all supported languages, plus tests
for the round-trip and the visibility rule.
flutter analyze is clean and all tests pass.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Bring the second-window (beamer) presenter mode to all desktop platforms,
not just macOS:
- Implement the native window_coverScreen / window_close methods for the
vendored desktop_multi_window plugin on Windows (borderless popup over
the presentation monitor) and Linux.
- Register the app's plugins for sub-windows in the Windows and Linux
runners, so video/image rendering works in the audience window there too.
- Gate dual-screen mode through a testable shouldUseDualScreen() helper
(any desktop platform with >= 2 displays) and cover it with tests.
flutter analyze is clean and all presenter tests pass. Runtime two-screen
behaviour still needs verification on real hardware.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
When a second display is connected (macOS), presenting now opens a
borderless audience window on the beamer showing the slide, while the
main window shows the presenter view (current/next slide, speaker notes,
clock, controls) on the laptop. The two windows stay in sync over method
channels: navigation, blank screen, audio-complete and beamer clicks are
forwarded between them, and media plays only on the beamer to avoid
double audio. Falls back to the existing single-window presenter when
there is one display or the second window can't be created.
- Vendors a fork of desktop_multi_window in third_party/ that re-adds the
native macOS window geometry/fullscreen calls (coverScreen, setFrame,
close) the published 0.3.0 dropped; wired via a path dependency.
- Registers the app's plugins for sub-windows in MainFlutterWindow so
video/image rendering works on the beamer.
- Routes the multi_window dart entrypoint to a minimal AudienceWindowApp.
Compiles (flutter analyze + macOS debug build) and all tests pass;
runtime two-screen behaviour still needs verification on real hardware.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Bundles several in-progress changes from the working tree:
- App appearance / look-and-feel: customizable app theme profiles
(colors, dark interface) with a settings UI and persistence.
- New "Broncode" (source code) slide type: dark code sheet with
syntax highlighting, a dedicated editor with a language picker,
and Marp markdown round-trip via a fenced code block.
- Presenter: eliminate the brief black frame between slides by
precaching neighbouring slide images and enabling gaplessPlayback,
so recordings stay clean.
Adds round-trip tests for the code slide and translations for the
new strings across all supported languages.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
New export target: a single offline .html rendered from the deck's Marp
Markdown. Bundles (inlines) marked, highlight.js, MathJax (tex-svg, no font
files) and mermaid, so code highlighting, LaTeX math and mermaid diagrams all
render in any browser with no network access.
- MarpHtmlService splits the deck on `---`, strips front-matter, and inlines
the vendored libraries (assets/web_export/) with a </script> breakout guard.
The asset loader is injectable for testing.
- ExportFormat.html wired through ExportService (no rasterization needed),
the export dialog (new button, skips slide rendering) and app_shell
(passes the generated Markdown). Export dialog is now scrollable.
Note: rendered with marked, not Marp Core, so theme fidelity differs from the
in-app preview / PDF / PPTX; the win is a portable, dependency-free deck.
Tests: slide splitting, library inlining, breakout escaping, and an
end-to-end .html export.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
The free-Markdown slide preview now parses block-level content:
- ```lang fenced code blocks render with highlight.js colouring
(flutter_highlight); unknown languages fall back to plain monospace
instead of throwing.
- $$…$$ display math renders via flutter_math_fork (KaTeX), with a plain
fallback on parse errors.
Because the preview feeds the export rasterizer, code and math now also
appear in PDF/PPTX output. Adds flutter_highlight, flutter_math_fork and
highlight dependencies.
Tests: code block highlighted, math rendered, unknown language safe.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
PPTX export now writes each slide's speaker notes into the PowerPoint notes
pane (notesSlide parts + a notesMaster, wired through content-types and
relationships). Slides without notes stay note-free, so the machinery is
omitted entirely when no slide has notes. Note text is XML-escaped and
multi-line notes become separate paragraphs.
Also drop the README line pointing at the removed ci.yml workflow.
Tests: notes embedded only for noted slides, text present and escaped,
slide links to its notesSlide, and all (including notes) XML well-formed.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
- Bind Ctrl/Cmd+O app-wide to the open-presentation dialog (was unbound).
- Add a "copy to another deck" bulk action to the slide list: with multiple
slides selected, pick a target open tab; the slides are appended there as
fresh copies, leaving the source deck untouched. Multi-select, bulk delete
and bulk skip/show already existed.
Test: cross-deck copy keeps the source intact and assigns fresh ids.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Privacy: replace the runtime google_fonts fetch with a locally bundled
EB Garamond (variable TTFs + OFL license), so the app no longer contacts
Google's servers. Removes the google_fonts dependency.
PDF export:
- Add a normal/compressed image-quality choice in the export dialog.
Compressed re-encodes slides as JPEG (q60) at 1280px for a small handout,
saved as a separate "-compact" file.
- Add a configurable export directory (Settings → Exportmap); when unset,
exports land next to the deck as before.
- Prefix every export with a UTC timestamp (YYYYMMDDHHMMSS) so exports sort
chronologically and never overwrite each other.
Tests: export service (compression, output dir, timestamp) and an export
dialog widget test asserting the quality choice renders.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Document the OciDeck on-disk format: Marp-compatible Markdown, project
folder layout, YAML front matter (incl. TLP and base64url style profile),
per-slide-type markup, image caption sidecars, special HTML comments, and
the portable .ocideck package. Link it from the README.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>