=== Noshi-Kanamer ===
Contributors: nokazehayato
Tags: developer, toolkit, pre-launch, block-editor, workflow
Requires at least: 6.2
Tested up to: 6.9
Stable tag: 0.1.0
Requires PHP: 7.4
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

A developer workflow toolkit for WordPress. Block preview, editor cleanup, test content, and pre-launch checklist — all in one screen.

== Description ==

Noshi-Kanamer is a developer-only toolkit that covers the full WordPress project lifecycle — from initial setup through client handoff.

**The philosophy**: Every feature in Noshi-Kanamer is designed to be used during development. When you're ready to hand off the site, the Pre-Launch tab handles the cleanup. Deactivate or remove it before delivery — the client gets a clean, focused WordPress install.

= Block Showcase =

Instantly render every registered block on any page or post. Insert the Block Showcase block, click "Generate Showcase", and all available blocks appear in one place — ready for client review or your own reference.

No more hunting through the block inserter to find what's available.

= Hide Blocks =

Remove unwanted default blocks (social links, YouTube embed, etc.) from the editor with a single click. Applied globally across all users — not just per-user preferences.

When you're ready to deliver, the Pre-Launch tab generates a `functions.php` snippet to make the setting permanent. Deactivate or remove the plugin without losing your configuration.

= Test Posts =

Generate flagged test posts in one click. Each post is marked internally, so you can delete all test content before launch with zero risk of touching real posts.

= Pre-Launch Cleanup =

A checklist that actually does the work. Before handing off the site, the Pre-Launch tab handles everything in one screen:

* **Delete all test posts** — removes every flagged test post instantly
* **Move Block Showcase pages to trash** — cleans up pages containing the Block Showcase block
* **Flush rewrite rules** — prevents 404 errors after migration to production
* **Search engine indexing** — detects if your site is still set to noindex, with a direct link to fix it
* **Admin email address** — shows the current email with a direct link to update it
* **WP_DEBUG status** — alerts if debug mode is still on, with a copy-paste fix
* **Persist block visibility** — generates a `functions.php` snippet to keep your Hide Blocks settings after deactivating or removing the plugin

When all tasks are complete, a **"Ready to launch"** banner confirms the site is clean and ready for handoff.

= Who is this for? =

WordPress freelancers and agencies who build sites for clients and want to eliminate the repetitive, error-prone steps before delivery.

If you've ever shipped a site with `WP_DEBUG` still on, noindex still set, or test posts still in the database — this plugin is for you.

== Installation ==

1. Upload the plugin folder to `/wp-content/plugins/noshi-kanamer`
2. Activate through the Plugins screen in WordPress
3. Go to **Tools > Noshi-Kanamer**

== Frequently Asked Questions ==

= Will deleting test posts affect my real content? =

No. Noshi-Kanamer marks each test post with a hidden flag. Only flagged posts are deleted — your real content is never touched.

= Does Hide Blocks affect all users or just me? =

It applies globally to all users on the site, using the `allowed_block_types_all` filter.

= What happens to my Hide Blocks settings when I deactivate or remove the plugin? =

Use the Pre-Launch tab to generate a `functions.php` snippet beforehand. Paste it into your theme and your block visibility settings remain permanent — even without the plugin active.

= When should I deactivate Noshi-Kanamer? =

Most engineers deactivate or remove it just before handing off the site — keeping the client's dashboard clean and focused. That said, you can always reactivate it later for maintenance, post-launch adjustments, or follow-up work.

= Why are some blocks missing from the Block Showcase? =

Blocks exclusive to Full Site Editing (FSE) — such as `core/template-part` and query pagination blocks — cannot be rendered on standard pages or posts. All blocks usable in the standard block editor are included.

== Source Code ==

The compiled JavaScript in the `build/` directory is generated from the JSX source files in `src/` using Vite. The full source code is included in the plugin package under `src/`.

== Changelog ==

= 0.1.0 =
* Initial release
