feat(dashboard): stepwise Jalali birthday picker + correct send direction

- JalaliDatePicker gains an opt-in `stepwise` mode (year → month → day): the
  year step is a scrollable list from the current Jalali year down to 1332,
  used by the birthday field. Default-off so appointment/panel pickers keep
  the month-grid behavior. Parse incoming Jalali string values safely
  (fixes NaN keys).
- Birthday create path now converts Jalali→Unix on send (changeDateType true),
  matching the update path and the Unix-based backend contract.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
hamed
2026-06-16 11:42:45 +03:30
co-authored by Claude Opus 4.8
parent 7949da9ba9
commit bdf453a3ab
5 changed files with 411 additions and 152 deletions
@@ -27,7 +27,7 @@ function ButtonSendData({
const postData = () => {
request
.postUserProfile(changeDateType(information, false))
.postUserProfile(changeDateType(information, true))
.then((response) => {
if (response.uuid) {
fetch("/api/auth/refresh", {