Add report logos and configurable folder scan depth
Report branding (top-left MSP logo, top-right client logo): - Add MspLogo to AppSettings; client logo already on TenantProfile - IUserSessionService.CurrentBranding composes MSP + active profile logo - New reusable LogoUpload component (InputFile -> base64 LogoData, 512KB cap) - MSP logo upload in Settings; optional client logo in profile create/edit - Wire ReportBranding into all 6 HTML export pages - Fix EditProfile dropping ClientLogo on edit Storage metrics: expose folder scan depth (0-20) in scan options UI, passed to existing StorageScanOptions.FolderDepth recursion. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -146,6 +146,12 @@
|
||||
}
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<label class="form-label">Client logo (optional)</label>
|
||||
<small class="text-muted d-block" style="margin-bottom:6px">Shown top-right on exported reports for this client.</small>
|
||||
<LogoUpload Value="_form.ClientLogo" ValueChanged="(LogoData? l) => _form.ClientLogo = l" />
|
||||
</div>
|
||||
|
||||
<div class="flex-row mt-8">
|
||||
<button class="btn btn-primary" @onclick="SaveProfile">Save</button>
|
||||
<button class="btn btn-secondary" @onclick="CancelForm">Cancel</button>
|
||||
@@ -214,7 +220,7 @@
|
||||
private void EditProfile(TenantProfile p)
|
||||
{
|
||||
_editing = p;
|
||||
_form = new TenantProfile { Id = p.Id, Name = p.Name, TenantUrl = p.TenantUrl, TenantId = p.TenantId, ClientId = p.ClientId };
|
||||
_form = new TenantProfile { Id = p.Id, Name = p.Name, TenantUrl = p.TenantUrl, TenantId = p.TenantId, ClientId = p.ClientId, ClientLogo = p.ClientLogo };
|
||||
_showForm = true;
|
||||
_formError = _pageError = string.Empty;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user