Skip to content

Commit

Permalink
feat: enable interviewer visu (#94)
Browse files Browse the repository at this point in the history
* chore: change url of visu, use URL from API

* feat: enable other modes:  CATI & CAPI

* bump version to 2.1.5
  • Loading branch information
laurentC35 authored Jun 26, 2024
1 parent 4e3b201 commit b71f58d
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "public-enemy",
"version": "2.1.4",
"version": "2.1.5",
"description": "Check and test questionnaire models",
"repository": {
"type": "git",
Expand Down
4 changes: 3 additions & 1 deletion src/ui/components/ModeListComponent.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,9 @@ export const ModeListComponent = memo(({ questionnaire }: ModeListProps) => {
const getVisiblesModes = (questionnaire: Questionnaire): Mode[] => {
//return questionnaire?.modes?.filter((mode) => mode.isWebMode);
//as long as stromae is the only orchestrator, keep this line below, otherwise use line above
return questionnaire?.modes?.filter((mode) => mode.name === "CAWI");
return questionnaire?.modes?.filter((mode) =>
["CATI", "CAPI", "CAWI"].includes(mode.name)
);
};

return (
Expand Down
2 changes: 1 addition & 1 deletion src/ui/pages/SurveyUnitListPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ export const SurveyUnitListPage = memo((props: SurveyUnitListPageProps) => {
<TableCell align="center">
<a
target="_blank"
href={`${orchestratorUrl}/questionnaire/${surveyUnitsData.questionnaireModelId}/unite-enquetee/${surveyUnit.id}`}
href={surveyUnit.url}
aria-label={intl.formatMessage(
{ id: "survey_unit_list_new_window" },
{ surveyUnitId: surveyUnit.displayableId }
Expand Down

0 comments on commit b71f58d

Please sign in to comment.