Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
c1874c277e | ||
|
|
05f00ed1fd | ||
|
|
569eb310e9 | ||
|
|
0387b38ab3 |
@@ -4,6 +4,20 @@ All notable changes to this project will be documented in this file.
|
||||
|
||||
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/).
|
||||
|
||||
## [0.26.2] - 2026-09-28
|
||||
|
||||
### Changed
|
||||
- Checkout line-item custom fields (`checkout/partials/line-custom-fields.blade.php`):
|
||||
non-file fields now render inline as a single muted `Label: value` line instead of a
|
||||
separate `<dt>`/`<dd>` pair. File fields keep the stacked label/link layout, with a
|
||||
colon after the label and a small top margin on the value.
|
||||
|
||||
### Fixed
|
||||
- Wishlist routes are now registered inside the `web` middleware group
|
||||
(`WishlistServiceProvider`). Before, `loadRoutesFrom()` loaded them with no middleware,
|
||||
so they had no session, cookies, CSRF protection or authenticated user. That broke
|
||||
anything that depends on the current guest or logged-in user.
|
||||
|
||||
## [0.26.1] - 2026-09-28
|
||||
|
||||
### Added
|
||||
|
||||
+1
-1
@@ -2,7 +2,7 @@
|
||||
"name": "boboko/core",
|
||||
"description": "Core module — authentication and shared panel behaviour",
|
||||
"type": "library",
|
||||
"version": "0.26.1",
|
||||
"version": "0.26.2",
|
||||
"autoload": {
|
||||
"psr-4": {
|
||||
"Modules\\Core\\": "src/"
|
||||
|
||||
+1
-1
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@boboko/core",
|
||||
"version": "0.26.1",
|
||||
"version": "0.26.2",
|
||||
"private": true,
|
||||
"type": "module",
|
||||
"description": "Portable Stimulus controllers and styles for boboko-core's cart + checkout module. Installed as a real npm dependency (file:../boboko-core in dev, a tagged git install in prod) so a consuming app's `npm install` resolves this package's own dependencies (leaflet, @hotwired/stimulus) transitively, the same way `composer update boboko/*` does for PHP. See CONTRIBUTE.md's \"JS/CSS: a real npm package\" section.",
|
||||
|
||||
@@ -223,13 +223,13 @@ a.bbk-cart-item-title:hover { text-decoration: underline; }
|
||||
font-size: 0.8125rem;
|
||||
}
|
||||
|
||||
.bbk-line-field span,
|
||||
.bbk-line-field dt {
|
||||
color: var(--bbk-color-muted);
|
||||
}
|
||||
|
||||
.bbk-line-field dd {
|
||||
margin: 0;
|
||||
white-space: pre-line;
|
||||
margin: 3px 0 0 0;
|
||||
overflow-wrap: anywhere;
|
||||
}
|
||||
|
||||
|
||||
@@ -19,9 +19,9 @@
|
||||
<dl class="bbk-line-fields">
|
||||
@foreach ($fields as $field)
|
||||
<div class="bbk-line-field">
|
||||
<dt>{{ $field['label'] }}</dt>
|
||||
<dd>
|
||||
@if ($field['type'] === 'file')
|
||||
@if ($field['type'] === 'file')
|
||||
<dt>{{ $field['label'] }}:</dt>
|
||||
<dd>
|
||||
@php
|
||||
$file = \Modules\Core\File\Models\File::find($field['file_id'] ?? null);
|
||||
@endphp
|
||||
@@ -39,11 +39,12 @@
|
||||
@endif
|
||||
<span>{{ $file->original_name }}</span>
|
||||
</a>
|
||||
|
||||
@endif
|
||||
@else
|
||||
{{ $field['value'] }}
|
||||
@endif
|
||||
</dd>
|
||||
</dd>
|
||||
@else
|
||||
<span>{{ $field['label'] }}: {{ $field['value'] }}</span>
|
||||
@endif
|
||||
</div>
|
||||
@endforeach
|
||||
</dl>
|
||||
|
||||
@@ -3,6 +3,7 @@
|
||||
namespace Modules\Core\Providers;
|
||||
|
||||
use Illuminate\Support\Facades\Event;
|
||||
use Illuminate\Support\Facades\Route;
|
||||
use Illuminate\Support\ServiceProvider;
|
||||
use Modules\Core\Auth\Events\UserAuthenticated;
|
||||
use Modules\Core\Wishlist\Listeners\MergeGuestWishlistOnLogin;
|
||||
@@ -19,7 +20,7 @@ class WishlistServiceProvider extends ServiceProvider
|
||||
|
||||
public function boot(): void
|
||||
{
|
||||
$this->loadRoutesFrom(__DIR__.'/../Wishlist/routes/web.php');
|
||||
Route::middleware('web')->group(__DIR__.'/../Wishlist/routes/web.php');
|
||||
|
||||
Event::listen(UserAuthenticated::class, MergeGuestWishlistOnLogin::class);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user