-
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.
Merge branch 'main' of github.com:betagouv/pitchou into rm-ts-to-jsdoc
* 'main' of github.com:betagouv/pitchou: Réduction de la largeur tableau suivi (#139) Supprimer action attendue (#138) Stocker le département principal si ce dernier est rempli en cas d'absence des autres infos de localisation (#137)
- Loading branch information
Showing
11 changed files
with
117 additions
and
58 deletions.
There are no files selected for viewing
19 changes: 19 additions & 0 deletions
19
migrations/20241219145031_suppression-prochaine-action-attendue.js
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,19 @@ | ||
/** | ||
* @param { import("knex").Knex } knex | ||
* @returns { Promise<void> } | ||
*/ | ||
export function up(knex) { | ||
return knex.schema.alterTable('dossier', (table) => { | ||
table.dropColumn('prochaine_action_attendue') | ||
}); | ||
}; | ||
|
||
/** | ||
* @param { import("knex").Knex } knex | ||
* @returns { Promise<void> } | ||
*/ | ||
export function down(knex) { | ||
return knex.schema.alterTable('dossier', (table) => { | ||
table.string('prochaine_action_attendue') | ||
}); | ||
}; |
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 |
---|---|---|
@@ -0,0 +1,57 @@ | ||
<script> | ||
//@ts-check | ||
/** @type {'écologique' | 'politique'} */ | ||
export let enjeu | ||
// https://www.systeme-de-design.gouv.fr/composants-et-modeles/composants/tag/ | ||
/** @type {'SM' | 'MD'} */ | ||
export let taille = 'MD' | ||
/** @type {string[]} */ | ||
export let classes = [] | ||
/** @type {Map<typeof enjeu, string>} */ | ||
const enjeuToClass = new Map([ | ||
['écologique', 'enjeu--écologique'], | ||
['politique', 'enjeu--politique'], | ||
]) | ||
/** @type {Map<typeof taille, string>} */ | ||
const tailleToClass = new Map([ | ||
['SM', 'fr-tag--sm'], | ||
['MD', 'fr-tag--md'] | ||
]) | ||
$: allClasses = [ | ||
'fr-tag', | ||
tailleToClass.get(taille), | ||
enjeuToClass.get(enjeu), | ||
...classes | ||
].filter(x => !!x) | ||
</script> | ||
|
||
<p class={allClasses.join(' ')}>{enjeu}</p> | ||
|
||
<style lang="scss"> | ||
$couleur-enjeu-écologique: var(--background-flat-green-emeraude); | ||
$couleur-enjeu-politique: var(--background-flat-blue-ecume); | ||
p{ | ||
white-space: nowrap; | ||
} | ||
p{ | ||
&.enjeu--écologique{ | ||
background-color: $couleur-enjeu-écologique; | ||
color: var(--text-inverted-blue-ecume); | ||
} | ||
&.enjeu--politique{ | ||
background-color: $couleur-enjeu-politique; | ||
color: var(--text-inverted-green-emeraude); | ||
} | ||
} | ||
</style> |
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
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