chore: prettier format pass on branch files
Auto-format all files modified during the documents-hub-split feature branch that were not yet aligned with the project's Prettier config (single quotes, semicolons, trailing commas). Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -36,26 +36,19 @@ export default async function PortalDocumentsPage() {
|
||||
<div className="space-y-6">
|
||||
<div>
|
||||
<h1 className="text-2xl font-semibold text-gray-900">Documents</h1>
|
||||
<p className="text-sm text-gray-500 mt-1">
|
||||
Your contracts, EOIs, and signed agreements
|
||||
</p>
|
||||
<p className="text-sm text-gray-500 mt-1">Your contracts, EOIs, and signed agreements</p>
|
||||
</div>
|
||||
|
||||
{documents.length === 0 ? (
|
||||
<div className="bg-white rounded-lg border p-12 text-center">
|
||||
<FileText className="h-10 w-10 text-gray-300 mx-auto mb-3" />
|
||||
<p className="text-gray-500 font-medium">No documents on file</p>
|
||||
<p className="text-sm text-gray-400 mt-1">
|
||||
Documents shared with you will appear here.
|
||||
</p>
|
||||
<p className="text-sm text-gray-400 mt-1">Documents shared with you will appear here.</p>
|
||||
</div>
|
||||
) : (
|
||||
<div className="space-y-3">
|
||||
{documents.map((doc) => (
|
||||
<div
|
||||
key={doc.id}
|
||||
className="bg-white rounded-lg border p-5"
|
||||
>
|
||||
<div key={doc.id} className="bg-white rounded-lg border p-5">
|
||||
<div className="flex items-start gap-4">
|
||||
<FileText className="h-5 w-5 text-gray-400 mt-0.5 flex-shrink-0" />
|
||||
<div className="flex-1 min-w-0">
|
||||
@@ -89,7 +82,11 @@ export default async function PortalDocumentsPage() {
|
||||
: 'text-gray-500'
|
||||
}
|
||||
>
|
||||
{signer.status === 'signed' ? '✓' : signer.status === 'declined' ? '✗' : '○'}
|
||||
{signer.status === 'signed'
|
||||
? '✓'
|
||||
: signer.status === 'declined'
|
||||
? '✗'
|
||||
: '○'}
|
||||
</span>
|
||||
<span className="text-gray-700">{signer.signerName}</span>
|
||||
<span className="text-gray-400 capitalize">
|
||||
|
||||
@@ -8,13 +8,7 @@ import { listRelationships, createRelationship } from '@/lib/services/clients.se
|
||||
|
||||
const createRelationshipSchema = z.object({
|
||||
clientBId: z.string().min(1),
|
||||
relationshipType: z.enum([
|
||||
'referred_by',
|
||||
'broker_for',
|
||||
'family_member',
|
||||
'same_vessel',
|
||||
'custom',
|
||||
]),
|
||||
relationshipType: z.enum(['referred_by', 'broker_for', 'family_member', 'same_vessel', 'custom']),
|
||||
description: z.string().optional(),
|
||||
});
|
||||
|
||||
|
||||
@@ -3,11 +3,7 @@ import { NextResponse } from 'next/server';
|
||||
import { withAuth, withPermission } from '@/lib/api/helpers';
|
||||
import { parseBody } from '@/lib/api/route-helpers';
|
||||
import { errorResponse } from '@/lib/errors';
|
||||
import {
|
||||
getClientById,
|
||||
updateClient,
|
||||
archiveClient,
|
||||
} from '@/lib/services/clients.service';
|
||||
import { getClientById, updateClient, archiveClient } from '@/lib/services/clients.service';
|
||||
import { updateClientSchema } from '@/lib/validators/clients';
|
||||
|
||||
export const GET = withAuth(
|
||||
|
||||
@@ -3,11 +3,7 @@ import { NextResponse } from 'next/server';
|
||||
import { withAuth, withPermission } from '@/lib/api/helpers';
|
||||
import { parseBody } from '@/lib/api/route-helpers';
|
||||
import { errorResponse } from '@/lib/errors';
|
||||
import {
|
||||
getTemplateById,
|
||||
updateTemplate,
|
||||
deleteTemplate,
|
||||
} from '@/lib/services/document-templates';
|
||||
import { getTemplateById, updateTemplate, deleteTemplate } from '@/lib/services/document-templates';
|
||||
import { updateTemplateSchema } from '@/lib/validators/document-templates';
|
||||
|
||||
export const GET = withAuth(
|
||||
|
||||
@@ -3,14 +3,8 @@ import { NextResponse } from 'next/server';
|
||||
import { withAuth, withPermission } from '@/lib/api/helpers';
|
||||
import { parseQuery, parseBody } from '@/lib/api/route-helpers';
|
||||
import { errorResponse } from '@/lib/errors';
|
||||
import {
|
||||
listTemplates,
|
||||
createTemplate,
|
||||
} from '@/lib/services/document-templates';
|
||||
import {
|
||||
listTemplatesSchema,
|
||||
createTemplateSchema,
|
||||
} from '@/lib/validators/document-templates';
|
||||
import { listTemplates, createTemplate } from '@/lib/services/document-templates';
|
||||
import { listTemplatesSchema, createTemplateSchema } from '@/lib/validators/document-templates';
|
||||
|
||||
export const GET = withAuth(
|
||||
withPermission('documents', 'view', async (req, ctx) => {
|
||||
|
||||
@@ -3,11 +3,7 @@ import { NextResponse } from 'next/server';
|
||||
import { withAuth, withPermission } from '@/lib/api/helpers';
|
||||
import { parseBody } from '@/lib/api/route-helpers';
|
||||
import { errorResponse } from '@/lib/errors';
|
||||
import {
|
||||
getExpenseById,
|
||||
updateExpense,
|
||||
archiveExpense,
|
||||
} from '@/lib/services/expenses';
|
||||
import { getExpenseById, updateExpense, archiveExpense } from '@/lib/services/expenses';
|
||||
import { updateExpenseSchema } from '@/lib/validators/expenses';
|
||||
|
||||
export const GET = withAuth(
|
||||
|
||||
Reference in New Issue
Block a user