Repository navigation
Releases
Releases · jprybylski/deckifyr
v0.3.9
Added
init --from-dir/--from-repocopies the local files a template
references (issue #103): the design'sslide.background_image, every
layout element'ssource(images,.csv/.parquettables,.qmd
fragments, including insidegroupelements) and, for a typed source, its
build.reportifyr.standard_footnotesand its starter slides' element
sources. Each is copied to the same relative path, so the new project
builds without bringing assets over by hand, and the--jsonresult lists
them undercreated. A reference that is missing, absolute, uses..,
goes through a symlink or resolves outside the source is not copied and is
reported as a warning. Files the template holds but nothing references
(a README, a spare image) are not copied. Existing files at those paths
count as conflicts, as the YAML files already did;--forceoverwrites.- The web editor answers an embedding host's guidance requests (issue #105).
A page on the editor's own origin that frames it can ask, with a
postMessage, for one of three controls to be highlighted:
deckifyr.session.save(Save),deckifyr.nav.build(the Build tab) and
deckifyr.build.run(Build). The editor draws its own outline and replies
shown,absent(not on screen, such as Build while another tab is open)
orunknown. It reads only messages from its parent window on its own
origin, and a highlight never moves focus, switches tabs or clicks.
GET /api/healthlists the ids underguidance. Running the editor on its
own is unchanged.
v0.3.8
Fixed
- The web editor's + Add slide with a layout that has a required zone
(title-content'stitle) no longer leaves an uneditable slide that blanks
the editor on reload (issue #101).GET /api/plannow plans leniently for the
editor: an empty layout zone shows as a dashed placeholder ("title (required)
-- empty"), a slide that cannot be planned is reported on its own (error)
without taking the other slides down, and the slide list flags the slide that
needs attention. A text zone is filled from the inspector's new Content
field (or by clicking it on the canvas), and aslotwith Fill..., which
keeps the layout's geometry (inherit_box). Patching a layout zone the slide
has not overridden yet creates the override instead of returning 404. The
new slide is selected after adding.buildandvalidateare unchanged: a
required element with no content still fails them.
v0.3.7
Fixed
- A
tableelement whose CSV has an empty header or data cell builds (issue
#96). It failed at build time withE_INTERNAL: IndexError: tuple index out of range, because python-pptx creates no run for an empty string and the
cell's font was applied toruns[0]. The cell stays empty in the PPTX and
now carries an empty, styled run, so text typed into it later in PowerPoint
keeps the table's font. Non-empty cells are unchanged.
v0.3.6
Added
- Offline mode for the R wrappers (issue #93). With
options(deckifyr.offline = TRUE),DECKIFYR_OFFLINE=1or uv's ownUV_OFFLINE=1,deck_validate(),
deck_build(),deck_preview(),deck_serve()and the other wrappers run
uv run --no-syncwithUV_OFFLINE,UV_NO_INDEXand
UV_PYTHON_DOWNLOADS=neverset, so a stale lock is used as it is instead of
being re-locked and synced against the index (which also downloaded a Python
when none was cached).init --from-repo--initialize_deck_project(from_repo =)anddeckifyr init --from-repo-- is refused with a message pointing at
--from-dir, since it needs agit clone. Provisioning in
initialize_deck_project()runs withUV_OFFLINE=1and stops, instead of
letting pyro download it, whenuvis not installed. Online behaviour is
unchanged. python_env(initialize_deck_project(python_env =),
options(deckifyr.python_env)orDECKIFYR_PYTHON_ENV): run an existing
Python environment (a venv, or a project directory with a.venv) directly,
with no pyro or uv at all. It is verified forpython-pptx,pydantic,
pyyamlandpillowand never modified; every wrapper, including
deck_serve(), uses it.
Changed
- The
deckifyrdependency groupinitialize_deck_project()writes to
pyproject.tomlnow includes the packages behind thewebandpreview
extras (fastapi,uvicorn,pymupdf), sodeck_serve()and previews work
straight after initialization instead of failing on a missing module. An
existing group is merged, so re-running it adds them. The "extra is not
installed" errors nameinitialize_deck_project()when run from R.
Fixed
- Project files that start with a UTF-8 byte order mark load (issue #94).
Windows PowerShell 5.1 (Set-Content -Encoding utf8) and older Notepad write
one, and it became part of the first key, sodesign.yaml,layouts.yamlor
presentation.yamlfailed withE_SCHEMA_VALIDATION(deckifyr: Field required/Extra inputs are not permitted). Project YAML and JSON, a table
CSV (a BOM no longer lands in the first column name),standard_footnotes.yaml,
reportifyr metadata sidecars and Quarto fragments are now read as UTF-8 with
an optional BOM. They were also read with the locale's default encoding, which
on Windows is cp1252, so non-ASCII text in a UTF-8 file was mis-decoded; and
deckifyr set/slidewrote with that same default. Both are explicit UTF-8
now (written files stay BOM-free). Files without a BOM are unaffected.
v0.3.5
Added
deckifyr servenow guards its API against other pages open in the same
browser (issue #88). Only127.0.0.1/localhost/[::1]on the served
port, the bound--hostand any--allowed-host(repeatable) are
accepted asHost-- anything else gets421, which stops DNS-rebinding
access. A state-changing request (POST/PUT/PATCH/DELETE) marked
Sec-Fetch-Site: cross-siteorsame-site, or carrying anOriginthat
is not allowed, gets403; before this a cross-site formPOSTto
/api/build,/api/discardor/api/shutdownran the handler. Curl, the
R facade, CI, the editor itself and the R Viewer pane are unaffected. A
supervising launcher can also set--api-token-env VAR: every/api/*
request exceptGET /api/healthmust then send the secret from that
environment variable asX-Deckifyr-Api-Token(read from the environment,
never argv; static assets stay open).- A launcher can stop a project file from choosing executables or paths
(issue #89).--rscript-bin/--quarto-bin/--soffice-bin(or
DECKIFYR_RSCRIPT_BIN/..._QUARTO_BIN/..._SOFFICE_BIN) run the
launcher's own executables instead of the project file's.
--trusted-binaries-only(DECKIFYR_TRUSTED_BINARIES_ONLY) rejects a
project whosebuild.*.binarydiffers from the default name with
E_UNTRUSTED_BINARYbefore anything runs, and requiresdesign.base,
layouts,build.output,build.manifestandbuild.reportifyrpaths to
resolve (symlinks followed) inside the project, else
E_PATH_OUTSIDE_PROJECT;--allow-outside-projectrelaxes the paths for a
shared organization design. It applies tovalidate,build,preview,
inspect,serve(including the editor's configPUTand saves) and, via
the environment,get/set/slide. All of it is off by default.
deck_build(),deck_validate(),deck_preview(),deck_inspect()and
deck_serve()take the same options. validate --warn-only(andbuild --warn-only) report each unitless
length it coerces to EMUs as aW_UNITLESS_LENGTHwarning, instead of
accepting it silently (issue #91).GET /api/healthreportsproject_loadedandproject_error
({code, message}), so one probe tells a supervisor both that the server is
up and whether the project is usable. It is still200either way.- The global
--debugflag (orDECKIFYR_DEBUG=1) adds atracebackto the
error payload of an unexpected failure.
Changed
- A release is now immutable (issue #91): pushing to
mainwithout bumping
VERSIONno longer re-tags the published version or re-uploads its assets
(the workflow emits a notice instead). A consumer that pinsdeckifyr X.Y.Z
plus the SHA-256 of its wheel orSHA256SUMScan rely on both naming fixed
bytes; to ship a change, bumpVERSION. Enabling GitHub's "immutable
releases" repository setting enforces the same thing server-side. buildwrites its.pptx, previews and manifest atomically (issue #90).
Everything is built in a private.deckifyr-staging-*directory next to the
output and only promoted once every step succeeded, manifest last, so a
failed or killed build leaves the previous build's files untouched and a
manifest on disk always matches the files it names. A full preview render
replaces that deck's previous preview files, so a preview set can no longer
mix two builds. Leftovers from a killed build are swept at the next build.- The published
--jsonresult schemas now allow extra keys (as the docs
always said adding a key is not a breaking change) and carry a versioned
$id(issue #91).
Fixed
- Any exception that is not a
deckifyrerror -- for example a
PermissionErrorbecause the output.pptxis open in PowerPoint -- now
produces the--jsonerror payload on stderr (E_IOfor an OS error,
E_INTERNALotherwise) instead of a bare traceback with no JSON (issue #90). - The process-tree and orphan tests now run on Windows too (issue #91).
v0.3.4
Added
deckifyr servecan run as a managed child of a launcher and behind a
reverse proxy (issues #82, #83). The editor now uses page-relative
URLs, so it works mounted under a path prefix (e.g.
/apps/deckifyr/) behind a prefix-stripping proxy with no
configuration;--root-pathsupports a proxy that does not strip the
prefix.--launcher workspacegives the no-project screen
workspace-appropriate guidance and implies the new
--no-frontend-rebuild(never runnpmat startup).GET /api/health
now reportsdirtyandactive_jobs, andPOST /api/shutdown
({"if_dirty": "refuse"|"save", "active_jobs": "refuse"|"cancel"})
stops the server in an orderly way: a refusal is a409with no side
effects,savewrites edits first, and the process exits 0. A plain
SIGTERM/SIGINT with unsaved edits now writes a warning to stderr
instead of dropping them silently.- Background build/preview jobs are bounded and cancellable (issue #84):
a job-level timeout (deckifyr serve --job-timeout, 600 s by default)
reportsE_TIMEOUT,POST /api/jobs/{id}/canceland a Cancel button
in the Build tab stop a running job, and both kill the whole process
tree (newdeckifyr._proc), so no LibreOffice is left behind.
Preview rendering also uses a private LibreOffice profile per call, so
it no longer collides with an open LibreOffice or with a concurrent
preview.
Timed-out Quarto and flextable (Rscript) renders now kill their whole
process tree too, instead of leaving pandoc/R children running. - The CLI's
--jsonoutput is a versioned contract (issue #85): every
success and error payload carriesresult_version(1);buildand
previewreturn the fullwarningslist (code,message,slide,
element) whether or not a manifest is written, plus anartifacts
list of{kind, path, sha256};validate/build/preview/error
payloads have published JSON Schemas underschemas/results/. All
existing keys are unchanged. - Each release now attaches a versioned Python wheel and sdist plus a
SHA256SUMSfile covering them and the R tarball (issue #86). The
Python package version is read fromVERSION, so the wheel, a build
manifest'sdeckifyr_versionand the release tag always agree.
Fixed
deckifyr init(without--from-dir/--from-repo) now works from an
installed wheel: the bundled minimal example was not packaged, so it
only worked from a repo checkout.- Installing the Python package no longer prints a
SyntaxWarningfrom
deckifyr.renderers.quarto.
v0.3.3
Changed
- The web editor's Config tab form is redesigned. Documents are split
into sections (a left rail, one pane at a time) instead of one long
scroll box; fields use styled inputs, switches and segmented controls,
collapsible cards, and show a per-field hint taken from the schema.
Colors are a swatch plus a text field with the document's own color
tokens as pick-able chips, lengths are a number plus a unit with
arrow-key stepping, and unions that used to fall back to raw JSON
(colors:entries that are literal or derived,fillas a color or a
gradient,elementsas named or a list) are a segmented switch between
their forms. The three JSON Schema files (deckifyr schema) now carry
adescriptionon every property and anx-deckifyr-widget
annotation on color/length strings; no document field changed.
v0.3.2
Added
- Reportifyr
.rdstable artifacts (Rflextableobjects, produced via
format_flextable()) now render as pictures instead of crashing the
build, and the web editor's reportifyr artifact picker correctly
routes.csv/.parquetpicks to native tables instead of always
building areportifyrelement (issue #57). New
deckifyr.renderers.flextableshells out toRscript/flextable:: save_as_image()to rasterize a.rdsartifact to a transparent PNG,
composed exactly like any otherreportifyrfigure, footer included.
v0.3.1
Added
shape/table/reportifyr/quartoelements can now be dragged,
resized, and rotated on the web editor's canvas (issue #54), the same
placeholder-box interactionimageelements already had -- no
backend changes were needed, since the PATCH endpoint and schema
already supported positioning any element type generically.group
elements are intentionally still a static placeholder: a group's
on-slide position is derived entirely from its own children's boxes
at build time, not its ownboxfield, so making it draggable needs
a separate, larger fix (tracked in issue #55).
v0.3.0
Added
- Layouts editor mode in the web editor (issue #30):
SlideList's
"Slides" / "Layouts" toggle swaps the entire numbered list between
presentation.yaml's slides andlayouts.yaml's layouts, with real
add/remove/rename layout CRUD. Everylayouts.yamlmust now define a
blanklayout, which can't itself be removed -- it's the fallback any
slide using a removed layout falls back to. Removing an in-use layout
previews which slides would be reassigned before you confirm, and the
server rejects the removal outright (no partial write) if reassignment
would leave a slide unbuildable. - Element add/remove for both slides and layout zones (issue #31): a new
ElementListsidebar (replacing the old always-onElementInspector
slot and the standalone furniture bar) lists every element as a
collapsed row you expand to edit;reportifyr/quartoelements get a
real file picker scoped to your project instead of a hand-typed path. - Slide add/remove/duplicate, and color swatches next to token pickers
in the config editor (issues #23, #27). - Build tab improvements (issue #32): the output-path field is now a
real single-level directory browser instead of free text; a "Render
slide previews" checkbox turns onbuild.previewsand now keeps the
intermediate PDF alongside the PNGs for an ordinarydeckifyr build,
not justdeckifyr preview; and a shared preview gallery (PNG
thumbnails, collapsed-until-requested PDF) is used by both the Build
and Preview sections. The previews checkbox is disabled with a clear
warning when LibreOffice isn't available, and abuild.previews: true
build with no LibreOffice now downgrades to a build warning instead of
losing the.pptxoutput entirely. deckifyr skills [DIRECTORY]/deck_export_skills()(issue #50):
exports two bundled Claude Skills-formatSKILL.mdfiles
(deckifyr-org-configfordesign.yaml/layouts.yaml,
deckifyr-presentationforpresentation.yaml) to a directory of
your choice, for use with Claude Code or any other coding agent that
readsSKILL.mdfiles.deckifyr init --from-dir <path>/--from-repo <spec>(issue #34):
scaffold a new project from an existing local directory or git repo
instead of only the bundled minimal example.--from-repoaccepts a
[host/]owner/repo[/subdir][@ref]shorthand as well as a full git
URL. A "typed" source (atemplates/directory of design/layouts/
presentation trios, selected via--type) is copied as-is; a "flat"
source copies just itsdesign.yaml/layouts.yamland generates a
fresh, emptypresentation.yamlpointing at them.- Static JSON Schema files for
design/layouts/presentation
(inst/python/deckifyr/schemas/*.schema.json, issue #49), so IDEs
like VS Code's YAML extension can validate against a real file via a
yaml-language-server$schemacomment instead of shelling out to
deckifyr schema. - A third, Playwright-based end-to-end test tier for the web editor,
alongside the existing pytest and vitest suites.
Changed
status_indicatoris a single-select again: the corner/watermark
split introduced in 0.2.1 (watermark_overlay) turned out to have a
confusing Add/Remove-vs-checkbox story with no real benefit, so a
corner placement and the full-page watermark once again share the
samestatus_indicatorselection.
Fixed
- A
quartoelement rendered as a PNG now composites with a
transparent background instead of opaque white (issue #9). - The "Deck Options" status-indicator dropdown now stays in sync after
the Furniture panel's own Add/Remove changesstatus_indicator
server-side, instead of showing stale state until a manual refresh. - Optional scalar fields in the schema-driven config form (an author
name, a table style's color, a corner's rotation, ...) no longer
render as a cut-off ~260px-tall sliver.