Skip to content

Commit e036f0a

Browse files
committed
chore: Update OTS terminology
1 parent c483b20 commit e036f0a

File tree

5 files changed

+8
-8
lines changed

5 files changed

+8
-8
lines changed

src/app/training/(dashboard)/SessionsTable.tsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -70,10 +70,10 @@ const ExpandedSessionRow: React.FC<ExpandedSessionRowProps> = ({ data }) => (
7070
>
7171
<OTSStatusIcon status={data.ots_status} />
7272
{data.ots_status === SessionOTSStatus.Passed
73-
? 'Passed OTS Examination'
73+
? 'Passed Rating Examination'
7474
: data.ots_status === SessionOTSStatus.Failed
75-
? 'Failed OTS Examination'
76-
: 'Recommended for OTS Examination'}
75+
? 'Failed Rating Examination'
76+
: 'Recommended for Rating Examination'}
7777
</div>
7878
)}
7979
{data.solo_granted && (
@@ -180,7 +180,7 @@ export const SessionsTable: React.FC<SessionsTableProps> = ({ data }) => {
180180
width: '110px',
181181
},
182182
{
183-
name: 'OTS',
183+
name: 'Rating Exam',
184184
selector: (row) => row.ots_status,
185185
sortable: true,
186186
format: (row) => <OTSStatusIcon status={row.ots_status} />,

src/app/training/selectOptions.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ export const sessionTypes = Object.entries(SESSION_TYPE_STRING).map(([value, lab
55
export const sessionLevels = Object.entries(SESSION_LEVEL_STRING).map(([value, label]) => ({ value: Number(value), label }));
66

77
export const otsStatuses = [
8-
{ value: 0, label: 'Non-OTS' },
8+
{ value: 0, label: 'N/A' },
99
{ value: 1, label: 'Passed' },
1010
{ value: 2, label: 'Failed' },
1111
{ value: 3, label: 'Recommended' },

src/app/training/session/[id]/SessionForm.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,7 @@ export const SessionForm: React.FC<FileSessionFormProps> = ({ editing = false, s
168168
<SelectInput
169169
{...field}
170170
className="xl:col-span-2"
171-
label="OTS Status"
171+
label="Rating Exam"
172172
error={errors.ots_status?.message}
173173
options={otsStatuses}
174174
/>

src/app/training/session/[id]/file/page.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ const FileSession: NextPage<FileSessionParams> = async ({ params }) => {
5858
student failed to appear for the session or if the session was cancelled.
5959
</p>
6060
<p>
61-
If this session is an OTS examination, submit the OTS form separately as a supplement to this note at
61+
If this session is a rating examination, submit the rating examination form separately as a supplement to this note at
6262
{' '}
6363
<a href="https://www.vatusa.net/mgt/controller/1339822/promote" target="_blank" rel="noreferrer">
6464
https://www.vatusa.net/mgt/controller/1339822/promote

src/types/training.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ export const SESSION_TYPE_STRING = {
1111
[SessionType.Classroom]: 'Classroom',
1212
[SessionType.Sweatbox]: 'Sweatbox',
1313
[SessionType.Online]: 'Online',
14-
[SessionType.OTS]: 'OTS',
14+
[SessionType.OTS]: 'Rating Exam',
1515
};
1616

1717
export enum SessionLevel {

0 commit comments

Comments
 (0)