Compare commits

..
4 Commits
Author SHA1 Message Date
elvira c1874c277e Bump version to 0.26.2 2026-09-28 13:28:21 +03:00
elvira 05f00ed1fd wishlist route fix 2026-09-28 12:49:41 +03:00
elvira 569eb310e9 Merge branch 'master' of ssh://code.radical-elements.com:2727/boboko/core 2026-09-28 12:32:21 +03:00
elvira 0387b38ab3 minor changes in checkout module css 2026-09-28 12:31:50 +03:00
6 changed files with 28 additions and 12 deletions
+14
View File
@@ -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/). 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 ## [0.26.1] - 2026-09-28
### Added ### Added
+1 -1
View File
@@ -2,7 +2,7 @@
"name": "boboko/core", "name": "boboko/core",
"description": "Core module — authentication and shared panel behaviour", "description": "Core module — authentication and shared panel behaviour",
"type": "library", "type": "library",
"version": "0.26.1", "version": "0.26.2",
"autoload": { "autoload": {
"psr-4": { "psr-4": {
"Modules\\Core\\": "src/" "Modules\\Core\\": "src/"
+1 -1
View File
@@ -1,6 +1,6 @@
{ {
"name": "@boboko/core", "name": "@boboko/core",
"version": "0.26.1", "version": "0.26.2",
"private": true, "private": true,
"type": "module", "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.", "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.",
+2 -2
View File
@@ -223,13 +223,13 @@ a.bbk-cart-item-title:hover { text-decoration: underline; }
font-size: 0.8125rem; font-size: 0.8125rem;
} }
.bbk-line-field span,
.bbk-line-field dt { .bbk-line-field dt {
color: var(--bbk-color-muted); color: var(--bbk-color-muted);
} }
.bbk-line-field dd { .bbk-line-field dd {
margin: 0; margin: 3px 0 0 0;
white-space: pre-line;
overflow-wrap: anywhere; overflow-wrap: anywhere;
} }
@@ -19,9 +19,9 @@
<dl class="bbk-line-fields"> <dl class="bbk-line-fields">
@foreach ($fields as $field) @foreach ($fields as $field)
<div class="bbk-line-field"> <div class="bbk-line-field">
<dt>{{ $field['label'] }}</dt> @if ($field['type'] === 'file')
<dd> <dt>{{ $field['label'] }}:</dt>
@if ($field['type'] === 'file') <dd>
@php @php
$file = \Modules\Core\File\Models\File::find($field['file_id'] ?? null); $file = \Modules\Core\File\Models\File::find($field['file_id'] ?? null);
@endphp @endphp
@@ -39,11 +39,12 @@
@endif @endif
<span>{{ $file->original_name }}</span> <span>{{ $file->original_name }}</span>
</a> </a>
@endif @endif
@else </dd>
{{ $field['value'] }} @else
@endif <span>{{ $field['label'] }}: {{ $field['value'] }}</span>
</dd> @endif
</div> </div>
@endforeach @endforeach
</dl> </dl>
+2 -1
View File
@@ -3,6 +3,7 @@
namespace Modules\Core\Providers; namespace Modules\Core\Providers;
use Illuminate\Support\Facades\Event; use Illuminate\Support\Facades\Event;
use Illuminate\Support\Facades\Route;
use Illuminate\Support\ServiceProvider; use Illuminate\Support\ServiceProvider;
use Modules\Core\Auth\Events\UserAuthenticated; use Modules\Core\Auth\Events\UserAuthenticated;
use Modules\Core\Wishlist\Listeners\MergeGuestWishlistOnLogin; use Modules\Core\Wishlist\Listeners\MergeGuestWishlistOnLogin;
@@ -19,7 +20,7 @@ class WishlistServiceProvider extends ServiceProvider
public function boot(): void 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); Event::listen(UserAuthenticated::class, MergeGuestWishlistOnLogin::class);
} }