Giter Club home page Giter Club logo

Comments (3)

edavidsonsawyer avatar edavidsonsawyer commented on May 24, 2024 1

@kevinrobinson it looks like this would be easy enough to fix by falling back to the existing date if the filterFromDate or filterToDate were null. However playing with the component it seems like the real problem might be that trying to change the date (eg. hitting delete) doesn't actually allow you to input a manual date and instead changes the date in unexpected ways, eventually leading to this error. The options I see are

  1. Ensure keyboard import doesn't change the datepicker range, and rely on the modal calendars to set the dates,

  2. Fix the input and make the date ranges editable while preventing invalid input

Option 2 is consistent with the service recorder so that seems like the way to go unless there's a reason I'm missing to stop users from manually setting pdf dates. Does that sound right to you?

from studentinsights.

edavidsonsawyer avatar edavidsonsawyer commented on May 24, 2024 1

@kevinrobinson great! I've got a branch that solves those problems so I'll add some tests and poke around with it to make sure it's working as expected and submit a PR

from studentinsights.

kevinrobinson avatar kevinrobinson commented on May 24, 2024

@edavidsonsawyer Cool, awesome investigation! 👍

I agree that it's a UX issue primarily if folks can't just type a date in the text box. I also agree that option 2 sounds like the right direction - users need to be able to:

  • see default date sets when the open the dialog
  • be able to use the datepicker to pick different dates
  • be able to type dates in the textbox
  • either get feedback on invalid dates or be prevented from clicking "Generate" when invalid (rare occurrence)

Given that, the code or internals for that component could change however they need to to meet those goals.

from studentinsights.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.