Skip to content

Claude/wordpress open data wizard mm oel#5

Merged
daimpad merged 2 commits intomainfrom
claude/wordpress-open-data-wizard-MmOEL
Apr 21, 2026
Merged

Claude/wordpress open data wizard mm oel#5
daimpad merged 2 commits intomainfrom
claude/wordpress-open-data-wizard-MmOEL

Conversation

@daimpad
Copy link
Copy Markdown
Owner

@daimpad daimpad commented Apr 21, 2026

No description provided.

claude added 2 commits April 21, 2026 13:17
Neuer Shortcode gibt eine strukturierte Download-Card im Frontend aus;
neue Shortcode-Spalte in der Admin-Übersicht für schnellen Copy-Paste.

- class-shortcode.php: Shortcode-Handler; liest _odw_theme, _odw_license,
  _odw_quality_level/score, _odw_file_id; ermittelt Dateigröße und Format
  automatisch via get_attached_file(); CSS wird nur geladen wenn der
  Shortcode tatsächlich auf der Seite verwendet wird
- assets/css/frontend.css: strukturelles Layout (Flexbox/Grid) ohne feste
  Farben oder Schriften — erbt vollständig vom aktiven Theme
- class-fields.php: File-Feld odw_file_id (→ _odw_file_id) in Tab 3 für
  Mediathek-Verknüpfung der Download-Datei
- class-admin.php: odw_shortcode-Spalte mit readonly-Input (Klick = Select)
- admin.css: .column-odw_shortcode Breite + .odw-shortcode-input Monospace-Style

https://claude.ai/code/session_013ma6QYffgnE2eKgDfh1Qgn
Beim ersten Admin-Aufruf nach der Aktivierung wird automatisch ein
vollständig befüllter Demo-Datensatz erstellt und eine einmalige
Willkommens-Notice mit fertigem Shortcode angezeigt.

- class-setup.php: on_activation() setzt nur eine Option (kein CF-Zugriff);
  maybe_create_demo() läuft auf admin_init wenn CF vollständig initialisiert
  ist; erstellt odw_dataset mit allen Meta-Feldern, CF-Distribution und
  berechnetem Qualitätsscore; importiert Beispiel-CSV in die Mediathek;
  handle_dismiss() löscht Option nach Nonce-Check + Redirect;
  render_welcome_notice() zeigt Shortcode-Input (click-to-select) + Links
- assets/sample/beispiel-datensatz.csv: 8 fiktive zivilgesellschaftliche
  Organisationen als Demo-Download
- open-data-wizard.php: class-setup.php früh laden (vor Bootstrap);
  ODW_Setup::on_activation() in odw_activate(); ODW_Setup::init() im Bootstrap

https://claude.ai/code/session_013ma6QYffgnE2eKgDfh1Qgn
@daimpad daimpad merged commit 7185bb7 into main Apr 21, 2026
0 of 10 checks passed
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