Recipe versioning, inline recipe create, recipe summary, Shopify description
Deploy / deploy (push) Successful in 15s

- Add version + product_id to recipes table (migration)
- Recipe select shows version label (e.g. "Kurkuma v2")
- Creating recipe from product page pre-fills product name, auto-increments version
- Recipe ingredient summary shown read-only below the select
- Remove package_content field (redundant with recipe ingredients)
- Pull product description from Shopify body_html on import
- Update existing products with empty description on re-import

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
Malek TellissiandClaude Sonnet 4.6 committed 2026-09-12 05:18:11 +02:00
1 parent 6e28984278
commit a7f5c4a83e
6 files changed
+74 -10

No files matched your search

@@ -0,0 +1,25 @@
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
return new class extends Migration
{
public function up(): void
{
Schema::table('recipes', function (Blueprint $table) {
$table->unsignedBigInteger('product_id')->nullable()->after('id');
$table->unsignedInteger('version')->default(1)->after('product_id');
$table->foreign('product_id')->references('id')->on('products')->nullOnDelete();
});
}
public function down(): void
{
Schema::table('recipes', function (Blueprint $table) {
$table->dropForeign(['product_id']);
$table->dropColumn(['product_id', 'version']);
});
}
};