Skip to content

Commit

Permalink
update stream filter to use work streams
Browse files Browse the repository at this point in the history
  • Loading branch information
esizer committed Jan 10, 2025
1 parent 3b0cef8 commit b66a505
Showing 1 changed file with 11 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -71,13 +71,6 @@ const PoolCandidateFilterDialog_Query = graphql(/* GraphQL */ `
fr
}
}
streams: localizedEnumStrings(enumName: "PoolStream") {
value
label {
en
fr
}
}
statuses: localizedEnumStrings(enumName: "PoolCandidateStatus") {
value
label {
Expand Down Expand Up @@ -115,6 +108,12 @@ const PoolCandidateFilterDialog_Query = graphql(/* GraphQL */ `
fr
}
}
workStreams {
id
name {
localized
}
}
}
`);

Expand All @@ -136,6 +135,7 @@ const PoolCandidateFilterDialog = ({
const classifications = unpackMaybes(data?.classifications);
const skills = unpackMaybes(data?.skills);
const communities = unpackMaybes(data?.communities);
const workStreams = unpackMaybes(data?.workStreams);

const equityOption = (value: string, message: MessageDescriptor) => ({
value,
Expand Down Expand Up @@ -214,7 +214,10 @@ const PoolCandidateFilterDialog = ({
name="stream"
isMulti
label={intl.formatMessage(adminMessages.streams)}
options={localizedEnumToOptions(data?.streams, intl)}
options={workStreams.map((workStream) => ({
value: workStream.id,
label: workStream.name?.localized,
}))}
/>
<Combobox
id="poolCandidateStatus"
Expand Down

0 comments on commit b66a505

Please sign in to comment.