fix: store menu 404, logger crash, platform detection, and sidebar UX
All checks were successful
All checks were successful
- Fix store menu API URL (/store/menu/render/store, not /store/core/...) - Fix storeLog/merchantLog fallback to console object instead of console.log - Embed platform_id/platform_code in store JWT from URL context at login - Use token_platform_id in store menu endpoint with DB fallback for old tokens - Add "Menu unavailable" warning in sidebar fallback for all three frontends - Standardize admin section default to all-open (consistent with store/merchant) Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -86,7 +86,7 @@
|
||||
</template>
|
||||
</div>
|
||||
|
||||
<!-- Fallback: static dashboard link (if menu API fails) -->
|
||||
<!-- Fallback: static dashboard link + warning (if menu API fails) -->
|
||||
<div x-show="!menuLoading && !menuData" x-cloak>
|
||||
<ul class="mt-6">
|
||||
<li class="relative px-6 py-3">
|
||||
@@ -99,6 +99,11 @@
|
||||
</a>
|
||||
</li>
|
||||
</ul>
|
||||
<div class="px-6 mt-4">
|
||||
<p class="text-xs text-gray-400 dark:text-gray-500">
|
||||
Menu unavailable. Showing default items only.
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- Quick Actions (static, outside dynamic menu) -->
|
||||
|
||||
Reference in New Issue
Block a user