Popup calendar replacement warning

"John P. Rouillard" <[email protected]> Wed, 15 Jan 2025 23:12:31 -0500
Newsgroups gmane.comp.bug-tracking.roundup.user
Message-ID <[email protected]>
Hello all:

Many of you are aware that there is a calendar link next to the text
input field when you enter a Date property. This link opens a
JavaScript-based calendar. However, this calendar has several issues
and relies on outdated web technology from twenty years ago.

On the other hand, modern browsers provide date (year, month, day) and
datetime-local (year, month, day, hour, minute, and possibly seconds)
input fields. These make entering dates much simpler. They
automatically convert months to the local language and show date
formats like m-d-y or d-m-y based on the current locale. Additionally,
they include calendar popups and, in some browsers, time selection
popups.

I have been working on how to incorprate these new inputs in Roundup
2.5. The current field() method allows for a format argument, which
does not work with the new input types.

Here are my thoughts:

  1. Raise an error if a format argument is used in field() unless the
     type is set to text. This could be too disruptive.

  2. Ignore the format argument quietly unless the admin sets the type
     to text. This might confuse an admin trying to understand why
     their format isn't functioning.

  3. My latest idea (just a few minutes ago) is to keep the date
     editing boxes the same as in 2.4 if the field() method includes a
     format argument.

Option 3 is the least surprising.

Option 2 offers the best automatic upgrade for users with minimal
effort from the admin.

Option 1 requires the admin to fix issues or things will break.

My second question is about which type should be the default for Date
properties. The 'date' input lets you choose just the date, while the
'datetime-local' input lets you pick both date and time.

How many of you use trackers where the time matters? I typically only
use the date in my trackers, not the time.

I will add another field_... method to choose the non-default option.

So, I ask all you loyal users:

Option 1, 2, or 3; date or datetime-local.

I can't wait to hear your votes and thoughts.

Have a great day.
--
				-- rouilj
John Rouillard
===========================================================================
My employers don't acknowledge my existence much less my opinions.