feat: File link OR media-library upload + Datenatlas publish link (v2.17.0)#59
Merged
Merged
Conversation
….17.0) Data provision (#5): the access-URL field is relabelled "Ergänzen Sie den Link zu Ihrem Datensatz oder laden Sie die Datei in die Mediathek hoch" and is no longer hard-required client-side. A media-library upload now doubles as the distribution — on save, the access URL (and format) are derived from the uploaded file when the user didn't enter them, so the URL never has to be typed twice. Publish validation accepts either an access URL or an uploaded file. Datenatlas (#1, option A): the final wizard step (preview) shows an optional button linking to https://datenatlas-zivilgesellschaft.de. - class-fields.php: field relabel + optional; Datenatlas HTML section in tab 5 - class-admin.php: save_file_attachment derives _odw_access_url/_odw_format - class-validation.php: has_valid_distribution accepts an uploaded file - admin.css: Datenatlas section styling Version 2.17.0. Tests: 151 pass, PHPStan clean, PHPCS exit 0. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01JB1xUQM892bVZ4Yv3MZjvq
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
#5 — Datei per Link oder Mediathek-Upload (wie besprochen)
has_valid_distributionakzeptiert jetzt beides, nonce-geprüft).#1 — Datenatlas veröffentlichen (Option A: Link)
https://datenatlas-zivilgesellschaft.de(neuer Tab,rel="noopener").Dateien
class-fields.php(Feld-Relabel + Datenatlas-Abschnitt),class-admin.php(save_file_attachmentleitet accessURL/Format ab),class-validation.php(Datei zählt als Distribution),admin.css.Verifikation
Noch offen (eigene PRs)
🤖 Generated with Claude Code
Generated by Claude Code