Compare commits
4 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| d8964da36f | |||
| 51946a1388 | |||
| cf0d6ee62a | |||
| c2d6fd1b17 |
@@ -0,0 +1,119 @@
|
|||||||
|
@using Microsoft.AspNetCore.Components.Forms
|
||||||
|
|
||||||
|
<div class="create-product-container">
|
||||||
|
<EditForm Model="@ProductModel" OnValidSubmit="HandleValidSubmit" class="form-entry-canvas">
|
||||||
|
<DataAnnotationsValidator />
|
||||||
|
|
||||||
|
<div class="form-scroll-viewport">
|
||||||
|
<div class="form-section-header">
|
||||||
|
<span class="panel-title-lbl field-accent-tag">Initialization Sequence</span>
|
||||||
|
<p class="text-muted">Register a new asset node into the core product catalog matrix.</p>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="form-grid-layout">
|
||||||
|
|
||||||
|
<div class="form-column">
|
||||||
|
<div class="console-field-group">
|
||||||
|
<label class="console-field-label">Product Name</label>
|
||||||
|
<InputText @bind-Value="ProductModel.Name" placeholder="e.g., Quantum Link Core Subsystem" class="console-input" />
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="console-field-group">
|
||||||
|
<label class="console-field-label">Telemetry Short Summary</label>
|
||||||
|
<InputText @bind-Value="ProductModel.Summary" placeholder="Brief technical summary tooltip description..." class="console-input" />
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="console-field-group">
|
||||||
|
<label class="console-field-label">Deep System Description</label>
|
||||||
|
<InputTextArea @bind-Value="ProductModel.Description" rows="5" placeholder="Provide raw configuration guidelines, catalog notes, or full logistical parameters..." class="console-textarea" />
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="form-column">
|
||||||
|
<div class="console-field-group">
|
||||||
|
<label class="console-field-label">Primary Engine Asset (Image URL)</label>
|
||||||
|
<div class="input-asset-addon">
|
||||||
|
<InputText @bind-Value="ProductModel.ImageUrl" placeholder="https://assets.litecharms.internal/nodes/primary.png" class="console-input asset-path-input" />
|
||||||
|
<div class="asset-preview-stub">
|
||||||
|
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><rect x="3" y="3" width="18" height="18" rx="2" ry="2" /><circle cx="8.5" cy="8.5" r="1.5" /><polyline points="21 15 16 10 5 21" /></svg>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="console-field-group spacing-top-modifier">
|
||||||
|
<label class="console-field-label">
|
||||||
|
Telemetry Media Thumbnails <span class="text-mono node-dim-label">(Max 5 Slots)</span>
|
||||||
|
</label>
|
||||||
|
|
||||||
|
<div class="thumbnail-deck-grid">
|
||||||
|
@for (int i = 0; i < 5; i++)
|
||||||
|
{
|
||||||
|
var index = i;
|
||||||
|
<div class="thumbnail-slot-node @(HasAssetAt(index) ? "populated" : "empty")">
|
||||||
|
@if (HasAssetAt(index))
|
||||||
|
{
|
||||||
|
<img src="@ProductModel.Thumbnails[index]" alt="Slot @(index + 1)" />
|
||||||
|
<button type="button" class="btn-clear-slot" @onclick="() => RemoveThumbnailAt(index)">✕</button>
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
<div class="empty-slot-blueprint">
|
||||||
|
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.5"><line x1="12" y1="5" x2="12" y2="19"></line><line x1="5" y1="12" x2="19" y2="12"></line></svg>
|
||||||
|
<span class="text-mono">0@(index + 1)</span>
|
||||||
|
</div>
|
||||||
|
}
|
||||||
|
</div>
|
||||||
|
}
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="form-action-footer">
|
||||||
|
<button type="button" class="btn-console-flat">Abort Registers</button>
|
||||||
|
<button type="submit" class="btn-apply-filters">Commit Node to Ledger</button>
|
||||||
|
</div>
|
||||||
|
</EditForm>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
@code {
|
||||||
|
private Product ProductModel { get; set; } = new();
|
||||||
|
|
||||||
|
protected override void OnInitialized()
|
||||||
|
{
|
||||||
|
ProductModel.Active = true;
|
||||||
|
ProductModel.Thumbnails ??= new string[0];
|
||||||
|
}
|
||||||
|
|
||||||
|
private bool HasAssetAt(int index) =>
|
||||||
|
ProductModel.Thumbnails != null && index < ProductModel.Thumbnails.Length && !string.IsNullOrWhiteSpace(ProductModel.Thumbnails[index]);
|
||||||
|
|
||||||
|
private void RemoveThumbnailAt(int index)
|
||||||
|
{
|
||||||
|
if (ProductModel.Thumbnails == null) return;
|
||||||
|
var list = ProductModel.Thumbnails.ToList();
|
||||||
|
if (index < list.Count)
|
||||||
|
{
|
||||||
|
list.RemoveAt(index);
|
||||||
|
ProductModel.Thumbnails = list.ToArray();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
private void HandleValidSubmit()
|
||||||
|
{
|
||||||
|
// Save operation business logic goes here
|
||||||
|
}
|
||||||
|
|
||||||
|
public class Product
|
||||||
|
{
|
||||||
|
public Guid Id { get; set; } = Guid.NewGuid();
|
||||||
|
public string? Name { get; set; }
|
||||||
|
public string? Summary { get; set; }
|
||||||
|
public string? Description { get; set; }
|
||||||
|
public string? ImageUrl { get; set; }
|
||||||
|
public string[]? Thumbnails { get; set; }
|
||||||
|
public bool Active { get; set; }
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1,5 @@
|
|||||||
|
namespace ShopAdmin.Components;
|
||||||
|
|
||||||
|
public partial class CreateProduct
|
||||||
|
{
|
||||||
|
}
|
||||||
@@ -0,0 +1,275 @@
|
|||||||
|
/* Core Structural Layout Space Configuration */
|
||||||
|
.create-product-container {
|
||||||
|
display: flex;
|
||||||
|
flex-direction: column;
|
||||||
|
height: 100%;
|
||||||
|
width: 100%;
|
||||||
|
}
|
||||||
|
|
||||||
|
.form-entry-canvas {
|
||||||
|
display: flex;
|
||||||
|
flex-direction: column;
|
||||||
|
height: 100%;
|
||||||
|
width: 100%;
|
||||||
|
}
|
||||||
|
|
||||||
|
.form-scroll-viewport {
|
||||||
|
padding: 2.5rem;
|
||||||
|
flex: 1;
|
||||||
|
overflow-y: auto;
|
||||||
|
}
|
||||||
|
|
||||||
|
.form-section-header {
|
||||||
|
margin-bottom: 2.5rem;
|
||||||
|
border-bottom: 1px solid rgba(255, 255, 255, 0.03);
|
||||||
|
padding-bottom: 1.25rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
.field-accent-tag {
|
||||||
|
font-size: 1rem;
|
||||||
|
letter-spacing: 0.02em;
|
||||||
|
color: #ffffff !important;
|
||||||
|
font-weight: 600;
|
||||||
|
}
|
||||||
|
|
||||||
|
.form-section-header p {
|
||||||
|
margin-top: 0.4rem;
|
||||||
|
font-size: 0.85rem;
|
||||||
|
color: #64748b;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Precise Balanced Grid Matrix Layout */
|
||||||
|
.form-grid-layout {
|
||||||
|
display: grid;
|
||||||
|
grid-template-columns: repeat(2, minmax(0, 1fr));
|
||||||
|
gap: 3.5rem;
|
||||||
|
align-items: start;
|
||||||
|
}
|
||||||
|
|
||||||
|
.form-column {
|
||||||
|
display: flex;
|
||||||
|
flex-direction: column;
|
||||||
|
gap: 2rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Brand Metric Console Inputs Architecture */
|
||||||
|
.console-field-group {
|
||||||
|
display: flex;
|
||||||
|
flex-direction: column;
|
||||||
|
gap: 0.75rem;
|
||||||
|
width: 100%;
|
||||||
|
}
|
||||||
|
|
||||||
|
.console-field-label {
|
||||||
|
font-size: 0.88rem;
|
||||||
|
font-weight: 500;
|
||||||
|
color: #cbd5e1;
|
||||||
|
letter-spacing: 0.01em;
|
||||||
|
user-select: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
.node-dim-label {
|
||||||
|
color: #475569;
|
||||||
|
font-size: 0.75rem;
|
||||||
|
margin-left: 0.25rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* High-Fidelity Branded Form Controls */
|
||||||
|
.console-input, .console-textarea {
|
||||||
|
width: 100%;
|
||||||
|
background: #060b13;
|
||||||
|
border: 1px solid #1e293b;
|
||||||
|
border-radius: 6px;
|
||||||
|
padding: 0.9rem 1.1rem;
|
||||||
|
color: #f8fafc;
|
||||||
|
font-size: 0.92rem;
|
||||||
|
font-family: inherit;
|
||||||
|
outline: none;
|
||||||
|
transition: border-color 0.2s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.2s cubic-bezier(0.4, 0, 0.2, 1);
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Component Placeholder Styling */
|
||||||
|
.console-input::placeholder, .console-textarea::placeholder {
|
||||||
|
color: #334155;
|
||||||
|
font-size: 0.88rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Branded Interactive Focus Transitions */
|
||||||
|
.console-input:focus, .console-textarea:focus {
|
||||||
|
border-color: #00f2fe;
|
||||||
|
box-shadow: 0 0 0 1px #00f2fe;
|
||||||
|
}
|
||||||
|
|
||||||
|
.console-textarea {
|
||||||
|
resize: none;
|
||||||
|
line-height: 1.6;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Asset URL Composite Field Layout Extensions */
|
||||||
|
.input-asset-addon {
|
||||||
|
display: flex;
|
||||||
|
align-items: stretch;
|
||||||
|
width: 100%;
|
||||||
|
}
|
||||||
|
|
||||||
|
.asset-path-input {
|
||||||
|
border-top-right-radius: 0;
|
||||||
|
border-bottom-right-radius: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
.asset-preview-stub {
|
||||||
|
background: #0b131f;
|
||||||
|
border: 1px solid #1e293b;
|
||||||
|
border-left: none;
|
||||||
|
border-top-right-radius: 6px;
|
||||||
|
border-bottom-right-radius: 6px;
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
justify-content: center;
|
||||||
|
width: 54px;
|
||||||
|
color: #475569;
|
||||||
|
flex-shrink: 0;
|
||||||
|
transition: border-color 0.2s ease, color 0.2s ease;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Keep addon stub borders synced during primary field focus */
|
||||||
|
.input-asset-addon:focus-within .asset-path-input {
|
||||||
|
border-color: #00f2fe;
|
||||||
|
}
|
||||||
|
|
||||||
|
.input-asset-addon:focus-within .asset-preview-stub {
|
||||||
|
border-color: #00f2fe;
|
||||||
|
color: #00f2fe;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Layout Space Tuning Adjustments for Media Sections */
|
||||||
|
.spacing-top-modifier {
|
||||||
|
margin-top: 0.25rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* 5-Item Array Asset Matrix Grid */
|
||||||
|
.thumbnail-deck-grid {
|
||||||
|
display: grid;
|
||||||
|
grid-template-columns: repeat(5, minmax(0, 1fr));
|
||||||
|
gap: 0.85rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
.thumbnail-slot-node {
|
||||||
|
aspect-ratio: 1 / 1;
|
||||||
|
background: #060b13;
|
||||||
|
border: 1px dashed #1e293b;
|
||||||
|
border-radius: 6px;
|
||||||
|
position: relative;
|
||||||
|
overflow: hidden;
|
||||||
|
transition: border-color 0.2s ease, background 0.2s ease;
|
||||||
|
}
|
||||||
|
|
||||||
|
.thumbnail-slot-node.empty:hover {
|
||||||
|
border-color: #ff5722;
|
||||||
|
background: rgba(255, 87, 34, 0.02);
|
||||||
|
}
|
||||||
|
|
||||||
|
.empty-slot-blueprint {
|
||||||
|
display: flex;
|
||||||
|
flex-direction: column;
|
||||||
|
align-items: center;
|
||||||
|
justify-content: center;
|
||||||
|
height: 100%;
|
||||||
|
color: #334155;
|
||||||
|
gap: 0.35rem;
|
||||||
|
user-select: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
.empty-slot-blueprint svg {
|
||||||
|
width: 16px;
|
||||||
|
height: 16px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.empty-slot-blueprint span {
|
||||||
|
font-size: 0.65rem;
|
||||||
|
font-family: monospace;
|
||||||
|
letter-spacing: 0.02em;
|
||||||
|
}
|
||||||
|
|
||||||
|
.thumbnail-slot-node.populated {
|
||||||
|
border-style: solid;
|
||||||
|
border-color: #1e293b;
|
||||||
|
}
|
||||||
|
|
||||||
|
.thumbnail-slot-node.populated img {
|
||||||
|
width: 100%;
|
||||||
|
height: 100%;
|
||||||
|
object-fit: cover;
|
||||||
|
}
|
||||||
|
|
||||||
|
.btn-clear-slot {
|
||||||
|
position: absolute;
|
||||||
|
top: 4px;
|
||||||
|
right: 4px;
|
||||||
|
background: #0f172a;
|
||||||
|
border: 1px solid #334155;
|
||||||
|
color: #cbd5e1;
|
||||||
|
border-radius: 4px;
|
||||||
|
width: 18px;
|
||||||
|
height: 18px;
|
||||||
|
font-size: 0.65rem;
|
||||||
|
cursor: pointer;
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
justify-content: center;
|
||||||
|
opacity: 0;
|
||||||
|
transition: opacity 0.15s ease, border-color 0.15s ease;
|
||||||
|
}
|
||||||
|
|
||||||
|
.btn-clear-slot:hover {
|
||||||
|
border-color: #ff5722;
|
||||||
|
color: #ff5722;
|
||||||
|
}
|
||||||
|
|
||||||
|
.thumbnail-slot-node.populated:hover .btn-clear-slot {
|
||||||
|
opacity: 1;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Form Action Control Bar Layout */
|
||||||
|
.form-action-footer {
|
||||||
|
padding: 1.5rem 2.5rem;
|
||||||
|
background: #04080f;
|
||||||
|
border-top: 1px solid #1e293b;
|
||||||
|
display: flex;
|
||||||
|
justify-content: flex-end;
|
||||||
|
gap: 1.5rem;
|
||||||
|
align-items: center;
|
||||||
|
}
|
||||||
|
|
||||||
|
.btn-console-flat {
|
||||||
|
background: transparent;
|
||||||
|
border: none;
|
||||||
|
color: #64748b;
|
||||||
|
font-size: 0.9rem;
|
||||||
|
font-weight: 500;
|
||||||
|
cursor: pointer;
|
||||||
|
padding: 0.6rem 1.2rem;
|
||||||
|
border-radius: 4px;
|
||||||
|
transition: color 0.2s ease;
|
||||||
|
}
|
||||||
|
|
||||||
|
.btn-console-flat:hover {
|
||||||
|
color: #f1f5f9;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Using your brand active cyan color for submission commits */
|
||||||
|
.btn-apply-filters {
|
||||||
|
background: #00f2fe;
|
||||||
|
border: none;
|
||||||
|
color: #060b13;
|
||||||
|
font-weight: 600;
|
||||||
|
font-size: 0.9rem;
|
||||||
|
padding: 0.75rem 1.5rem;
|
||||||
|
border-radius: 4px;
|
||||||
|
cursor: pointer;
|
||||||
|
transition: background-color 0.2s ease, opacity 0.2s ease;
|
||||||
|
}
|
||||||
|
|
||||||
|
.btn-apply-filters:hover {
|
||||||
|
background: #00d8e4;
|
||||||
|
}
|
||||||
@@ -0,0 +1,258 @@
|
|||||||
|
@page "/notifications"
|
||||||
|
@using Blazored.Toast
|
||||||
|
@using Microsoft.AspNetCore.Components.QuickGrid
|
||||||
|
@rendermode RenderMode.InteractiveServer
|
||||||
|
|
||||||
|
<PageTitle>Notifications | Shop Console</PageTitle>
|
||||||
|
|
||||||
|
<div class="workspace-ambient-backdrop"></div>
|
||||||
|
|
||||||
|
@if (NotificationQueryable == null && IsLoading)
|
||||||
|
{
|
||||||
|
<div class="initial-page-fullscreen-loader">
|
||||||
|
<div class="loader-content">
|
||||||
|
<span class="spinner"></span>
|
||||||
|
<p>Initializing Operational Console registers...</p>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
}
|
||||||
|
|
||||||
|
<div class="console-workspace">
|
||||||
|
|
||||||
|
<div class="page-header">
|
||||||
|
<div>
|
||||||
|
<h2>System Logs & Notifications</h2>
|
||||||
|
<p class="text-muted">Inbound and outbound communication engine event log tracking.</p>
|
||||||
|
</div>
|
||||||
|
<button class="btn-refresh" @onclick="HandleRefreshClickAsync" disabled="@IsLoading">
|
||||||
|
<svg class="refresh-icon @(IsLoading ? "spinning" : "")" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
|
||||||
|
<path d="M21.5 2v6h-6M21.34 15.57a10 10 0 1 1-.57-8.38l5.67-5.67" />
|
||||||
|
</svg>
|
||||||
|
Sync Console
|
||||||
|
</button>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="dashboard-control-deck">
|
||||||
|
|
||||||
|
<div class="top-row-panels">
|
||||||
|
<div class="mini-table-card shadow-card">
|
||||||
|
<span class="panel-title-lbl">Operational Inventory</span>
|
||||||
|
<table class="dashboard-mini-table">
|
||||||
|
<thead>
|
||||||
|
<tr>
|
||||||
|
<th>Metric Item</th>
|
||||||
|
<th>Telemetry Node</th>
|
||||||
|
<th style="text-align: right;">Register</th>
|
||||||
|
</tr>
|
||||||
|
</thead>
|
||||||
|
<tbody>
|
||||||
|
<tr>
|
||||||
|
<td>Total Inbound Volume</td>
|
||||||
|
<td class="node-dim">Core-System</td>
|
||||||
|
<td class="text-cyan text-mono">@TotalCount</td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td>Operational Failures</td>
|
||||||
|
<td class="node-dim">Fault-Engine</td>
|
||||||
|
<td class="text-red text-mono">@ErrorCount</td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td>Pending Dispatches</td>
|
||||||
|
<td class="node-dim">Queue-Worker</td>
|
||||||
|
<td class="text-yellow text-mono">@PendingCount</td>
|
||||||
|
</tr>
|
||||||
|
</tbody>
|
||||||
|
</table>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="radial-gauge-card shadow-card">
|
||||||
|
<span class="panel-title-lbl">Health Efficiency</span>
|
||||||
|
<div class="gauge-presentation-box">
|
||||||
|
<div class="svg-gauge-container">
|
||||||
|
<svg class="gauge-ring-matrix" viewBox="0 0 36 36">
|
||||||
|
<path class="gauge-bg-track" d="M18 2.0845 a 15.9155 15.9155 0 0 1 0 31.831 a 15.9155 15.9155 0 0 1 0 -31.831" />
|
||||||
|
<path class="gauge-active-fill text-purple" stroke-dasharray="@SuccessRate, 100" d="M18 2.0845 a 15.9155 15.9155 0 0 1 0 31.831 a 15.9155 15.9155 0 0 1 0 -31.831" />
|
||||||
|
</svg>
|
||||||
|
<div class="gauge-center-text text-purple">@SuccessRate%</div>
|
||||||
|
</div>
|
||||||
|
<div class="svg-gauge-container">
|
||||||
|
<svg class="gauge-ring-matrix" viewBox="0 0 36 36">
|
||||||
|
<path class="gauge-bg-track" d="M18 2.0845 a 15.9155 15.9155 0 0 1 0 31.831 a 15.9155 15.9155 0 0 1 0 -31.831" />
|
||||||
|
<path class="gauge-active-fill text-cyan" stroke-dasharray="@(TotalCount > 0 ? Math.Round(((double)PendingCount / TotalCount) * 100) : 0), 100" d="M18 2.0845 a 15.9155 15.9155 0 0 1 0 31.831 a 15.9155 15.9155 0 0 1 0 -31.831" />
|
||||||
|
</svg>
|
||||||
|
<div class="gauge-center-text text-cyan">@((TotalCount > 0) ? Math.Round(((double)PendingCount / TotalCount) * 100) : 0)%</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="filter-panel shadow-card">
|
||||||
|
<span class="panel-title-lbl" style="margin-bottom:1.25rem; display:block;">Telemetry Filters</span>
|
||||||
|
|
||||||
|
<div class="filter-grid-form">
|
||||||
|
<div class="input-wrapper full-width">
|
||||||
|
<label>Search Text</label>
|
||||||
|
<input type="text" placeholder="Search subject, sender or recipient..." @bind-value="SearchFilter" @bind-value:event="oninput" />
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="input-wrapper">
|
||||||
|
<label>From Date</label>
|
||||||
|
<div class="themed-date-picker-box">
|
||||||
|
<input type="date" @bind="FromDate" @bind:after="LoadNotificationDataAsync" />
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="input-wrapper">
|
||||||
|
<label>To Date</label>
|
||||||
|
<div class="themed-date-picker-box">
|
||||||
|
<input type="date" @bind="ToDate" @bind:after="LoadNotificationDataAsync" />
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="input-wrapper">
|
||||||
|
<label>Max Records</label>
|
||||||
|
<div class="themed-dropdown-box">
|
||||||
|
<select @bind="MaxRecords">
|
||||||
|
<option value="50">50 rows</option>
|
||||||
|
<option value="100">100 rows</option>
|
||||||
|
<option value="500">500 rows</option>
|
||||||
|
</select>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="input-wrapper action-wrapper">
|
||||||
|
<button class="btn-apply-filters" @onclick="HandleRefreshClickAsync" disabled="@IsLoading">Apply</button>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="trend-spline-card shadow-card full-width-row">
|
||||||
|
<span class="panel-title-lbl">Operational Load Density Timeline</span>
|
||||||
|
<div class="vector-chart-viewport">
|
||||||
|
<svg class="area-spline-graph" viewBox="0 0 500 100" preserveAspectRatio="none">
|
||||||
|
<defs>
|
||||||
|
<linearGradient id="purpleGlow" x1="0" y1="0" x2="0" y2="1">
|
||||||
|
<stop offset="0%" stop-color="#bd00ff" stop-opacity="0.25" />
|
||||||
|
<stop offset="100%" stop-color="#bd00ff" stop-opacity="0.0" />
|
||||||
|
</linearGradient>
|
||||||
|
</defs>
|
||||||
|
<path class="area-fill-path" d="M 0 90 Q 50 85, 100 60 T 200 45 T 300 80 T 400 30 T 500 15 L 500 100 L 0 100 Z" fill="url(#purpleGlow)" />
|
||||||
|
<path class="line-stroke-path" d="M 0 90 Q 50 85, 100 60 T 200 45 T 300 80 T 400 30 T 500 15" fill="none" stroke="#bd00ff" stroke-width="2" />
|
||||||
|
</svg>
|
||||||
|
<div class="chart-axis-labels">
|
||||||
|
<span>04/17</span>
|
||||||
|
<span>04/24</span>
|
||||||
|
<span>05/01</span>
|
||||||
|
<span>05/08</span>
|
||||||
|
<span>05/17</span>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||
|
@if (NotificationQueryable == null && IsLoading)
|
||||||
|
{
|
||||||
|
<div class="grid-inline-loading-veil">
|
||||||
|
<div class="veil-content">
|
||||||
|
<div class="console-sync-loader">
|
||||||
|
<div class="inner-ring"></div>
|
||||||
|
<div class="outer-ring"></div>
|
||||||
|
</div>
|
||||||
|
<p class="sync-text">Syncing system log registers...</p>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
<div class="grid-card-wrapper full-width-table relative-grid-container">
|
||||||
|
|
||||||
|
@if (IsLoading)
|
||||||
|
{
|
||||||
|
<div class="grid-inline-loading-veil">
|
||||||
|
<div class="veil-content">
|
||||||
|
<span class="spinner"></span>
|
||||||
|
<p>Syncing system log registers...</p>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
}
|
||||||
|
|
||||||
|
<QuickGrid Items="@NotificationQueryable" Pagination="@Pagination" RowClass="@GetRowClass">
|
||||||
|
|
||||||
|
<TemplateColumn Title="Origin" SortBy="@SortByOrigin" Sortable="true">
|
||||||
|
<div class="origin-composite">
|
||||||
|
<span class="platform-lbl">@context.Platform</span>
|
||||||
|
<span class="direction-lbl text-muted">@context.Direction</span>
|
||||||
|
</div>
|
||||||
|
</TemplateColumn>
|
||||||
|
|
||||||
|
<TemplateColumn Title="Priority" SortBy="@SortByPriority" Sortable="true">
|
||||||
|
<span class="priority-tag @context.Priority.ToString().ToLower()">
|
||||||
|
@context.Priority
|
||||||
|
</span>
|
||||||
|
</TemplateColumn>
|
||||||
|
|
||||||
|
<PropertyColumn Property="@(n => n.CreatedAt)" Title="Created At" Format="yyyy-MM-dd HH:mm" Sortable="true" />
|
||||||
|
|
||||||
|
<TemplateColumn Title="Sender" SortBy="@SortBySender" Sortable="true">
|
||||||
|
<div class="contact-composite" title="@context.SenderAddress">
|
||||||
|
<span class="contact-name">@(string.IsNullOrWhiteSpace(context.SenderName) ? "System Core" : context.SenderName)</span>
|
||||||
|
<span class="contact-email text-muted">@context.SenderAddress</span>
|
||||||
|
</div>
|
||||||
|
</TemplateColumn>
|
||||||
|
|
||||||
|
<TemplateColumn Title="Subject" SortBy="@SortBySubject" Sortable="true">
|
||||||
|
<div class="subject-cell">
|
||||||
|
<span class="subject-text" title="@context.Subject">@context.Subject</span>
|
||||||
|
@if (!string.IsNullOrWhiteSpace(context.Message))
|
||||||
|
{
|
||||||
|
<span class="message-subtext text-muted" title="@context.Message">@context.Message</span>
|
||||||
|
}
|
||||||
|
</div>
|
||||||
|
</TemplateColumn>
|
||||||
|
|
||||||
|
<TemplateColumn Title="Recipient" SortBy="@SortByRecipient" Sortable="true">
|
||||||
|
<div class="contact-composite" title="@context.RecipientAddress">
|
||||||
|
<span class="contact-name">@context.RecipientName</span>
|
||||||
|
<span class="contact-email text-muted">@context.RecipientAddress</span>
|
||||||
|
</div>
|
||||||
|
</TemplateColumn>
|
||||||
|
|
||||||
|
<TemplateColumn Title="Status" SortBy="@SortByStatus" Sortable="true" Align="Align.Center">
|
||||||
|
@if (context.HasError)
|
||||||
|
{
|
||||||
|
<span class="status-indicator alert-text">✕ Error</span>
|
||||||
|
}
|
||||||
|
else if (context.Processed)
|
||||||
|
{
|
||||||
|
<span class="status-indicator success-text">✓ Processed</span>
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
<span class="status-indicator idle-text">⚙ Pending</span>
|
||||||
|
}
|
||||||
|
</TemplateColumn>
|
||||||
|
|
||||||
|
<TemplateColumn Align="Align.Right">
|
||||||
|
@if (context.HasError)
|
||||||
|
{
|
||||||
|
<button class="grid-retry-btn" @onclick="() => HandleRetryRowAsync(context)">
|
||||||
|
Retry
|
||||||
|
</button>
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
@((MarkupString)" ")
|
||||||
|
}
|
||||||
|
</TemplateColumn>
|
||||||
|
|
||||||
|
</QuickGrid>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="grid-paginator-wrapper">
|
||||||
|
<Paginator State="@Pagination" />
|
||||||
|
</div>
|
||||||
|
}
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<BlazoredToasts />
|
||||||
@@ -0,0 +1,144 @@
|
|||||||
|
using LiteCharms.Features.Models;
|
||||||
|
using LiteCharms.Features.Shop.Notifications;
|
||||||
|
using LiteCharms.Features.Shop.Notifications.Models;
|
||||||
|
|
||||||
|
namespace ShopAdmin.Components.Pages;
|
||||||
|
|
||||||
|
public partial class Notifications(NotificationService notificationService, IToastService ToastService)
|
||||||
|
{
|
||||||
|
protected IQueryable<Notification> NotificationQueryable
|
||||||
|
{
|
||||||
|
get
|
||||||
|
{
|
||||||
|
var query = NotificationItems.AsQueryable();
|
||||||
|
|
||||||
|
if (!string.IsNullOrWhiteSpace(SearchFilter))
|
||||||
|
{
|
||||||
|
query = query.Where(n =>
|
||||||
|
(n.Subject != null && n.Subject.Contains(SearchFilter, StringComparison.OrdinalIgnoreCase)) ||
|
||||||
|
(n.SenderAddress != null && n.SenderAddress.Contains(SearchFilter, StringComparison.OrdinalIgnoreCase)) ||
|
||||||
|
(n.RecipientAddress != null && n.RecipientAddress.Contains(SearchFilter, StringComparison.OrdinalIgnoreCase)));
|
||||||
|
}
|
||||||
|
|
||||||
|
return query;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
protected List<Notification> NotificationItems { get; set; } = [];
|
||||||
|
|
||||||
|
protected PaginationState Pagination { get; set; } = new() { ItemsPerPage = 10 };
|
||||||
|
|
||||||
|
protected bool IsLoading { get; set; } = true;
|
||||||
|
|
||||||
|
protected string SearchFilter { get; set; } = string.Empty;
|
||||||
|
|
||||||
|
protected int MaxRecords { get; set; } = 100;
|
||||||
|
|
||||||
|
protected DateTime FromDate { get; set; } = DateTime.Today.AddDays(-30);
|
||||||
|
|
||||||
|
protected DateTime ToDate { get; set; } = DateTime.Today.AddDays(1);
|
||||||
|
|
||||||
|
protected string FromDateBind
|
||||||
|
{
|
||||||
|
get => FromDate.ToString("yyyy-MM-dd");
|
||||||
|
set
|
||||||
|
{
|
||||||
|
if (DateTime.TryParse(value, out var parsedDate))
|
||||||
|
{
|
||||||
|
FromDate = parsedDate;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
protected string ToDateBind
|
||||||
|
{
|
||||||
|
get => ToDate.ToString("yyyy-MM-dd");
|
||||||
|
set
|
||||||
|
{
|
||||||
|
if (DateTime.TryParse(value, out var parsedDate))
|
||||||
|
{
|
||||||
|
ToDate = parsedDate;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
protected int TotalCount => NotificationItems.Count;
|
||||||
|
|
||||||
|
protected int ErrorCount => NotificationItems.Count(n => n.HasError);
|
||||||
|
|
||||||
|
protected int PendingCount => NotificationItems.Count(n => !n.Processed && !n.HasError);
|
||||||
|
|
||||||
|
protected double SuccessRate => TotalCount > 0
|
||||||
|
? Math.Round(((double)(TotalCount - ErrorCount) / TotalCount) * 100, 1)
|
||||||
|
: 100.0;
|
||||||
|
|
||||||
|
protected GridSort<Notification> SortByOrigin => GridSort<Notification>.ByAscending(n => n.Platform);
|
||||||
|
protected GridSort<Notification> SortByPriority => GridSort<Notification>.ByDescending(n => n.Priority);
|
||||||
|
protected GridSort<Notification> SortByCreatedAt => GridSort<Notification>.ByDescending(n => n.CreatedAt);
|
||||||
|
protected GridSort<Notification> SortBySender => GridSort<Notification>.ByAscending(n => n.SenderAddress);
|
||||||
|
protected GridSort<Notification> SortBySubject => GridSort<Notification>.ByAscending(n => n.Subject);
|
||||||
|
protected GridSort<Notification> SortByRecipient => GridSort<Notification>.ByAscending(n => n.RecipientAddress);
|
||||||
|
protected GridSort<Notification> SortByStatus => GridSort<Notification>.ByAscending(n => n.HasError);
|
||||||
|
|
||||||
|
protected override async Task OnInitializedAsync() => await LoadNotificationDataAsync();
|
||||||
|
|
||||||
|
protected async Task HandleRefreshClickAsync()
|
||||||
|
{
|
||||||
|
await LoadNotificationDataAsync();
|
||||||
|
|
||||||
|
ToastService.ShowInfo("Console metrics and telemetry logs refreshed.");
|
||||||
|
}
|
||||||
|
|
||||||
|
private async Task LoadNotificationDataAsync()
|
||||||
|
{
|
||||||
|
IsLoading = true;
|
||||||
|
|
||||||
|
var dateRange = new DateRange()
|
||||||
|
{
|
||||||
|
From = DateOnly.FromDateTime(FromDate),
|
||||||
|
To = DateOnly.FromDateTime(ToDate),
|
||||||
|
MaxRecords = MaxRecords
|
||||||
|
};
|
||||||
|
|
||||||
|
var result = await notificationService.GetNotificationsAsync(dateRange);
|
||||||
|
|
||||||
|
if (result.IsSuccess) NotificationItems = [.. result.Value];
|
||||||
|
|
||||||
|
if (result.IsFailed)
|
||||||
|
{
|
||||||
|
var errorMsg = result.Errors.FirstOrDefault()?.Message ?? "Unable to load telemetry log data.";
|
||||||
|
|
||||||
|
ToastService.ShowError(errorMsg);
|
||||||
|
|
||||||
|
NotificationItems = [];
|
||||||
|
}
|
||||||
|
|
||||||
|
IsLoading = false;
|
||||||
|
}
|
||||||
|
|
||||||
|
protected string GetRowClass(Notification item)
|
||||||
|
{
|
||||||
|
var errorStatus = item.HasError ? "row-has-error" : "row-success";
|
||||||
|
var priorityStatus = $"row-priority-{item.Priority.ToString().ToLower()}";
|
||||||
|
|
||||||
|
return $"{errorStatus} {priorityStatus}";
|
||||||
|
}
|
||||||
|
|
||||||
|
protected async Task HandleRetryRowAsync(Notification item)
|
||||||
|
{
|
||||||
|
var updateRequest = new UpdateNotification
|
||||||
|
{
|
||||||
|
NotificationId = item.Id,
|
||||||
|
Processed = false,
|
||||||
|
HasError = false,
|
||||||
|
Errors = null
|
||||||
|
};
|
||||||
|
|
||||||
|
var result = await notificationService.UpdateNotificationAsync(updateRequest);
|
||||||
|
|
||||||
|
await LoadNotificationDataAsync();
|
||||||
|
|
||||||
|
if (result.IsSuccess) ToastService.ShowSuccess($"{item.Subject}, has been marked for reprocessing.");
|
||||||
|
if (result.IsFailed) ToastService.ShowError("Failed to update notification state execution.");
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1,726 @@
|
|||||||
|
|
||||||
|
/* ==========================================================================
|
||||||
|
1. WORKSPACE LAYOUT & LAYOUT ENGINE BOUNDS
|
||||||
|
========================================================================== */
|
||||||
|
|
||||||
|
.console-workspace {
|
||||||
|
max-width: 1240px !important;
|
||||||
|
width: 100% !important;
|
||||||
|
margin: 0 auto;
|
||||||
|
padding: 2rem 1.5rem;
|
||||||
|
box-sizing: border-box;
|
||||||
|
}
|
||||||
|
|
||||||
|
.dashboard-control-deck {
|
||||||
|
display: grid;
|
||||||
|
grid-template-columns: 1fr;
|
||||||
|
gap: 1.5rem;
|
||||||
|
margin-bottom: 1.5rem;
|
||||||
|
width: 100%;
|
||||||
|
}
|
||||||
|
|
||||||
|
@media (min-width: 1024px) {
|
||||||
|
.dashboard-control-deck {
|
||||||
|
/* Splitting into explicit proportional grid columns */
|
||||||
|
grid-template-columns: 1.6fr 1fr;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Force the timeline block to span both columns underneath them */
|
||||||
|
.full-width-row {
|
||||||
|
grid-column: span 2;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.charts-and-gauges-block {
|
||||||
|
display: flex;
|
||||||
|
flex-direction: column;
|
||||||
|
gap: 1.25rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
.top-row-panels {
|
||||||
|
display: grid;
|
||||||
|
grid-template-columns: repeat(2, 1fr);
|
||||||
|
gap: 1.25rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Shared structural foundation for dashboard panels */
|
||||||
|
.mini-table-card,
|
||||||
|
.radial-gauge-card,
|
||||||
|
.trend-spline-card,
|
||||||
|
.filter-panel {
|
||||||
|
padding: 1.25rem;
|
||||||
|
display: flex;
|
||||||
|
flex-direction: column;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* ==========================================================================
|
||||||
|
2. TELEMETRY FILTERS PANEL & INPUT FORM STRUCTURES
|
||||||
|
========================================================================== */
|
||||||
|
|
||||||
|
.filter-panel {
|
||||||
|
height: auto;
|
||||||
|
display: flex;
|
||||||
|
flex-direction: column;
|
||||||
|
/* Fixed selector to accurately target nested wrapper structure input elements */
|
||||||
|
input[type="text"],
|
||||||
|
.input-wrapper input {
|
||||||
|
width: 100%;
|
||||||
|
height: 38px;
|
||||||
|
padding: 10px 12px !important;
|
||||||
|
background: rgba(0, 0, 0, 0.4) !important;
|
||||||
|
border: 1px solid rgba(255, 255, 255, 0.05) !important;
|
||||||
|
color: #fff !important;
|
||||||
|
border-radius: 6px !important;
|
||||||
|
font-size: 0.85rem !important;
|
||||||
|
outline: none;
|
||||||
|
box-sizing: border-box;
|
||||||
|
}
|
||||||
|
|
||||||
|
input:focus,
|
||||||
|
.input-wrapper input:focus {
|
||||||
|
border-color: #ff6b35 !important;
|
||||||
|
box-shadow: 0 0 10px rgba(255, 107, 53, 0.25);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.filter-grid-form {
|
||||||
|
display: grid;
|
||||||
|
grid-template-columns: repeat(2, 1fr);
|
||||||
|
gap: 1rem;
|
||||||
|
align-content: start; /* Prevents vertical item stretching */
|
||||||
|
}
|
||||||
|
|
||||||
|
.btn-apply-filters {
|
||||||
|
background: #ff6b35;
|
||||||
|
border: none;
|
||||||
|
color: #fff;
|
||||||
|
width: 100%; /* Stretches nicely on small screens, or adjust to max-content if preferred */
|
||||||
|
height: 38px;
|
||||||
|
border-radius: 6px;
|
||||||
|
font-weight: 600;
|
||||||
|
font-size: 0.85rem;
|
||||||
|
cursor: pointer;
|
||||||
|
transition: background 0.2s ease;
|
||||||
|
|
||||||
|
&:hover:not(:disabled) {
|
||||||
|
background: #ff8552;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.themed-dropdown-box,
|
||||||
|
.themed-date-picker-box {
|
||||||
|
position: relative;
|
||||||
|
width: 100%;
|
||||||
|
|
||||||
|
select, input[type="date"] {
|
||||||
|
width: 100%;
|
||||||
|
height: 38px;
|
||||||
|
padding: 9px 12px !important;
|
||||||
|
background: rgba(28, 32, 43, 0.85) !important;
|
||||||
|
border: 1px solid rgba(255, 107, 53, 0.15) !important;
|
||||||
|
color: #e2e8f0 !important;
|
||||||
|
border-radius: 6px !important;
|
||||||
|
font-size: 0.85rem !important;
|
||||||
|
outline: none;
|
||||||
|
appearance: none;
|
||||||
|
-webkit-appearance: none;
|
||||||
|
box-sizing: border-box;
|
||||||
|
cursor: pointer;
|
||||||
|
transition: all 0.2s ease;
|
||||||
|
|
||||||
|
&:focus {
|
||||||
|
border-color: #ff6b35 !important;
|
||||||
|
box-shadow: 0 0 10px rgba(255, 107, 53, 0.25);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.themed-date-picker-box input[type="date"]::-webkit-calendar-picker-indicator {
|
||||||
|
filter: invert(53%) sepia(86%) saturate(1637%) hue-rotate(345deg) brightness(101%) contrast(101%);
|
||||||
|
cursor: pointer;
|
||||||
|
opacity: 0.85;
|
||||||
|
}
|
||||||
|
|
||||||
|
.themed-dropdown-box {
|
||||||
|
select option {
|
||||||
|
background-color: #141821 !important;
|
||||||
|
color: #fff !important;
|
||||||
|
padding: 8px !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
&::after {
|
||||||
|
content: "▼";
|
||||||
|
font-size: 0.65rem;
|
||||||
|
color: #ff6b35;
|
||||||
|
position: absolute;
|
||||||
|
right: 14px;
|
||||||
|
top: 50%;
|
||||||
|
transform: translateY(-50%);
|
||||||
|
pointer-events: none;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.action-wrapper {
|
||||||
|
justify-content: flex-end;
|
||||||
|
}
|
||||||
|
|
||||||
|
.btn-apply-filters {
|
||||||
|
background: #ff6b35;
|
||||||
|
border: none;
|
||||||
|
color: #fff;
|
||||||
|
width: 100%;
|
||||||
|
height: 38px;
|
||||||
|
border-radius: 6px;
|
||||||
|
font-weight: 600;
|
||||||
|
font-size: 0.85rem;
|
||||||
|
cursor: pointer;
|
||||||
|
transition: background 0.2s ease;
|
||||||
|
|
||||||
|
&:hover:not(:disabled) {
|
||||||
|
background: #ff8552;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
/* ==========================================================================
|
||||||
|
3. INTERNAL MICRO-TABLE COMPONENTS (OPERATIONAL INVENTORY)
|
||||||
|
========================================================================== */
|
||||||
|
|
||||||
|
.dashboard-mini-table {
|
||||||
|
width: 100%;
|
||||||
|
margin-top: 0.75rem;
|
||||||
|
border-collapse: collapse;
|
||||||
|
|
||||||
|
th {
|
||||||
|
text-align: left;
|
||||||
|
font-size: 0.7rem;
|
||||||
|
text-transform: uppercase;
|
||||||
|
color: rgba(255, 255, 255, 0.3);
|
||||||
|
padding: 6px 0;
|
||||||
|
border-bottom: 1px solid rgba(255, 255, 255, 0.05);
|
||||||
|
}
|
||||||
|
|
||||||
|
td {
|
||||||
|
padding: 10px 0;
|
||||||
|
font-size: 0.85rem;
|
||||||
|
border-bottom: 1px solid rgba(255, 255, 255, 0.03);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
/* ==========================================================================
|
||||||
|
4. DATA VISUALIZATION COMPONENTS (GAUGES & TIMELINES)
|
||||||
|
========================================================================== */
|
||||||
|
|
||||||
|
.gauge-presentation-box {
|
||||||
|
display: flex;
|
||||||
|
justify-content: space-around;
|
||||||
|
align-items: center;
|
||||||
|
flex: 1;
|
||||||
|
margin-top: 0.5rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
.svg-gauge-container {
|
||||||
|
position: relative;
|
||||||
|
width: 75px;
|
||||||
|
height: 75px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.gauge-ring-matrix {
|
||||||
|
width: 100%;
|
||||||
|
height: 100%;
|
||||||
|
}
|
||||||
|
|
||||||
|
.gauge-bg-track {
|
||||||
|
fill: none;
|
||||||
|
stroke: rgba(255, 255, 255, 0.04);
|
||||||
|
stroke-width: 2.8;
|
||||||
|
}
|
||||||
|
|
||||||
|
.gauge-active-fill {
|
||||||
|
fill: none;
|
||||||
|
stroke-width: 3.2;
|
||||||
|
stroke-linecap: round;
|
||||||
|
transition: stroke-dasharray 0.4s ease;
|
||||||
|
}
|
||||||
|
|
||||||
|
.gauge-center-text {
|
||||||
|
position: absolute;
|
||||||
|
top: 50%;
|
||||||
|
left: 50%;
|
||||||
|
transform: translate(-50%, -50%);
|
||||||
|
font-family: monospace;
|
||||||
|
font-weight: 700;
|
||||||
|
font-size: 0.9rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
.vector-chart-viewport {
|
||||||
|
width: 100%;
|
||||||
|
margin-top: 1rem;
|
||||||
|
position: relative;
|
||||||
|
}
|
||||||
|
|
||||||
|
.area-spline-graph {
|
||||||
|
width: 100%;
|
||||||
|
height: 85px;
|
||||||
|
display: block;
|
||||||
|
overflow: visible;
|
||||||
|
}
|
||||||
|
|
||||||
|
.chart-axis-labels {
|
||||||
|
display: flex;
|
||||||
|
justify-content: space-between;
|
||||||
|
font-size: 0.68rem;
|
||||||
|
font-family: monospace;
|
||||||
|
color: rgba(255, 255, 255, 0.25);
|
||||||
|
margin-top: 0.5rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* ==========================================================================
|
||||||
|
5. BLAZOR QUICKGRID COMPLEX ENHANCEMENTS (SCOPED FIX)
|
||||||
|
========================================================================== */
|
||||||
|
|
||||||
|
.full-width-table {
|
||||||
|
width: 100% !important;
|
||||||
|
overflow-x: auto;
|
||||||
|
margin-top: 1rem;
|
||||||
|
box-sizing: border-box;
|
||||||
|
background: rgba(13, 16, 23, 0.65);
|
||||||
|
border: 1px solid rgba(255, 255, 255, 0.03);
|
||||||
|
border-radius: 8px;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* --- QuickGrid Empty Body Row Elimination (Header Safe) --- */
|
||||||
|
.full-width-table ::deep tbody tr:has(td:empty) {
|
||||||
|
display: none !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Forces the table structure to hug only active data rows */
|
||||||
|
.full-width-table ::deep tbody {
|
||||||
|
display: table-row-group !important;
|
||||||
|
height: auto !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Properly combining parent scope with deep combinator to force child table styles */
|
||||||
|
.full-width-table ::deep table {
|
||||||
|
width: 100% !important;
|
||||||
|
table-layout: fixed !important; /* Forces layout engine to honor assigned column percentages */
|
||||||
|
border-collapse: collapse !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* --- High Contrast Header Component Overrides --- */
|
||||||
|
.full-width-table ::deep th {
|
||||||
|
background: #141821 !important; /* Solid contrast block background */
|
||||||
|
padding: 14px 10px !important;
|
||||||
|
border-bottom: 2px solid #ff6b35 !important; /* Solid brand accent line */
|
||||||
|
vertical-align: middle !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Target QuickGrid's native internal header sorting buttons & plain titles */
|
||||||
|
.full-width-table ::deep th button,
|
||||||
|
.full-width-table ::deep th .col-title {
|
||||||
|
color: #ff6b35 !important; /* Vibrant orange contrast text */
|
||||||
|
font-weight: 700 !important;
|
||||||
|
font-size: 0.75rem !important; /* Slightly optimized down for layout safety */
|
||||||
|
text-transform: uppercase !important;
|
||||||
|
letter-spacing: 1px !important;
|
||||||
|
background: transparent !important;
|
||||||
|
border: none !important;
|
||||||
|
padding: 0 !important;
|
||||||
|
text-align: left !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
.full-width-table ::deep th button:hover {
|
||||||
|
color: #ffffff !important; /* Highlight on hover interaction */
|
||||||
|
}
|
||||||
|
|
||||||
|
/* --- Explicit Column Width Definitions (Optimized for Date Visibility) --- */
|
||||||
|
/* Origin */
|
||||||
|
.full-width-table ::deep th:nth-child(1), .full-width-table ::deep td:nth-child(1) {
|
||||||
|
width: 9%;
|
||||||
|
min-width: 85px;
|
||||||
|
}
|
||||||
|
/* Priority */
|
||||||
|
.full-width-table ::deep th:nth-child(2), .full-width-table ::deep td:nth-child(2) {
|
||||||
|
width: 8%;
|
||||||
|
min-width: 75px;
|
||||||
|
}
|
||||||
|
/* Created At (Given extra breathing space) */
|
||||||
|
.full-width-table ::deep th:nth-child(3), .full-width-table ::deep td:nth-child(3) {
|
||||||
|
width: 16%;
|
||||||
|
min-width: 145px;
|
||||||
|
}
|
||||||
|
/* Sender */
|
||||||
|
.full-width-table ::deep th:nth-child(4), .full-width-table ::deep td:nth-child(4) {
|
||||||
|
width: 20%;
|
||||||
|
min-width: 190px;
|
||||||
|
}
|
||||||
|
/* Subject / Description */
|
||||||
|
.full-width-table ::deep th:nth-child(5), .full-width-table ::deep td:nth-child(5) {
|
||||||
|
width: 22%;
|
||||||
|
min-width: 200px;
|
||||||
|
}
|
||||||
|
/* Recipient */
|
||||||
|
.full-width-table ::deep th:nth-child(6), .full-width-table ::deep td:nth-child(6) {
|
||||||
|
width: 15%;
|
||||||
|
min-width: 150px;
|
||||||
|
}
|
||||||
|
/* Status */
|
||||||
|
.full-width-table ::deep th:nth-child(7), .full-width-table ::deep td:nth-child(7) {
|
||||||
|
width: 10%;
|
||||||
|
min-width: 90px;
|
||||||
|
}
|
||||||
|
/* Action */
|
||||||
|
.full-width-table ::deep th:nth-child(8), .full-width-table ::deep td:nth-child(8) {
|
||||||
|
width: 5%;
|
||||||
|
min-width: 65px;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* --- Body Cells Engine & Text Preservation --- */
|
||||||
|
.full-width-table ::deep td {
|
||||||
|
padding: 12px 10px !important; /* Tighter padding values to maximize text viewport bounds */
|
||||||
|
border-bottom: 1px solid rgba(255, 255, 255, 0.04) !important;
|
||||||
|
vertical-align: middle !important;
|
||||||
|
font-size: 0.78rem !important; /* Dropped size down slightly from 0.85rem to fix clipping */
|
||||||
|
overflow: hidden !important;
|
||||||
|
text-overflow: ellipsis !important;
|
||||||
|
white-space: nowrap !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
.full-width-table ::deep tr:hover td {
|
||||||
|
background: rgba(255, 255, 255, 0.02) !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* ==========================================================================
|
||||||
|
6. ATOMIC INTERACTION & GLOBAL STATUS DESIGN
|
||||||
|
========================================================================== */
|
||||||
|
|
||||||
|
.page-header {
|
||||||
|
display: flex;
|
||||||
|
justify-content: space-between;
|
||||||
|
align-items: center;
|
||||||
|
margin-bottom: 1.5rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
.shadow-card {
|
||||||
|
background: rgba(13, 16, 23, 0.65) !important;
|
||||||
|
border: 1px solid rgba(255, 255, 255, 0.03) !important;
|
||||||
|
box-shadow: 0 12px 40px 0 rgba(0, 0, 0, 0.6);
|
||||||
|
backdrop-filter: blur(12px);
|
||||||
|
border-radius: 8px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.btn-refresh {
|
||||||
|
background: rgba(255, 107, 53, 0.06);
|
||||||
|
border: 1px solid rgba(255, 107, 53, 0.25);
|
||||||
|
color: #ff6b35;
|
||||||
|
padding: 10px 18px;
|
||||||
|
border-radius: 6px;
|
||||||
|
font-size: 0.85rem;
|
||||||
|
font-weight: 600;
|
||||||
|
cursor: pointer;
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
gap: 8px;
|
||||||
|
|
||||||
|
&:hover:not(:disabled) {
|
||||||
|
background: rgba(255, 107, 53, 0.12);
|
||||||
|
border-color: #ff6b35;
|
||||||
|
color: #fff;
|
||||||
|
}
|
||||||
|
|
||||||
|
&:disabled {
|
||||||
|
opacity: 0.4;
|
||||||
|
cursor: not-allowed;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.origin-composite,
|
||||||
|
.contact-composite,
|
||||||
|
.subject-cell {
|
||||||
|
display: flex;
|
||||||
|
flex-direction: column;
|
||||||
|
line-height: 1.3;
|
||||||
|
overflow: hidden;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Typography Classes */
|
||||||
|
.panel-title-lbl {
|
||||||
|
font-size: 0.72rem;
|
||||||
|
color: rgba(255, 255, 255, 0.4);
|
||||||
|
font-weight: 700;
|
||||||
|
text-transform: uppercase;
|
||||||
|
letter-spacing: 0.75px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.platform-lbl {
|
||||||
|
font-weight: 600;
|
||||||
|
color: #fff;
|
||||||
|
font-size: 0.85rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
.direction-lbl {
|
||||||
|
font-size: 0.75rem;
|
||||||
|
font-family: monospace;
|
||||||
|
}
|
||||||
|
|
||||||
|
.node-dim {
|
||||||
|
color: rgba(255, 255, 255, 0.4);
|
||||||
|
font-size: 0.78rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
.text-mono {
|
||||||
|
font-family: monospace;
|
||||||
|
font-weight: 700;
|
||||||
|
font-size: 0.95rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
.contact-name {
|
||||||
|
color: #fff;
|
||||||
|
font-size: 0.85rem;
|
||||||
|
font-weight: 500;
|
||||||
|
text-overflow: ellipsis;
|
||||||
|
overflow: hidden;
|
||||||
|
}
|
||||||
|
|
||||||
|
.contact-email, .message-subtext {
|
||||||
|
font-size: 0.75rem;
|
||||||
|
text-overflow: ellipsis;
|
||||||
|
overflow: hidden;
|
||||||
|
}
|
||||||
|
|
||||||
|
.subject-text {
|
||||||
|
color: rgba(255, 255, 255, 0.9);
|
||||||
|
font-weight: 500;
|
||||||
|
text-overflow: ellipsis;
|
||||||
|
overflow: hidden;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Status Color Tokens */
|
||||||
|
.text-purple {
|
||||||
|
color: #bd00ff;
|
||||||
|
stroke: #bd00ff;
|
||||||
|
}
|
||||||
|
|
||||||
|
.text-cyan {
|
||||||
|
color: #00b4d8;
|
||||||
|
stroke: #00b4d8;
|
||||||
|
}
|
||||||
|
|
||||||
|
.text-red {
|
||||||
|
color: #e63946;
|
||||||
|
}
|
||||||
|
|
||||||
|
.text-yellow {
|
||||||
|
color: #ffb703;
|
||||||
|
}
|
||||||
|
|
||||||
|
.text-emerald {
|
||||||
|
color: #2a9d8f;
|
||||||
|
}
|
||||||
|
|
||||||
|
.status-indicator {
|
||||||
|
font-size: 0.85rem;
|
||||||
|
font-weight: 500;
|
||||||
|
}
|
||||||
|
|
||||||
|
.success-text {
|
||||||
|
color: #2a9d8f;
|
||||||
|
}
|
||||||
|
|
||||||
|
.alert-text {
|
||||||
|
color: #e63946;
|
||||||
|
}
|
||||||
|
|
||||||
|
.idle-text {
|
||||||
|
color: #ffb703;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Priority Badge Elements */
|
||||||
|
.priority-tag {
|
||||||
|
font-size: 0.68rem;
|
||||||
|
font-weight: 700;
|
||||||
|
font-family: monospace;
|
||||||
|
padding: 2px 6px;
|
||||||
|
border-radius: 4px;
|
||||||
|
text-transform: uppercase;
|
||||||
|
width: max-content;
|
||||||
|
|
||||||
|
&.critical {
|
||||||
|
background: rgba(230, 57, 70, 0.12);
|
||||||
|
color: #e63946;
|
||||||
|
}
|
||||||
|
|
||||||
|
&.high {
|
||||||
|
background: rgba(255, 183, 3, 0.12);
|
||||||
|
color: #ffb703;
|
||||||
|
}
|
||||||
|
|
||||||
|
&.medium {
|
||||||
|
background: rgba(0, 180, 216, 0.12);
|
||||||
|
color: #00b4d8;
|
||||||
|
}
|
||||||
|
|
||||||
|
&.low {
|
||||||
|
background: rgba(255, 255, 255, 0.04);
|
||||||
|
color: rgba(255, 255, 255, 0.4);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.grid-retry-btn {
|
||||||
|
background: transparent;
|
||||||
|
border: 1px solid rgba(230, 57, 70, 0.4);
|
||||||
|
color: #e63946;
|
||||||
|
padding: 3px 10px;
|
||||||
|
border-radius: 4px;
|
||||||
|
font-size: 0.75rem;
|
||||||
|
font-weight: 600;
|
||||||
|
cursor: pointer;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Paginator & Loading Elements */
|
||||||
|
.grid-paginator-wrapper {
|
||||||
|
margin-top: 1.25rem;
|
||||||
|
display: flex;
|
||||||
|
justify-content: flex-end;
|
||||||
|
}
|
||||||
|
|
||||||
|
::deep .blazor-quickgrid-paginator button {
|
||||||
|
background: rgba(255, 255, 255, 0.02) !important;
|
||||||
|
border: 1px solid rgba(255, 107, 53, 0.1) !important;
|
||||||
|
color: #fff !important;
|
||||||
|
border-radius: 4px;
|
||||||
|
padding: 4px 10px;
|
||||||
|
cursor: pointer;
|
||||||
|
}
|
||||||
|
|
||||||
|
.console-loader {
|
||||||
|
display: flex;
|
||||||
|
flex-direction: column;
|
||||||
|
align-items: center;
|
||||||
|
justify-content: center;
|
||||||
|
padding: 6rem 2rem;
|
||||||
|
color: rgba(255, 255, 255, 0.4);
|
||||||
|
}
|
||||||
|
|
||||||
|
.spinner {
|
||||||
|
width: 26px;
|
||||||
|
height: 26px;
|
||||||
|
border: 2px solid rgba(255, 107, 53, 0.1);
|
||||||
|
border-top-color: #ff6b35;
|
||||||
|
border-radius: 50%;
|
||||||
|
animation: spin 0.8s linear infinite;
|
||||||
|
margin-bottom: 1rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
@keyframes spin {
|
||||||
|
to {
|
||||||
|
transform: rotate(360deg);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.refresh-icon.spinning {
|
||||||
|
animation: spin 1s linear infinite;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Absolute Fullscreen initial overlay alignment rules for a clean loading UX */
|
||||||
|
.initial-page-fullscreen-loader {
|
||||||
|
position: fixed;
|
||||||
|
top: 0;
|
||||||
|
left: 0;
|
||||||
|
width: 100vw;
|
||||||
|
height: 100vh;
|
||||||
|
background: #0b1116; /* Fallback baseline dark match */
|
||||||
|
backdrop-filter: blur(20px);
|
||||||
|
z-index: 9999;
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
justify-content: center;
|
||||||
|
|
||||||
|
.loader-content {
|
||||||
|
display: flex;
|
||||||
|
flex-direction: column;
|
||||||
|
align-items: center;
|
||||||
|
gap: 1rem;
|
||||||
|
color: rgba(255, 255, 255, 0.6);
|
||||||
|
font-size: 0.95rem;
|
||||||
|
font-weight: 500;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
/* --- Seamless Grid Sync Loading Overlay --- */
|
||||||
|
.relative-grid-container {
|
||||||
|
position: relative;
|
||||||
|
min-height: 250px; /* Prevents container collapse when data updates */
|
||||||
|
}
|
||||||
|
|
||||||
|
.grid-inline-loading-veil {
|
||||||
|
position: absolute;
|
||||||
|
top: 0;
|
||||||
|
left: 0;
|
||||||
|
width: 100%;
|
||||||
|
height: 100%;
|
||||||
|
background: rgba(11, 17, 22, 0.7); /* Translucent dark tint matching workspace canvas */
|
||||||
|
backdrop-filter: blur(4px); /* Clean frosted separation without changing structural layouts */
|
||||||
|
z-index: 10;
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
justify-content: center;
|
||||||
|
border-radius: 8px;
|
||||||
|
animation: fadeInVeil 0.15s ease-out;
|
||||||
|
}
|
||||||
|
|
||||||
|
.veil-content {
|
||||||
|
display: flex;
|
||||||
|
flex-direction: column;
|
||||||
|
align-items: center;
|
||||||
|
gap: 0.75rem;
|
||||||
|
color: rgba(255, 255, 255, 0.8);
|
||||||
|
font-weight: 500;
|
||||||
|
font-size: 0.9rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
@keyframes fadeInVeil {
|
||||||
|
from {
|
||||||
|
opacity: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
to {
|
||||||
|
opacity: 1;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
/* ==========================================================================
|
||||||
|
X. BROAD VIEWPORT TELEMETRY CANVASES (Circuit Matrix Backdrop)
|
||||||
|
========================================================================== */
|
||||||
|
|
||||||
|
.workspace-ambient-backdrop {
|
||||||
|
position: fixed; /* Securely locks backdrop layer behind all scroll surfaces */
|
||||||
|
top: 0;
|
||||||
|
left: 0;
|
||||||
|
width: 100vw;
|
||||||
|
height: 100vh;
|
||||||
|
z-index: 0;
|
||||||
|
pointer-events: none;
|
||||||
|
user-select: none;
|
||||||
|
/* PERCENT-ENCODED INLINE SVG CIRCUIT GRID ENGINE:
|
||||||
|
- Uses a highly diluted telemetry orange mix matching your #ff6b35 accent tags.
|
||||||
|
- Built out of interlocking data nodes, traces, and measurement crosshairs.
|
||||||
|
*/
|
||||||
|
background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180' viewBox='0 0 180 180'%3E%3Cg fill='none' stroke='rgba(255, 107, 53, 0.11)' stroke-width='1.2'%3E%3C!-- Core Element 1: Center Tech Microprocessor Node --%3E%3Crect x='70' y='70' width='40' height='40' rx='3' stroke-width='1.5'/%3E%3Ccircle cx='90' cy='90' r='10' stroke-dasharray='2 2'/%3E%3Ccircle cx='90' cy='90' r='3' fill='rgba(255, 107, 53, 0.05)'/%3E%3C!-- Core Element 2: Radiating Bus Traces %26 Corner Trunks --%3E%3Cpath d='M 90,70 L 90,40 L 70,40 M 90,110 L 90,140 L 110,140 M 70,90 L 40,90 L 40,110 M 110,90 L 140,90 L 140,70'/%3E%3Ccircle cx='70' cy='40' r='2.5' fill='rgba(255, 107, 53, 0.15)'/%3E%3Ccircle cx='110' cy='140' r='2.5' fill='rgba(255, 107, 53, 0.15)'/%3E%3Ccircle cx='40' cy='110' r='2.5' fill='rgba(255, 107, 53, 0.15)'/%3E%3Ccircle cx='140' cy='70' r='2.5' fill='rgba(255, 107, 53, 0.15)'/%3E%3C!-- Core Element 3: Peripheral Data Junctions (Interlocking Corners) --%3E%3Ccircle cx='0' cy='0' r='35' stroke-width='0.8'/%3E%3Ccircle cx='0' cy='0' r='20' stroke-dasharray='4 3'/%3E%3Ccircle cx='180' cy='0' r='35' stroke-width='0.8'/%3E%3Ccircle cx='180' cy='0' r='20' stroke-dasharray='4 3'/%3E%3Ccircle cx='0' cy='180' r='35' stroke-width='0.8'/%3E%3Ccircle cx='0' cy='180' r='20' stroke-dasharray='4 3'/%3E%3Ccircle cx='180' cy='180' r='35' stroke-width='0.8'/%3E%3Ccircle cx='180' cy='180' r='20' stroke-dasharray='4 3'/%3E%3C!-- Target Scope Crosshairs --%3E%3Cpath d='M 0,90 L 15,90 M 180,90 L 165,90 M 90,0 L 90,15 M 90,180 L 90,165' stroke-width='0.8' opacity='0.7'/%3E%3Cpath d='M 25,25 L 35,25 M 25,25 L 25,35 M 155,25 L 145,25 M 155,25 L 155,35 M 25,155 L 35,155 M 25,155 L 25,145 M 155,155 L 145,155 M 155,155 L 155,145' stroke-width='0.9' opacity='0.5'/%3E%3C/g%3E%3C/svg%3E");
|
||||||
|
background-repeat: repeat;
|
||||||
|
background-size: 180px 180px;
|
||||||
|
/* Radial Mask: Blends perfectly out into your dark layout edges while
|
||||||
|
keeping text components crisp and legible in the foreground */
|
||||||
|
mask-image: radial-gradient(circle at 50% 45%, rgba(0,0,0,0.12) 15%, black 80%);
|
||||||
|
-webkit-mask-image: radial-gradient(circle at 50% 45%, rgba(0,0,0,0.12) 15%, black 80%);
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Deep contextual underglow to give your glassmorphism cards an illuminated orange edge */
|
||||||
|
.workspace-ambient-backdrop::after {
|
||||||
|
content: '';
|
||||||
|
position: absolute;
|
||||||
|
top: 0;
|
||||||
|
left: 0;
|
||||||
|
width: 100%;
|
||||||
|
height: 100%;
|
||||||
|
background: radial-gradient( circle at 50% 45%, rgba(255, 107, 53, 0.04) 0%, rgba(0, 0, 0, 0) 75% );
|
||||||
|
}
|
||||||
@@ -0,0 +1,114 @@
|
|||||||
|
@page "/products"
|
||||||
|
@rendermode RenderMode.InteractiveServer
|
||||||
|
|
||||||
|
<PageTitle>Products & Pricing | Shop Console</PageTitle>
|
||||||
|
|
||||||
|
<div class="workspace-ambient-backdrop"></div>
|
||||||
|
|
||||||
|
<div class="console-workspace">
|
||||||
|
|
||||||
|
<div class="page-header">
|
||||||
|
<div>
|
||||||
|
<h2>Product Master Ledger</h2>
|
||||||
|
<p class="text-muted">Manage catalog inventory item nodes, price matrixing, and currency variations.</p>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="split-workspace-deck shadow-card">
|
||||||
|
|
||||||
|
<nav class="workspace-wing left-wing domain-nav">
|
||||||
|
<span class="panel-title-lbl">Product Domain</span>
|
||||||
|
|
||||||
|
<div class="domain-menu-list">
|
||||||
|
<div class="domain-nav-item @(ActiveView == ProductView.Create ? "active" : "")"
|
||||||
|
@onclick="() => SwitchView(ProductView.Create)">
|
||||||
|
<div class="nav-status-node"></div>
|
||||||
|
<div class="domain-details">
|
||||||
|
<span class="domain-name">Create Product</span>
|
||||||
|
<span class="domain-desc">Provision new inventory nodes</span>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="domain-nav-item @(ActiveView == ProductView.ViewAll ? "active" : "")"
|
||||||
|
@onclick="() => SwitchView(ProductView.ViewAll)">
|
||||||
|
<div class="nav-status-node"></div>
|
||||||
|
<div class="domain-details">
|
||||||
|
<span class="domain-name">View Products</span>
|
||||||
|
<span class="domain-desc">Browse & modify active catalog</span>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="domain-nav-item @(ActiveView == ProductView.Prices ? "active" : "")"
|
||||||
|
@onclick="() => SwitchView(ProductView.Prices)">
|
||||||
|
<div class="nav-status-node"></div>
|
||||||
|
<div class="domain-details">
|
||||||
|
<span class="domain-name">Product Prices</span>
|
||||||
|
<span class="domain-desc">Matrix values & currency rates</span>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="domain-nav-item @(ActiveView == ProductView.Packages ? "active" : "")"
|
||||||
|
@onclick="() => SwitchView(ProductView.Packages)">
|
||||||
|
<div class="nav-status-node"></div>
|
||||||
|
<div class="domain-details">
|
||||||
|
<span class="domain-name">Product Packages</span>
|
||||||
|
<span class="domain-desc">Bundles, kits, and group logic</span>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</nav>
|
||||||
|
|
||||||
|
<div class="central-divider-axis">
|
||||||
|
<div class="camel-glow-left"></div>
|
||||||
|
<div class="divider-core-line"></div>
|
||||||
|
<div class="camel-glow-right"></div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="workspace-wing right-wing content-canvas">
|
||||||
|
@switch (ActiveView)
|
||||||
|
{
|
||||||
|
case ProductView.Create:
|
||||||
|
<CreateProduct />
|
||||||
|
break;
|
||||||
|
case ProductView.ViewAll:
|
||||||
|
<div class="workspace-placeholder-state" style="padding: 2rem;">
|
||||||
|
<span class="panel-title-lbl">Active Item Ledger</span>
|
||||||
|
<p class="text-muted">Awaiting product lookup parameters...</p>
|
||||||
|
</div>
|
||||||
|
break;
|
||||||
|
case ProductView.Prices:
|
||||||
|
<div class="workspace-placeholder-state" style="padding: 2rem;">
|
||||||
|
<span class="panel-title-lbl">Pricing Matrices</span>
|
||||||
|
<p class="text-muted">Awaiting exchange rates configuration profiles...</p>
|
||||||
|
</div>
|
||||||
|
break;
|
||||||
|
case ProductView.Packages:
|
||||||
|
<div class="workspace-placeholder-state" style="padding: 2rem;">
|
||||||
|
<span class="panel-title-lbl">Kit & Bundle Registers</span>
|
||||||
|
<p class="text-muted">Awaiting relational node definitions...</p>
|
||||||
|
</div>
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
</div>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
@code {
|
||||||
|
// Enum declaration to rigidly manage split view panel state mapping safely
|
||||||
|
private enum ProductView
|
||||||
|
{
|
||||||
|
Create,
|
||||||
|
ViewAll,
|
||||||
|
Prices,
|
||||||
|
Packages
|
||||||
|
}
|
||||||
|
|
||||||
|
// Default runtime tracking state variables
|
||||||
|
private ProductView ActiveView { get; set; } = ProductView.Create;
|
||||||
|
|
||||||
|
private void SwitchView(ProductView targetView)
|
||||||
|
{
|
||||||
|
ActiveView = targetView;
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1,5 @@
|
|||||||
|
namespace ShopAdmin.Components.Pages;
|
||||||
|
|
||||||
|
public partial class Products
|
||||||
|
{
|
||||||
|
}
|
||||||
@@ -0,0 +1,205 @@
|
|||||||
|
/* ==========================================================================
|
||||||
|
1. BROAD VIEWPORT KALEIDOSCOPE BACKDROP (The Arrow Targets)
|
||||||
|
========================================================================= */
|
||||||
|
|
||||||
|
.workspace-ambient-backdrop {
|
||||||
|
position: fixed; /* Securely locks backdrop layer behind all scroll surfaces */
|
||||||
|
top: 0;
|
||||||
|
left: 0;
|
||||||
|
width: 100vw;
|
||||||
|
height: 100vh;
|
||||||
|
z-index: 0;
|
||||||
|
pointer-events: none;
|
||||||
|
user-select: none;
|
||||||
|
/* ENHANCED INLINE SVG EXOTIC FRUIT KALEIDOSCOPE
|
||||||
|
- Increased stroke values from 0.035 up to 0.14 for striking visibility.
|
||||||
|
- Clean, un-broken cross-browser safe rendering framework.
|
||||||
|
*/
|
||||||
|
background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160' viewBox='0 0 160 160'%3E%3Cg fill='none' stroke='rgba(0, 163, 224, 0.14)' stroke-width='1.2'%3E%3Ccircle cx='80' cy='80' r='75'/%3E%3Ccircle cx='80' cy='80' r='50'/%3E%3Ccircle cx='80' cy='80' r='25'/%3E%3Cpath d='M80,0 L80,160 M0,80 L160,80 M23.43,23.43 L136.57,136.57 M23.43,136.57 L136.57,23.43' stroke-dasharray='3 3' opacity='0.6'/%3E%3Cpolygon points='80,15 95,65 145,80 95,95 80,145 65,95 15,80 65,65' stroke-width='0.8'/%3E%3Ccircle cx='0' cy='0' r='20'/%3E%3Ccircle cx='160' cy='0' r='20'/%3E%3Ccircle cx='0' cy='160' r='20'/%3E%3Ccircle cx='160' cy='160' r='20'/%3E%3C/g%3E%3C/svg%3E");
|
||||||
|
background-repeat: repeat;
|
||||||
|
background-size: 160px 160px;
|
||||||
|
/* RADIAL VIGNETTE MASK OPTIMIZATION:
|
||||||
|
Allows the shapes to render significantly sharper as they approach
|
||||||
|
the outer screen margins.
|
||||||
|
*/
|
||||||
|
mask-image: radial-gradient(circle at 50% 45%, rgba(0,0,0,0.15) 20%, black 80%);
|
||||||
|
-webkit-mask-image: radial-gradient(circle at 50% 45%, rgba(0,0,0,0.15) 20%, black 80%);
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Vivid ambient brand cyan underglow backing layout layers */
|
||||||
|
.workspace-ambient-backdrop::after {
|
||||||
|
content: '';
|
||||||
|
position: absolute;
|
||||||
|
top: 0;
|
||||||
|
left: 0;
|
||||||
|
width: 100%;
|
||||||
|
height: 100%;
|
||||||
|
background: radial-gradient( circle at 50% 45%, rgba(0, 163, 224, 0.05) 0%, rgba(0, 0, 0, 0) 80% );
|
||||||
|
}
|
||||||
|
|
||||||
|
/* ==========================================================================
|
||||||
|
2. MAIN INTERFACE WORKSPACE (The Master Deck Card Block)
|
||||||
|
========================================================================== */
|
||||||
|
|
||||||
|
.console-workspace {
|
||||||
|
position: relative;
|
||||||
|
z-index: 1; /* Keeps user actions and console content layers strictly on top */
|
||||||
|
max-width: 1340px;
|
||||||
|
width: 100%;
|
||||||
|
margin: 0 auto;
|
||||||
|
padding: 2rem 1.5rem;
|
||||||
|
box-sizing: border-box;
|
||||||
|
}
|
||||||
|
|
||||||
|
.split-workspace-deck {
|
||||||
|
display: grid;
|
||||||
|
grid-template-columns: 280px auto 1fr;
|
||||||
|
min-height: 620px;
|
||||||
|
width: 100%;
|
||||||
|
position: relative;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Translucent Obsidian Glassmorphism panel block */
|
||||||
|
.shadow-card {
|
||||||
|
background: rgba(10, 14, 20, 0.75);
|
||||||
|
border: 1px solid rgba(255, 255, 255, 0.03);
|
||||||
|
box-shadow: 0 24px 60px 0 rgba(0, 0, 0, 0.85);
|
||||||
|
/* Fully separates workspace views from the outer geometric cyan fruit array */
|
||||||
|
backdrop-filter: blur(20px);
|
||||||
|
border-radius: 12px;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* ==========================================================================
|
||||||
|
3. DOMAIN SUB-NAVIGATION CONTROL
|
||||||
|
========================================================================== */
|
||||||
|
|
||||||
|
.domain-menu-list {
|
||||||
|
display: flex;
|
||||||
|
flex-direction: column;
|
||||||
|
gap: 1.75rem;
|
||||||
|
margin-top: 2rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
.domain-nav-item {
|
||||||
|
display: flex;
|
||||||
|
align-items: flex-start;
|
||||||
|
gap: 1rem;
|
||||||
|
cursor: pointer;
|
||||||
|
transition: all 0.22s ease-in-out;
|
||||||
|
opacity: 0.45;
|
||||||
|
user-select: none;
|
||||||
|
position: relative;
|
||||||
|
}
|
||||||
|
|
||||||
|
.domain-nav-item:hover {
|
||||||
|
opacity: 0.85;
|
||||||
|
transform: translateX(4px);
|
||||||
|
}
|
||||||
|
|
||||||
|
.domain-nav-item.active {
|
||||||
|
opacity: 1;
|
||||||
|
}
|
||||||
|
|
||||||
|
.domain-nav-item .nav-status-node {
|
||||||
|
width: 6px;
|
||||||
|
height: 6px;
|
||||||
|
border-radius: 50%;
|
||||||
|
background: rgba(255, 255, 255, 0.15);
|
||||||
|
margin-top: 0.45rem;
|
||||||
|
flex-shrink: 0;
|
||||||
|
transition: all 0.25s ease-in-out;
|
||||||
|
}
|
||||||
|
|
||||||
|
.domain-nav-item.active .nav-status-node {
|
||||||
|
background: #ff6b35; /* Crisp orange interaction state highlight */
|
||||||
|
box-shadow: 0 0 8px 2px rgba(255, 107, 53, 0.4);
|
||||||
|
}
|
||||||
|
|
||||||
|
.domain-details {
|
||||||
|
display: flex;
|
||||||
|
flex-direction: column;
|
||||||
|
gap: 0.15rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
.domain-name {
|
||||||
|
font-size: 0.95rem;
|
||||||
|
font-weight: 500;
|
||||||
|
color: #ffffff;
|
||||||
|
letter-spacing: -0.1px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.domain-desc {
|
||||||
|
font-size: 0.76rem;
|
||||||
|
color: rgba(255, 255, 255, 0.38);
|
||||||
|
line-height: 1.2;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* ==========================================================================
|
||||||
|
4. CENTRAL SHIELD ARCHITECTURAL DIVIDER AXIS
|
||||||
|
========================================================================== */
|
||||||
|
|
||||||
|
.workspace-wing {
|
||||||
|
padding: 2.5rem 2rem;
|
||||||
|
display: flex;
|
||||||
|
flex-direction: column;
|
||||||
|
}
|
||||||
|
|
||||||
|
.left-wing.domain-nav {
|
||||||
|
padding-right: 0.5rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
.central-divider-axis {
|
||||||
|
position: relative;
|
||||||
|
width: 60px;
|
||||||
|
display: flex;
|
||||||
|
justify-content: center;
|
||||||
|
align-items: center;
|
||||||
|
height: 100%;
|
||||||
|
}
|
||||||
|
|
||||||
|
.divider-core-line {
|
||||||
|
width: 1px;
|
||||||
|
height: 100%;
|
||||||
|
background: linear-gradient( to bottom, rgba(255, 107, 53, 0) 0%, rgba(255, 107, 53, 0.12) 20%, rgba(255, 107, 53, 0.8) 50%, rgba(255, 107, 53, 0.12) 80%, rgba(255, 107, 53, 0) 100% );
|
||||||
|
}
|
||||||
|
|
||||||
|
.camel-glow-left {
|
||||||
|
position: absolute;
|
||||||
|
right: 50%;
|
||||||
|
top: 50%;
|
||||||
|
transform: translateY(-50%);
|
||||||
|
width: 45px;
|
||||||
|
height: 280px;
|
||||||
|
border-radius: 50% 0 0 50%;
|
||||||
|
background: radial-gradient( ellipse at right, rgba(255, 107, 53, 0.07) 0%, rgba(255, 107, 53, 0.02) 55%, rgba(0, 0, 0, 0) 85% );
|
||||||
|
filter: blur(6px);
|
||||||
|
pointer-events: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
.camel-glow-right {
|
||||||
|
position: absolute;
|
||||||
|
left: 50%;
|
||||||
|
top: 50%;
|
||||||
|
transform: translateY(-50%);
|
||||||
|
width: 45px;
|
||||||
|
height: 280px;
|
||||||
|
border-radius: 0 50% 50% 0;
|
||||||
|
background: radial-gradient( ellipse at left, rgba(255, 107, 53, 0.07) 0%, rgba(255, 107, 53, 0.02) 55%, rgba(0, 0, 0, 0) 85% );
|
||||||
|
filter: blur(6px);
|
||||||
|
pointer-events: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
.page-header {
|
||||||
|
display: flex;
|
||||||
|
justify-content: space-between;
|
||||||
|
align-items: center;
|
||||||
|
margin-bottom: 1.5rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
.panel-title-lbl {
|
||||||
|
font-size: 0.72rem;
|
||||||
|
color: #ff6b35;
|
||||||
|
font-weight: 700;
|
||||||
|
text-transform: uppercase;
|
||||||
|
letter-spacing: 1.5px;
|
||||||
|
}
|
||||||
@@ -16,7 +16,8 @@
|
|||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
|
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<PackageReference Include="LiteCharms.Features" Version="1.32.0" />
|
<PackageReference Include="LiteCharms.Features" Version="1.34.0" />
|
||||||
|
<PackageReference Include="Microsoft.AspNetCore.Components.QuickGrid" Version="10.0.8" />
|
||||||
<PackageReference Include="Polly" Version="8.6.6" />
|
<PackageReference Include="Polly" Version="8.6.6" />
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
|
|
||||||
@@ -25,8 +26,8 @@
|
|||||||
<PackageReference Include="Microsoft.AspNetCore.Authentication.OpenIdConnect" Version="10.0.8" />
|
<PackageReference Include="Microsoft.AspNetCore.Authentication.OpenIdConnect" Version="10.0.8" />
|
||||||
|
|
||||||
<!-- Global Usings -->
|
<!-- Global Usings -->
|
||||||
<Using Include="Microsoft.AspNetCore.Authentication.Cookies"/>
|
<Using Include="Microsoft.AspNetCore.Authentication.Cookies" />
|
||||||
<Using Include="Microsoft.AspNetCore.Authentication.OpenIdConnect"/>
|
<Using Include="Microsoft.AspNetCore.Authentication.OpenIdConnect" />
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
|
|
||||||
<!-- UI -->
|
<!-- UI -->
|
||||||
@@ -57,6 +58,7 @@
|
|||||||
|
|
||||||
<!-- Shared Global Usings -->
|
<!-- Shared Global Usings -->
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
|
<Using Include="Microsoft.AspNetCore.Components.QuickGrid" />
|
||||||
<Using Include="Microsoft.AspNetCore.HttpOverrides" />
|
<Using Include="Microsoft.AspNetCore.HttpOverrides" />
|
||||||
<Using Include="Microsoft.AspNetCore.Authentication" />
|
<Using Include="Microsoft.AspNetCore.Authentication" />
|
||||||
<Using Include="Blazored.Toast" />
|
<Using Include="Blazored.Toast" />
|
||||||
|
|||||||
Reference in New Issue
Block a user