feat(workspaces): add FilterBar component and search/ordering to Workspaces.tsx

This commit is contained in:
2026-03-12 21:47:19 +08:00
parent 5e4f4ec6e4
commit 228de3c180
5 changed files with 261 additions and 87 deletions

View File

@@ -130,8 +130,33 @@ export const en = {
view: "View",
edit: "Edit",
delete: "Delete",
emptyState: "You are not a member of any workspace."
}
emptyState: "You are not a member of any workspace.",
createTitle: "Create Workspace",
editTitle: "Edit Workspace",
detailTitle: "Workspace Details",
save: "Save",
create: "Create",
back: "Back to Workspaces",
roleLabel: "Your Role",
roles: {
owner: "Owner",
admin: "Admin",
member: "Member",
guest: "Guest",
},
createdSuccess: "Workspace created successfully",
updatedSuccess: "Workspace updated successfully",
fetchError: "Failed to load workspace data",
remove: "Remove",
noUsersFound: "No user found",
selectRole: "Select Role",
add: "Add",
orderByUpdatedDesc: "Recently Updated",
orderByCreatedDesc: "Newest First",
orderByCreatedAsc: "Oldest First",
orderByName: "Name (A-Z)",
deleteSuccess: "Workspace deleted successfully",
deleteTitle: "Delete Workspace",
deleteWarning: "To confirm deletion, please type the workspace name:",
},
}