Skip to content

ETQ admin, ajouter l'option "date de naissance" au champ date#12914

Merged
mmagn merged 6 commits into
mainfrom
fix-12890
Apr 7, 2026
Merged

ETQ admin, ajouter l'option "date de naissance" au champ date#12914
mmagn merged 6 commits into
mainfrom
fix-12890

Conversation

@mmagn

@mmagn mmagn commented Apr 1, 2026

Copy link
Copy Markdown
Contributor

Ajoute une option birthdate sur le TypeDeChamp date qui valide que la date est comprise entre le 1er janvier 1900 et aujourd'hui.

Coté Admin
image

Coté usager
Capture d’écran 2026-04-02 à 19 55 38

Fixes #12890

@mmagn
mmagn force-pushed the fix-12890 branch 2 times, most recently from 62156c8 to 88df618 Compare April 2, 2026 18:17
@mmagn
mmagn marked this pull request as ready for review April 2, 2026 18:19

@LeSim LeSim left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

topi top

Comment thread app/components/types_de_champ_editor/champ_component/champ_component.html.haml Outdated
Comment thread app/validators/date_limit_validator.rb Outdated
Comment thread app/models/type_de_champ.rb Outdated
mmagn and others added 6 commits April 7, 2026 10:36
…hamp date

feat(birthdate): 
feat(birthdate): Ajoute une option birthdate sur le TypeDeChamp date qui valide
feat(birthdate): que la date est comprise entre le 1er janvier 1900 et aujourd'hui.
feat(birthdate): Quand birthdate est actif, il prend précédence sur date_in_past
feat(birthdate): et range_date.
feat(birthdate): 
feat(birthdate): Ref #12890
feat(birthdate): 
feat(birthdate): Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
…s l'UI et l'API

feat(birthdate): 
feat(birthdate): - Ajout du toggle "Date de naissance" dans l'éditeur de champ date
feat(birthdate): - Masquage des options date_in_past/range_date quand birthdate actif
feat(birthdate): - Callback before_save pour effacer les options conflictuelles
feat(birthdate): - Validation client min/max dans DateComponent
feat(birthdate): - Exposition du champ birthdate dans l'API GraphQL
feat(birthdate): - Ajout de :birthdate aux permitted params du controller admin
feat(birthdate): 
feat(birthdate): Ref #12890
feat(birthdate): 
feat(birthdate): Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
…r birthdate

feat(birthdate): 
feat(birthdate): Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
feat(birthdate): 
feat(birthdate): L'option birthdate était absente de OPTS_BY_TYPE pour le type :date,
feat(birthdate): donc clean_options la supprimait lors de publish_new_revision.
feat(birthdate): 
feat(birthdate): Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
… birthdate

feat(birthdate): 
feat(birthdate): Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Co-authored-by: LeSim <mail@simon.lehericey.net>
@mmagn
mmagn added this pull request to the merge queue Apr 7, 2026
Merged via the queue into main with commit 534ea38 Apr 7, 2026
33 of 34 checks passed
@mmagn
mmagn deleted the fix-12890 branch April 7, 2026 14:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

ETQ admin, je peux mettre en option "date de naissance" au champ date

2 participants