Commit graph

69 commits

Author SHA1 Message Date
3187ef106f Merge pull request 'Document TLP classification enforcement, marking, and export metadata' (#10) from feature/classification-enforcement into main
Some checks are pending
CI / Format · Analyze · Test (push) Waiting to run
2026-06-16 11:53:31 +00:00
Brenno de Winter
e601d7ee78 Document TLP classification enforcement, marking, and export metadata.
Some checks are pending
CI / Format · Analyze · Test (push) Waiting to run
CI / Format · Analyze · Test (pull_request) Waiting to run
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-06-16 10:52:19 +02:00
1612b772a7 Merge pull request 'Add TLP classification enforcement with visual marking and export metadata' (#9) from feature/classification-enforcement into main
Some checks are pending
CI / Format · Analyze · Test (push) Waiting to run
Reviewed-on: #9
2026-06-16 08:52:07 +00:00
Brenno de Winter
173f1a3f26 Add TLP classification enforcement with visual marking and export metadata.
Some checks are pending
CI / Format · Analyze · Test (push) Waiting to run
CI / Format · Analyze · Test (pull_request) Waiting to run
Extend export gates with optional floor and required classification, stamp PDF/PPTX/HTML metadata, and show banners and watermarks WYSIWYG across editor, presenter, and export.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-06-16 10:35:55 +02:00
Brenno de Winter
1fc4d25dcf Add slide quality checks for accessibility with export warnings.
Some checks are pending
CI / Format · Analyze · Test (push) Waiting to run
Help authors spot missing alt text, low contrast, and dense slides in the editor, with an optional confirmation step before export when issues remain.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-06-16 08:57:18 +02:00
6d90e7d7b4 Merge pull request 'feature/markdown-syntax-check-linux-presenter' (#8) from feature/markdown-syntax-check-linux-presenter into main
Some checks are pending
CI / Format · Analyze · Test (push) Waiting to run
Reviewed-on: #8
2026-06-15 22:09:39 +00:00
Brenno de Winter
986aba99e5 Fix markdown editor gutter scroll sync without sharing ScrollController.
Some checks failed
CI / Format · Analyze · Test (push) Has been cancelled
CI / Format · Analyze · Test (pull_request) Has been cancelled
The line-number gutter now follows the TextField scroll offset via Transform.translate so Flutter no longer attaches one controller to two scroll views.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-06-16 00:07:54 +02:00
Brenno de Winter
3c8eda6fd9 Add markdown syntax validation and fix Linux dual-screen presenter teardown.
Some checks are pending
CI / Format · Analyze · Test (push) Waiting to run
Markdown mode now validates deck structure before apply, highlights issues by line, and allows proceeding after a warning. Dual-screen exit closes the audience window once and avoids Linux embedder crashes from duplicate teardown.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-06-15 23:57:49 +02:00
4859d66d95 Merge pull request 'Meldingen-hardening: verwerp-optie bij sluiten, classificatie-gate, presentatietimer' (#7) from feature/meldingen-hardening into main
Some checks failed
CI / Format · Analyze · Test (push) Has been cancelled
2026-06-13 05:54:42 +00:00
Brenno de Winter
483264b652 Add "discard" option to the unsaved-changes close dialog
Some checks failed
CI / Format · Analyze · Test (push) Has been cancelled
CI / Format · Analyze · Test (pull_request) Has been cancelled
Closing a presentation only offered Cancel or "Save and close", so
unsaved edits could only be dropped by force-quitting. That left an
autosave recovery snapshot behind, creating version ambiguity between
the saved file on disk and the restored unsaved copy on next launch.

Add a third "Niet opslaan" (discard) choice to the close/quit dialog.
Discarding closes without saving; closeTab() and _destroy() already
clear the recovery files, so no shadow version remains and there is a
single unambiguous version afterwards.

Register the "Niet opslaan" string for all 8 supported languages.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-06-13 07:49:07 +02:00
Brenno de Winter
b719c43991 Add presentation timer / rehearsal mode to the presenter
The presenter view now doubles as a rehearsal clock that measures without
coaching: a countdown against a target time, the time spent on the current
slide, and an end-of-run summary (total vs. target and per-slide times, with
copy-to-clipboard). Timing lives in a plain, unit-tested RehearsalController fed
via an idempotent observe() on every build, so it captures every navigation
path. The default target is stored in AppSettings; live adjustment is the K key
(typed as MMSS). All rehearsal state is session-only -- nothing is written to
disk or into the .md file.

- New: models/rehearsal.dart, services/rehearsal_controller.dart,
  widgets/presentation/rehearsal_summary.dart, plus a controller unit test.
- Presenter: countdown + per-slide timer in the clock bar, K to set the target,
  R resets the run, end-of-run summary dialog, and help/cheatsheet entries.
- Settings: presentationTargetSeconds (default target) with a dropdown in the
  General tab, threaded into FullscreenPresenter.present().
- l10n: new Dutch source strings translated in all seven languages.
- Docs: README, CHANGELOG, USER_GUIDE, SHORTCUTS, ARCHITECTURE.

Also bundles a pre-existing in-progress change already in the working tree: wire
the existing ThemeProfile.tableHeaderBackgroundColor into table rendering
(preview, HTML export, file_service) and the settings dialog, plus its
translations.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-06-13 07:03:08 +02:00
Brenno de Winter
f93417dc3c Add fail-closed export classification gate (release ceiling)
Enforce an optional TLP release ceiling at the single export chokepoint
so no format (PDF/PPTX/HTML) can bypass it. Classifying a deck stays
optional; the gate only blocks decks classified above the configured
ceiling, and is off by default.

- ClassificationPolicy + ExportDecision: pure, tested decision logic
  (release ceiling, fail-closed; null = no gate).
- ExportService.export() evaluates the policy first and refuses without
  building or writing anything when blocked.
- Persist the ceiling as maxReleaseExportTlpKey in app settings/prefs
  (default off) with a setter on SettingsNotifier.
- Export dialog runs the same check up front and explains a blocked
  export before any work starts; app shell builds the policy from
  settings.
- Tests: classification_policy_test plus export_service chokepoint tests
  asserting a blocked export fails and writes no file.
- Docs: CHANGELOG, README, USER_GUIDE, ARCHITECTURE, SECURITY.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-06-12 00:26:29 +02:00
0b3d0be30f Merge pull request 'feature/meldingen-hardening' (#6) from feature/meldingen-hardening into main
Some checks are pending
CI / Format · Analyze · Test (push) Waiting to run
Reviewed-on: #6
2026-06-11 20:40:08 +00:00
Brenno de Winter
b270e71755 Apply repo formatter across the tree
Some checks failed
CI / Format · Analyze · Test (push) Has been cancelled
CI / Format · Analyze · Test (pull_request) Has been cancelled
Run `make format` so the whole repo is consistent under the project formatter.
Whitespace only; no logic changes. Touches a few widgets and tests that were
unformatted on main (dart-format version drift), so `make check` is fully green.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-06-11 22:17:07 +02:00
Brenno de Winter
97b825f1b9 Bundle pre-existing in-progress changes
In-progress local work that predated this branch, committed alongside it:
localization updates (app_localizations.dart), consent/deck/tabs providers,
the Android Gradle build config, and their accompanying tests. Grouped here so
the structural changes on this branch stay separable.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-06-11 22:16:57 +02:00
Brenno de Winter
6b2ba4df89 Split slide_preview.dart and app_shell.dart into part files (#1)
Break the two largest widget files into part/part-of libraries grouped by
concern, with no public API or behaviour change (private widgets keep working
because parts share the library namespace; all imports stay in the main file).

  slide_preview.dart  4748 -> 426 lines + slides/previews/{text,bullets,
                      checklist,table,media,code,chart,overlays}.dart
  app_shell.dart      1930 -> 996 lines + shell/{shell_actions,tab_bar,
                      welcome_screen,status_bar,shell_overlays}.dart

fullscreen_presenter.dart is intentionally left as-is: ~1.6k of its lines are a
single interactive _FullscreenPresenterState (38 setState calls), which a
mechanical split cannot reduce and extensions can't host (protected setState).
Shrinking it needs a behaviour-affecting sub-widget extraction, tracked
separately.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-06-11 22:16:49 +02:00
Brenno de Winter
ee9e2bfc58 Add logger; replace silent catch(_) with logged fallbacks (#2)
Introduce lib/utils/log.dart (logError / logWarning over dart:developer) and
route all 53 previously-bare `catch (_)` blocks through it. Behaviour is
unchanged: every fallback still fails soft (a broken sidecar, unreadable file
or unsupported platform must never crash a presentation) but the cause is now
observable. logError is used for unexpected parse/IO failures, logWarning for
expected best-effort fallbacks; no deck or file contents are ever logged.

Note: file_service, markdown_service, marp_html_service, fullscreen_presenter,
image_carousel_picker and url_launcher_util also carried pre-existing local
changes, bundled here.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-06-11 22:16:39 +02:00
Brenno de Winter
f08055c7ae Upgrade vendored JS and add deps-check CVE gate (#3)
Upgrade the JavaScript bundles inlined into the offline HTML export:
DOMPurify 3.1.7 -> 3.4.9 (clears 10 OSV advisories), marked 12.0.2 -> 18.0.5,
highlight.js 11.9.0 -> 11.11.1. mermaid 10.9.6 and MathJax 3.2.2 are kept
(no known CVEs) and now guarded rather than chased.

Pin every bundle in assets/web_export/MANIFEST.json (npm name, version, source,
sha256, licence) and add tool/check_bundled_js.dart: it verifies each file
still matches the manifest hash and queries the OSV database for known
vulnerabilities. Wired as `make deps-check`, into `check-full`, and into CI
next to the licence check. THIRD_PARTY_NOTICES.md updated for the now-standalone
DOMPurify bundle.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-06-11 22:16:29 +02:00
6bf85773b0 Merge pull request 'Live presenter annotations + keep styling out of saved .md' (#5) from feature/live-annotations-clean-md into main
Some checks are pending
CI / Format · Analyze · Test (push) Waiting to run
2026-06-11 17:31:10 +00:00
Brenno de Winter
2c4a6f7358 Sync presenter annotations live, keep styling out of saved .md
Some checks failed
CI / Format · Analyze · Test (push) Has been cancelled
CI / Format · Analyze · Test (pull_request) Has been cancelled
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>
2026-06-11 19:25:05 +02:00
Brenno de Winter
47b2555dc5 Fix blank consent screen: drop nested MaterialApp
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>
2026-06-11 14:27:24 +02:00
Brenno de Winter
56932a2dda Add consent screen translations for all 8 languages
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>
2026-06-11 14:15:14 +02:00
Brenno de Winter
4f595d1340 Fix: Use correct EUPL 1.2 license instead of MIT
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>
2026-06-11 14:02:24 +02:00
Brenno de Winter
c6190dc31b Add consent/privacy screen at startup and license display
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>
2026-06-11 14:01:06 +02:00
Brenno de Winter
e86d30e75a Merge branch 'fix/two-bullets-independent-scaling': Afbeeldingenbibliotheek: md5-duplicaten opruimen en filter zonder tags
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>
2026-06-11 13:45:55 +02:00
Brenno de Winter
68725341a7 Add image-library dedupe and untagged filter, UI text scaling, table paste
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>
2026-06-11 13:36:44 +02:00
Brenno de Winter
280934d331 Deliver hover events to non-key windows on macOS
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>
2026-06-10 11:29:42 +02:00
815f5f2cee Merge pull request 'Checklist clear-all actie, grotere voortgangsgrafiek en leesbaardere bullet auto-fit' (#4) from fix/two-bullets-independent-scaling into main
Some checks failed
CI / Format · Analyze · Test (push) Has been cancelled
2026-06-09 21:38:10 +00:00
Brenno de Winter
382945e99b Add translations for the clear-all-checkboxes strings
Some checks failed
CI / Format · Analyze · Test (push) Has been cancelled
CI / Format · Analyze · Test (pull_request) Has been cancelled
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>
2026-06-09 23:35:24 +02:00
Brenno de Winter
167e8aee75 Enlarge list text on dense two-column slides
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>
2026-06-09 23:12:20 +02:00
Brenno de Winter
167cc63c49 Free up vertical space so bullet text grows larger
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>
2026-06-09 22:57:40 +02:00
Brenno de Winter
4ab1fa5f44 Measure checklist/numbered bullets as rendered when auto-fitting
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>
2026-06-09 22:51:37 +02:00
Brenno de Winter
030b16b4bb Test that clear-all-checklists is a single undoable step
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-06-09 20:36:16 +02:00
Brenno de Winter
9fe5771d44 Reflect clear-all-checklists in the open slide editor
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>
2026-06-09 20:34:55 +02:00
Brenno de Winter
3ca94771b9 Balance checklist progress chart against the bullet column
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>
2026-06-09 15:57:50 +02:00
Brenno de Winter
0bc3f62ede Add clear-all-checklists action and enlarge progress chart
- 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>
2026-06-09 15:43:46 +02:00
Brenno de Winter
2fd5054603 Improve presentation editing and playback 2026-06-09 13:28:23 +02:00
Brenno de Winter
196cd8adb1 Scale two bullet columns independently
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>
2026-06-08 22:30:46 +02:00
839474fa19 Merge pull request 'Bullet subheadings, font-accurate auto-fit, and small UX tweaks' (#3) from feature/bullet-subheadings-and-autofit into main
Some checks are pending
CI / Format · Analyze · Test (push) Waiting to run
2026-06-08 19:52:51 +00:00
Brenno de Winter
ebc9710283 Small UX tweaks: tab close affordance and date quick-fill
Some checks failed
CI / Format · Analyze · Test (push) Has been cancelled
CI / Format · Analyze · Test (pull_request) Has been cancelled
- 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>
2026-06-08 21:50:23 +02:00
Brenno de Winter
9827715873 Add bullet subheadings and font-accurate slide auto-fit
Some checks are pending
CI / Format · Analyze · Test (push) Waiting to run
- 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>
2026-06-08 21:48:06 +02:00
bd6db5cbd7 Merge pull request 'feature/app-theming-and-code-slides' (#2) from feature/app-theming-and-code-slides into main
Some checks are pending
CI / Format · Analyze · Test (push) Waiting to run
Reviewed-on: #2
2026-06-08 12:31:03 +00:00
Brenno de Winter
e0379ade59 Refine code slides: title outside the panel, fit-to-space, font choice
Some checks failed
CI / Format · Analyze · Test (push) Has been cancelled
CI / Format · Analyze · Test (pull_request) Has been cancelled
- 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>
2026-06-08 14:28:04 +02:00
Brenno de Winter
dd54d36a60 Move radar scale to a side legend and add point tooltips
- 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>
2026-06-08 14:04:47 +02:00
Brenno de Winter
de4a77e2bb Add code-slide theming, radar scale, and proximity line tooltips
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>
2026-06-08 13:51:29 +02:00
Brenno de Winter
67408c213c Improve chart rendering and resolve theme logo paths
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>
2026-06-08 12:18:35 +02:00
ddaf859dfd Merge pull request 'App-thema’s, meerschermen, annotaties en grafiekslides' (#1) from feature/app-theming-and-code-slides into main
Some checks failed
CI / Format · Analyze · Test (push) Has been cancelled
Reviewed-on: #1
2026-06-07 10:40:43 +00:00
Brenno de Winter
2d8be6f0dd Add project docs, EUPL licence, and open-source licence check
Some checks failed
CI / Format · Analyze · Test (push) Has been cancelled
CI / Format · Analyze · Test (pull_request) Has been cancelled
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>
2026-06-07 12:19:56 +02:00
Brenno de Winter
4849003338 Centralize chart data directory name 2026-06-07 11:45:48 +02:00
Brenno de Winter
32ef54e037 Add chart slides (bar/line/pie) with hybrid CSV storage
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>
2026-06-07 11:42:44 +02:00