From 9273701514dfb7284810562c4eb96fe3d0d00211 Mon Sep 17 00:00:00 2001 From: Claude Date: Sun, 17 May 2026 18:35:22 +0000 Subject: [PATCH] Move introduction from form tab to sidebar menu page MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Remove 'Einstieg' tab from form (no longer in tabbed fields) - Add 'Einstieg' as separate submenu page under Datensätze menu - Create new admin page with welcome content and guidance - Include link to create new dataset from intro page - Remove unused get_introduction_html() from Fields class - All 90 tests pass, PHPCS validates https://claude.ai/code/session_01JB1xUQM892bVZ4Yv3MZjvq --- includes/class-admin.php | 114 ++++++++++++++++++++++++++++++++++++++ includes/class-fields.php | 101 --------------------------------- 2 files changed, 114 insertions(+), 101 deletions(-) diff --git a/includes/class-admin.php b/includes/class-admin.php index c8a35fe..e908d4c 100644 --- a/includes/class-admin.php +++ b/includes/class-admin.php @@ -35,6 +35,7 @@ public static function init(): void { add_action( 'pre_get_posts', array( self::class, 'handle_meta_orderby' ) ); add_action( 'restrict_manage_posts', array( self::class, 'status_filter_dropdown' ) ); add_filter( 'parse_query', array( self::class, 'apply_status_filter' ) ); + add_action( 'admin_menu', array( self::class, 'register_introduction_page' ), 5 ); add_action( 'admin_enqueue_scripts', array( self::class, 'enqueue_assets' ) ); add_action( 'add_meta_boxes', array( self::class, 'register_help_tabs' ) ); add_action( 'load-post.php', array( self::class, 'register_help_tabs' ) ); @@ -539,4 +540,117 @@ private static function help_content_api(): string { +
+

+ +
+

+ +

+ +

+ +

+

+ +

+ +

+

+ + +

+ +

+

+
    +
  1. +
    + +
  2. +
  3. +
    + +
  4. +
  5. +
    + +
  6. +
  7. +
    + +
  8. +
  9. +
    + +
  10. +
+ +

+

+ +

+ +

+ + + +

+
+
+ + + where( 'post_type', '=', 'odw_dataset' ) ->set_priority( 'high' ) - // ----------------------------------------------------------------- - // Tab 0 — Einstieg - // ----------------------------------------------------------------- - ->add_tab( - __( '0 — Einstieg', 'open-data-wizard' ), - array( - Field::make( 'html', 'odw_introduction_html' ) - ->set_html( self::get_introduction_html() ), - ) - ) - // ----------------------------------------------------------------- // Tab 1 — Grundlegende Informationen // ----------------------------------------------------------------- @@ -620,95 +608,6 @@ public static function get_political_geocoding_level_options(): array { * * @return string HTML markup. */ - /** - * Generates the HTML for the introduction tab. - * - * @return string HTML output. - */ - private static function get_introduction_html(): string { - ob_start(); - ?> -
-

- -

- -

- -

-

- -

- -

-

- - -

- -

-

-
    -
  1. -
    - -
  2. -
  3. -
    - -
  4. -
  5. -
    - -
  6. -
  7. -
    - -
  8. -
  9. -
    - -
  10. -
- -

-

- -

- - -
-