Skip to content

Commit

Permalink
Standardise title & label cases
Browse files Browse the repository at this point in the history
  • Loading branch information
luca-vari committed Nov 6, 2024
1 parent f0d2dbf commit 9898fde
Show file tree
Hide file tree
Showing 6 changed files with 16 additions and 16 deletions.
10 changes: 5 additions & 5 deletions frontend/src/comps/case-table.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ interface TableField {
const FIELDS: TableField[] = [
{
name: 'fileref',
label: 'File Ref',
label: 'File ref',
getValue: (issue) => <a href={issue.url}>{issue.fileref}</a>,
},
{ name: 'topic', label: 'Topic', getValue: (issue) => issue.topic_display },
Expand Down Expand Up @@ -108,7 +108,7 @@ const FIELDS: TableField[] = [
},
{
name: 'next_review',
label: 'Next Review Due',
label: 'Next review due',
getValue: (issue) => issue.next_review || '-',
getColor: getNextReviewColor,
},
Expand All @@ -124,7 +124,7 @@ const FIELDS: TableField[] = [
},
{
name: 'provided_legal_services',
label: 'Advice',
label: 'Advice?',
getValue: (issue) =>
issue.provided_legal_services ? (
<Icon name="check" color="green" />
Expand All @@ -139,7 +139,7 @@ const FIELDS: TableField[] = [
},
{
name: 'is_conflict_check',
label: 'Conflict Check Performed',
label: 'Conflict check performed?',
getValue: (issue) =>
issue.is_conflict_check ? (
<Icon name="check" color="green" />
Expand All @@ -149,7 +149,7 @@ const FIELDS: TableField[] = [
},
{
name: 'is_eligibility_check',
label: 'Eligibility Check Performed',
label: 'Eligibility check performed?',
getValue: (issue) =>
issue.is_eligibility_check ? (
<Icon name="check" color="green" />
Expand Down
2 changes: 1 addition & 1 deletion frontend/src/forms/person.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ export const PersonForm: React.FC<PersonFormProps> = ({
}) => (
<Form onSubmit={handleSubmit} error={Object.keys(errors).length > 0}>
<div className={`field ${errors.full_name && 'error'}`}>
<label>Full Name</label>
<label>Full name</label>
<Input
placeholder="Jane Doe"
value={values.full_name}
Expand Down
4 changes: 2 additions & 2 deletions frontend/src/pages/doc-template-list.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -102,8 +102,8 @@ const App = () => {
<Table.Row>
<Table.HeaderCell>Name</Table.HeaderCell>
<Table.HeaderCell>Topic</Table.HeaderCell>
<Table.HeaderCell>Created At</Table.HeaderCell>
<Table.HeaderCell>Modified At</Table.HeaderCell>
<Table.HeaderCell>Created</Table.HeaderCell>
<Table.HeaderCell>Modified</Table.HeaderCell>
<Table.HeaderCell>Actions</Table.HeaderCell>
</Table.Row>
</Table.Header>
Expand Down
2 changes: 1 addition & 1 deletion frontend/src/pages/email-template-list.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ const App = () => {
<Table.HeaderCell>Name</Table.HeaderCell>
<Table.HeaderCell>Topic</Table.HeaderCell>
<Table.HeaderCell>Subject</Table.HeaderCell>
<Table.HeaderCell>Created At</Table.HeaderCell>
<Table.HeaderCell>Created</Table.HeaderCell>
</Table.Row>
</Table.Header>
<Table.Body>
Expand Down
2 changes: 1 addition & 1 deletion frontend/src/pages/notify-template-list.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ const App = () => {
<Table.HeaderCell>Event</Table.HeaderCell>
<Table.HeaderCell>Channel</Table.HeaderCell>
<Table.HeaderCell>Target</Table.HeaderCell>
<Table.HeaderCell>Created At</Table.HeaderCell>
<Table.HeaderCell>Created</Table.HeaderCell>
</Table.Row>
</Table.Header>
<Table.Body>
Expand Down
12 changes: 6 additions & 6 deletions frontend/src/pages/paralegal-list.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -100,29 +100,29 @@ const ParalegalTable: React.FC<ParalegalTableProps> = ({ accounts }) => (
<Table.Header>
<Table.Row>
<Table.HeaderCell>Name</Table.HeaderCell>
<Table.HeaderCell textAlign="center">Latest Case</Table.HeaderCell>
<Table.HeaderCell textAlign="center">Latest case</Table.HeaderCell>
<Table.HeaderCell textAlign="center">Capacity (%)</Table.HeaderCell>
<Table.HeaderCell textAlign="center">
Total
<br />
Open
open
</Table.HeaderCell>
<Table.HeaderCell textAlign="center">
Repairs
<br />
Open
open
</Table.HeaderCell>
<Table.HeaderCell textAlign="center">
Bonds
<br />
Open
open
</Table.HeaderCell>
<Table.HeaderCell textAlign="center">
Eviction
<br />
Open
open
</Table.HeaderCell>
<Table.HeaderCell textAlign="center">Total Cases</Table.HeaderCell>
<Table.HeaderCell textAlign="center">Total cases</Table.HeaderCell>
</Table.Row>
</Table.Header>
<Table.Body>
Expand Down

0 comments on commit 9898fde

Please sign in to comment.