-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: remise des icones de status et ajout de l'index de question (#1021
) * feat: remise des icones de status et ajout de l'index de question * fix: hasura perm * fix: css dark mode bugs * fix: update url search with query * Update targets/frontend/src/components/contributions/questionList/QuestionRow.tsx Co-authored-by: Martial Maillot <[email protected]> * fix(ui): breadcrumb style + menu collapse (#1022) * fix: test --------- Co-authored-by: Victor Zeinstra <[email protected]> Co-authored-by: Caroline <[email protected]> Co-authored-by: Martial Maillot <[email protected]>
- Loading branch information
1 parent
530043d
commit d734c39
Showing
32 changed files
with
473 additions
and
394 deletions.
There are no files selected for viewing
25 changes: 25 additions & 0 deletions
25
targets/frontend/__mocks__/@codegouvfr/react-dsfr/index.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
const DEFAULT_VARIANTS = { | ||
default: { | ||
error: {}, | ||
info: {}, | ||
warning: {}, | ||
success: {}, | ||
grey: {}, | ||
}, | ||
}; | ||
module.exports = { | ||
fr: { | ||
colors: { | ||
decisions: { | ||
text: { | ||
...DEFAULT_VARIANTS, | ||
actionHigh: { blueCumulus: {} }, | ||
label: { greenBourgeon: {} }, | ||
}, | ||
background: { | ||
...DEFAULT_VARIANTS, | ||
}, | ||
}, | ||
}, | ||
}, | ||
}; |
3 changes: 3 additions & 0 deletions
3
targets/frontend/__mocks__/@codegouvfr/react-dsfr/useIsDark.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
module.exports = { | ||
useIsDark: jest.fn().mockReturnValue(false), | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
const route = jest.fn(); | ||
const router = { | ||
asPath: "mock", | ||
pathname: "mock", | ||
push: jest.fn((path) => { | ||
route(path); | ||
return Promise.resolve(); | ||
}), | ||
query: { q: "" }, | ||
route, | ||
}; | ||
|
||
module.exports = { | ||
...jest.requireActual("next/router"), | ||
|
||
useRouter: () => router, | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -18,6 +18,7 @@ query contribution_answer($id: uuid) { | |
question { | ||
id | ||
content | ||
order | ||
} | ||
agreement { | ||
id | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.