feat(client): add client's page + CRUD operations modals

This commit is contained in:
2026-03-13 05:09:55 +08:00
parent 3948505a30
commit bbf7dfad2e
13 changed files with 588 additions and 14 deletions

View File

@@ -151,6 +151,7 @@ export const en = {
noUsersFound: "No user found",
selectRole: "Select Role",
add: "Add",
searchPlaceholder: "Seach Workspaces...",
orderByUpdatedDesc: "Recently Updated",
orderByCreatedDesc: "Newest First",
orderByCreatedAsc: "Oldest First",
@@ -179,5 +180,35 @@ export const en = {
errorLoad: "Failed to load workspace data.",
cannotAddSelf: "You are automatically the owner.",
},
}
},
clients: {
title: "Clients",
description: (workspaceName: string) => `Manage clients for ${workspaceName}`,
addClient: "Add Client",
searchPlaceholder: "Search clients...",
noClients: "No clients found",
noClientsSearch: "Try adjusting your search query.",
noClientsAdd: "Add your first client to get started.",
addedOn: "Added",
selectWorkspace: "Please select a workspace first.",
modalTitle: "Create New Client",
clientName: "Client Name",
clientNamePlaceholder: "e.g. Acme Corp",
notes: "Notes",
notesPlaceholder: "Optional details...",
create: "Create",
cancel: "Cancel",
editClient: "Edit Client",
deleteConfirmTitle: "Delete Client",
deleteConfirmMessage: (name: string) => `Are you sure you want to delete ${name}?`,
delete: "Delete",
saveChanges: "Save Changes",
errors: {
createFailed: "Failed to create client",
fetchFailed: "Failed to fetch clients",
updateFailed: "Failed to update client",
deleteFailed: "Failed to delete client"
}
},
}