Filter level: a reference date before 1 AD looks like an input error

Ouverte
#358 0 commentaires 0 réactions 0 personnes assignées Voir sur GitHub

Les mainteneurs répondent en général sous 1 jour

Personne n'a encore pris cette issue.

Évaluation

Difficulté
3/5
Temps estimé
1-2 jours
Accessibilité débutants
78/100
Type d'issue
Bug
Clarté
Clairement spécifiée
Activité
Active
Stack technique
javascript, react

Piste de recherche

Start with packages/pivotkit-react/src/filter-level.jsx around dayWhole, aria-invalid, and the quick-anchor-date-hint line, then inspect dateInputValue in packages/pivotkit-react/src/menu-ops.js. Add English and German neutral guidance for an applied date the field cannot display, and cover the field with a browser or render test. Done when that case omits aria-invalid, shows the guidance, and existing behavior for dates from 1 AD remains intact.

Rédigé par le modèle d'indexation à partir du texte de l'issue.

Description

idea

Follow-up from the review of #357 (#351).

An <input type="date"> cannot hold a year before 1 AD. When a view's quick choice counts from a reference date before 1 AD (pivotkit-core accepts it, for example from a loaded view), the Filter level shows the date field empty, marks it aria-invalid and shows "Enter a whole date; the ranges still count from 5 BC." That reads as if the user made a mistake. The date that applies is fine; the field simply cannot show it.

Where: the reference date's field in filter-level.jsx (dayWhole, aria-invalid, the quick-anchor-date-hint line) and dateInputValue in menu-ops.js.

Fix: when the field is empty only because the applied date cannot be shown, leave out aria-invalid and show a neutral line instead ("Counts from 5 BC, a date this field cannot show; enter a date to change it."), in English and German. Add a browser or render test that covers the field (none touches quick-anchor-date yet).

Not affected: dates from 1 AD on, which is all real data I know of. Typing a whole date still replaces such a reference date.

Langage dominant
JavaScript
Étoiles
1
Forks
1
Merge moyen
3 h 34 min
PR mergées (30 j)
213

Préparer son environnement

Par où commencer

  1. Lisez l'issue en entier, puis le guide de contribution du projet.
  2. Signalez en commentaire que vous la prenez — cela évite que deux personnes fassent le même travail.
  3. Forkez le dépôt et travaillez sur une branche.
  4. Ouvrez une pull request qui référence le numéro de l'issue.

Autres issues de eizedev/pivotkit

Toutes les issues de eizedev/pivotkit

Issues similaires

Plus d'issues JavaScript

Recevez les nouvelles issues par e-mail

Un résumé court des issues GitHub adaptées aux débutants.