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:
@@ -13,7 +13,7 @@ import { companyMemberships } from '@/lib/db/schema';
|
||||
import { eq } from 'drizzle-orm';
|
||||
import { ConflictError, NotFoundError, ValidationError } from '@/lib/errors';
|
||||
|
||||
describe('company-memberships.service — addMembership', () => {
|
||||
describe('company-memberships.service - addMembership', () => {
|
||||
it('creates a membership for a valid client + company in the same port', async () => {
|
||||
const port = await makePort();
|
||||
const company = await makeCompany({ portId: port.id });
|
||||
@@ -122,7 +122,7 @@ describe('company-memberships.service — addMembership', () => {
|
||||
});
|
||||
});
|
||||
|
||||
describe('company-memberships.service — updateMembership', () => {
|
||||
describe('company-memberships.service - updateMembership', () => {
|
||||
it('updates fields', async () => {
|
||||
const port = await makePort();
|
||||
const company = await makeCompany({ portId: port.id });
|
||||
@@ -180,7 +180,7 @@ describe('company-memberships.service — updateMembership', () => {
|
||||
});
|
||||
});
|
||||
|
||||
describe('company-memberships.service — setPrimary', () => {
|
||||
describe('company-memberships.service - setPrimary', () => {
|
||||
it('sets only one membership as primary per company (atomic un-primary others)', async () => {
|
||||
const port = await makePort();
|
||||
const company = await makeCompany({ portId: port.id });
|
||||
@@ -222,7 +222,7 @@ describe('company-memberships.service — setPrimary', () => {
|
||||
makeAuditMeta({ portId: port.id }),
|
||||
);
|
||||
|
||||
// Mark all primary via the service — only the last call should leave a
|
||||
// Mark all primary via the service - only the last call should leave a
|
||||
// single primary survivor (m3).
|
||||
await setPrimary(m1.id, port.id, makeAuditMeta({ portId: port.id }));
|
||||
await setPrimary(m2.id, port.id, makeAuditMeta({ portId: port.id }));
|
||||
@@ -262,7 +262,7 @@ describe('company-memberships.service — setPrimary', () => {
|
||||
});
|
||||
});
|
||||
|
||||
describe('company-memberships.service — endMembership', () => {
|
||||
describe('company-memberships.service - endMembership', () => {
|
||||
it('sets endDate', async () => {
|
||||
const port = await makePort();
|
||||
const company = await makeCompany({ portId: port.id });
|
||||
@@ -293,7 +293,7 @@ describe('company-memberships.service — endMembership', () => {
|
||||
});
|
||||
});
|
||||
|
||||
describe('company-memberships.service — listByCompany / listByClient', () => {
|
||||
describe('company-memberships.service - listByCompany / listByClient', () => {
|
||||
it('returns active memberships only by default', async () => {
|
||||
const port = await makePort();
|
||||
const company = await makeCompany({ portId: port.id });
|
||||
|
||||
Reference in New Issue
Block a user