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

Developer tools for WordPress freelancers and agencies. Hide blocks, manage test content, and run a pre-launch cleanup 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.

= Is this a developer tool or a client-facing plugin? =

It's purely a developer tool — designed for WordPress freelancers and agencies during the build phase. It is not intended for clients. We recommend deactivating or removing it before handing off the site.

= Can I use this for WordPress client handoff? =

Yes. The Pre-Launch Cleanup tab is specifically designed for client handoff: it deletes test content, flushes rewrite rules, checks WP_DEBUG status, and confirms search engine indexing — all in one screen.

== 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/`.

== Screenshots ==

1. Hide Blocks — remove unwanted blocks from the editor with a single click, applied globally across all users.
2. Block Showcase — open any page or post in the block editor, insert the Block Showcase block, click "Generate Showcase", and all registered blocks appear in one place.
3. Test Posts — generate flagged dummy posts for testing, then delete them all at once without touching real content.
4. Pre-Launch tab — "Ready to launch" banner confirms the site is clean and ready for client handoff.

== Upgrade Notice ==

= 0.1.2 =
Confirmed compatibility with WordPress 7.0. Screenshots updated to reflect the new admin UI. No code changes.

= 0.1.1 =
Pre-Launch now shows a review nudge once a day — not pushy, just a small ask.
Your feedback genuinely helps us improve.

== Changelog ==

= 0.1.2 =
* Confirmed compatibility with WordPress 7.0
* Updated screenshots to reflect the WordPress 7.0 admin UI

= 0.1.1 =
* Added: After completing Pre-Launch, a gentle review nudge appears once per
  day. We'd love to hear how it's working for you — even a quick note helps
  a lot!

= 0.1.0 =
* Initial release
