Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Feature]: Duration picker #682

Closed
bendichter opened this issue Mar 16, 2024 · 6 comments
Closed

[Feature]: Duration picker #682

bendichter opened this issue Mar 16, 2024 · 6 comments
Labels
enhancement New feature or request priority: low

Comments

@bendichter
Copy link
Collaborator

What would you like to see added to the NWB GUIDE?

Right now, entering in the age of the subject requires that the user knows or learns ISO 8601 duration format.

image

Would it be possible to user a duration selector widget that is more intuitive? Does such a picker already exist?

Do you have any interest in helping implement the feature?

No.

Code of Conduct

Yes

Did you confirm this feature was not already reported?

Yes

@bendichter bendichter added enhancement New feature or request priority: low labels Mar 16, 2024
@garrettmflynn
Copy link
Member

garrettmflynn commented Mar 18, 2024

Do you have an example of such a picker, possibly from a different application? And wouldn't the user need to know the DOB for this to happen anyways (e.g. calculate the ISO 8601 duration from the DOB and current date)?

@CodyCBakerPhD
Copy link
Collaborator

And wouldn't the user need to know the DOB for this to happen anyways

Not exactly; the point is the difference in resolution. Sometimes they might just say P3W without being more specific, which doesn't require knowing the exact DOB as an ISO date (regardless of time) and doing the math against the session start date

There's also educating people about the duration range syntax P3W/P5W meaning they don't know the exact age either, but know it's within that range

Do you have an example of such a picker, possibly from a different application?

I've never seen a picker for this, but I'm fairly sure any time I've seen something similar, each field of the page is separated as a different entry on a web form

That is,

Age

Years: 
Months:
Days:

Hours:
Minutes:
Seconds:

with pretty much all fields being optional, but at least one entry required

But this feels like it takes more typing than the ISO string, while requiring less reading of tooltips to learn/understand what ISO 8601 is, so there's the tradeoff

Also seems less copy/pastable

@CodyCBakerPhD
Copy link
Collaborator

Maybe the 'add subject' button could trigger a popup that collects the information in a user friendly way, but the values on the table still show up as they do (and are still copy/pastable that way)?

And the user friendly form could have a yes/no toggle of if they want to submit age OR date of birth, finally alleviating that confusion by not displaying both and validating both together

@garrettmflynn
Copy link
Member

Ah gotcha. We could also have a nested table form that provides the form described above as a pop-up for Age.

@garrettmflynn
Copy link
Member

And the user friendly form could have a yes/no toggle of if they want to submit age OR date of birth, finally alleviating that confusion by not displaying both and validating both together

You're right, though, this is an issue with the Table format in general

@CodyCBakerPhD
Copy link
Collaborator

Summarized and moved to #846

Re-open again whenever this starts active development

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request priority: low
Projects
None yet
Development

No branches or pull requests

3 participants