Add recipe versioning: auto-bump on change, history sub-page
Deploy / deploy (push) Successful in 16s
Deploy / deploy (push) Successful in 16s
Each time the recipe name or spices are changed on the product edit
page, a new version is created instead of overwriting the current one.
Unchanged saves are skipped. A 'Rezept-Versionen' button opens a
sub-page (/produkt/{id}/rezept-versionen) listing all versions with
their spices and timestamps; the active version is highlighted in green.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
1 parent
4775cffaae
commit
a7e7375edd
4 files changed
+128
-21
No files matched your search
@@ -193,9 +193,10 @@ class ProductResource extends Resource {
|
||||
|
||||
public static function getPages(): array {
|
||||
return [
|
||||
'index' => Pages\ListProducts::route('/'),
|
||||
'create' => Pages\CreateProduct::route('/create'),
|
||||
'edit' => Pages\EditProduct::route('/{record}/edit'),
|
||||
'index' => Pages\ListProducts::route('/'),
|
||||
'create' => Pages\CreateProduct::route('/create'),
|
||||
'edit' => Pages\EditProduct::route('/{record}/edit'),
|
||||
'recipe-history' => Pages\RecipeHistory::route('/{record}/rezept-versionen'),
|
||||
];
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user