sgn icon indicating copy to clipboard operation
sgn copied to clipboard

Fill in default trial name according to naming conventions saved by breeding program

Open bellerbrock opened this issue 7 years ago • 7 comments

Expected Behavior

A suggestion from yesterday's discussion with Josh from IRRI. Programs like to establish naming conventions for trials in which the trial name contains important information (year, location, design, purpose). But users aren't always good at consistenly following them.

It would be useful to implement a default naming scheme that auto populates the name input for a new trial based on other trial metadata. This scheme could be configurable on a breeding program basis so different programs can use different conventions. A similar system could also be implemented for plots and other named material (accessions, crosses)

For Bugs:

Enviroment

Steps to Reproduce

bellerbrock avatar Oct 12 '17 19:10 bellerbrock

@bellerbrock I've been working on a text templating UI for this. I realized it may also be useful for text templating on barcode labels. See gif below. See code @ dauglyon/textTemplater. Try it out here. 2017-11-08 17_23_46

  • The first line/form is the template-builder. (The placeholders can also be drag/dropped but I forgot to film that part.) There are three main placeholder types so far: static text, text fields, and variables.
  • The second line shows what the template string that it produces looks like.
  • The third line/form is the template-filling UI which takes a template string.
  • The fourth is the filled result after also populating the variables of the filled template.

The delete button showing/hiding is probably going to go as well as it causes problems on touch screens.

dauglyon avatar Nov 08 '17 22:11 dauglyon

Hey David,

Thanks for the heads up! I played around with it a bit and like the multiple levels of flexibilty. It definitely would be handy for the custom fields in the interactive barcode label maker. It might be worth adding abbreviated options for some variables as well. Locations already have an abbreviation prop, and the year abbreviation could just be the last 2 digits (assuming we don't need to worry about trial names being y2k compliant). I'm not sure how to abbreviate trial type though.

A few of the programs at this week's sweetpotato meeting have expressed interest in more control over plot naming for trials designed in the database. Your templating tool could be a promising solution for that as well!

On 8 November 2017 at 17:42, David Lyon [email protected] wrote:

@bellerbrock https://github.com/bellerbrock I've been working on a text templating UI for this. I realized it may also be useful for text templating on barcode labels. See gif below. See code @ dauglyon/textTemplater https://github.com/dauglyon/textTemplater. Try it out here http://dauglyon.com/textTemplater/. [image: 2017-11-08 17_23_46] https://user-images.githubusercontent.com/5115845/32578033-c05c708e-c4a9-11e7-9580-fdcca74e51e4.gif

  • The first line/form is the template-builder. (The placeholders can also be drag/dropped but I forgot to film that part.) There are three main placeholder types so far: static text, text fields, and variables.
  • The second line shows what the template string that it produces looks like.
  • The third line/form is the template-filling UI which takes a template string.
  • The fourth is the filled result after also populating the variables of the filled template.

The delete button showing/hiding is probably going to go as well as it causes problems on touch screens.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/solgenomics/sgn/issues/1358#issuecomment-342985942, or mute the thread https://github.com/notifications/unsubscribe-auth/AKxiQvUUVZ0d9oRBbqN-X4hKIgektIMkks5s0i5dgaJpZM4P3ham .

-- Bryan Ellerbrock Research Specialist, Mueller Lab Boyce Thompson Institute for Plant Research Office/Lab: 211 | 607-227-9868

bellerbrock avatar Nov 08 '17 23:11 bellerbrock

this would be useful on all inputs where the user defines a unique identifier in the database. you can take a look at all the places that this occurs on the new manage->upload page

nickmorales avatar Nov 15 '17 08:11 nickmorales

@bellerbrock @nickmorales, would either of you like to take ownership of this issue?

@lukasmueller should I transfer ownership of the dauglyon/textTemplater repo to solgenomics?

dauglyon avatar Apr 04 '19 20:04 dauglyon

Sure, I can take this one

bellerbrock avatar Apr 05 '19 16:04 bellerbrock

First we need to know what the conventions for each breeding program are.... do we know that?

lukasmueller avatar Nov 24 '21 22:11 lukasmueller

Hello @bellerbrock , is there an way to make the tool available for a specific breeding program that has well defined all naming rules?

chris263 avatar Dec 15 '23 17:12 chris263