chore(autonomous-session): consolidate uncommitted work from prior session
Bundles the prior autonomous-session output that was sitting unstaged: - Em-dash sweep across src/ + tests/ (en-dash/em-dash to hyphen, ~2280 instances) - country-flag-icons rollout (CountryFlag component, replaces emoji glyphs that never rendered on Windows; lazy-loads the 3x2 SVG index as a single chunk after the per-subpath dynamic-import approach silently failed in webpack) - Admin IA Phase 1+2: 7-domain regroup, 41 to 38 pages, /admin/berths index, redirects (ocr to ai, reports to dashboard, invitations to users), docs/admin-ia-proposal.md - Per-template email tester (registry + endpoint + UI on Email admin page) - Cancel-document mode picker (delete-from-Documenso vs keep-for-audit) - Dashboard PDF report: 25 widgets, SVG charts, date-range picker, 11 resolvers - Customize-widgets per-region sortables at xl+ (charts/rails/feed); single flat sortable below xl when the layout stacks; per-viewport saved orders - Audit doc updates capturing each shipped item - Lint fixes: react-compiler immutability in DonutChart (reduce instead of let-reassign), set-state-in-effect disables in CountryFlag and UploadForSigning preview-bytes effect, unused 'confirm' destructures in interest contract + reservation tabs, unescaped apostrophe in test-template card copy
This commit is contained in:
@@ -66,7 +66,7 @@ async function checkPermission(
|
||||
|
||||
// ─── super_admin ──────────────────────────────────────────────────────────────
|
||||
|
||||
describe('Permission Matrix — super_admin', () => {
|
||||
describe('Permission Matrix - super_admin', () => {
|
||||
const ctx = makeCtx({ isSuperAdmin: true, permissions: null });
|
||||
|
||||
it('can access clients.create', async () => {
|
||||
@@ -88,7 +88,7 @@ describe('Permission Matrix — super_admin', () => {
|
||||
|
||||
// ─── viewer ───────────────────────────────────────────────────────────────────
|
||||
|
||||
describe('Permission Matrix — viewer', () => {
|
||||
describe('Permission Matrix - viewer', () => {
|
||||
const ctx = makeCtx({ permissions: makeViewerPermissions() });
|
||||
|
||||
it('can view clients', async () => {
|
||||
@@ -122,7 +122,7 @@ describe('Permission Matrix — viewer', () => {
|
||||
|
||||
// ─── sales_agent ─────────────────────────────────────────────────────────────
|
||||
|
||||
describe('Permission Matrix — sales_agent', () => {
|
||||
describe('Permission Matrix - sales_agent', () => {
|
||||
const ctx = makeCtx({ permissions: makeSalesAgentPermissions() });
|
||||
|
||||
it('can view clients', async () => {
|
||||
@@ -168,7 +168,7 @@ describe('Permission Matrix — sales_agent', () => {
|
||||
|
||||
// ─── sales_manager ────────────────────────────────────────────────────────────
|
||||
|
||||
describe('Permission Matrix — sales_manager', () => {
|
||||
describe('Permission Matrix - sales_manager', () => {
|
||||
const ctx = makeCtx({ permissions: makeSalesManagerPermissions() });
|
||||
|
||||
it('can do everything with clients', async () => {
|
||||
@@ -192,7 +192,7 @@ describe('Permission Matrix — sales_manager', () => {
|
||||
|
||||
// ─── director ─────────────────────────────────────────────────────────────────
|
||||
|
||||
describe('Permission Matrix — director', () => {
|
||||
describe('Permission Matrix - director', () => {
|
||||
const ctx = makeCtx({ permissions: makeDirectorPermissions() });
|
||||
|
||||
it('can manage webhooks', async () => {
|
||||
@@ -210,7 +210,7 @@ describe('Permission Matrix — director', () => {
|
||||
|
||||
// ─── deepMerge ────────────────────────────────────────────────────────────────
|
||||
|
||||
describe('deepMerge — permission override merging', () => {
|
||||
describe('deepMerge - permission override merging', () => {
|
||||
it('overrides a single leaf value', () => {
|
||||
const base = { clients: { view: true, create: false } };
|
||||
const override = { clients: { create: true } };
|
||||
|
||||
Reference in New Issue
Block a user