Skip to content

Commit

Permalink
Language changes to filter PA/ESS and alerts by time
Browse files Browse the repository at this point in the history
- https://app.asana.com/0/1185117109217413/1208918421836698
- "Now" switched to "Live"
- "Done" switched to "Past"
- "Current Service Disruption" to "Ongoing service disruption"
- "Planned Service Disruption" to "Upcoming service disruption"
  • Loading branch information
dshi authored and deanshi committed Feb 3, 2025
1 parent fd8fdd5 commit efba9ca
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ const AssociateAlert = ({ onApply, onCancel }: AssociateAlertPageProps) => {
selectedFilter={selectedMessageState}
onFilterSelect={setSelectedMessageState}
filters={[
{ label: "Active", value: "active" },
{ label: "Live", value: "active" },
{ label: "Future", value: "future" },
]}
/>
Expand Down
8 changes: 4 additions & 4 deletions assets/js/components/Dashboard/PaMessagesPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -161,19 +161,19 @@ const PaMessagesPage: ComponentType = () => {
</section>
<FilterGroup
className="mb-5"
header="Filter by message state"
header="Message state"
onFilterSelect={(selected) =>
setStateFilter(selected as StateFilter)
}
selectedFilter={stateFilter.toLowerCase()}
filters={[
{ label: "Now", value: "current" },
{ label: "Live", value: "current" },
{ label: "Future", value: "future" },
{ label: "Done", value: "past" },
{ label: "Past", value: "past" },
]}
/>
<FilterGroup
header="Filter by service type"
header="Service type"
onFilterSelect={(selected) => {
const serviceType = selected as ServiceType;
if (serviceType === "All") {
Expand Down
4 changes: 2 additions & 2 deletions assets/js/components/Dashboard/PriorityPicker.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,8 @@ const PriorityPicker = ({
<Dropdown.Menu role="listbox">
{[
"Emergency",
"Current Service Disruption",
"Planned Service Disruption",
"Ongoing service disruption",
"Upcoming service disruption",
"PSA Message",
].map((label, index) => {
const priorityIndex = index + 1;
Expand Down

0 comments on commit efba9ca

Please sign in to comment.