Open bellerbrock opened 6 years ago
@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.
The delete button showing/hiding is probably going to go as well as it causes problems on touch screens.
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 notifications@github.com 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
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
@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?
Sure, I can take this one
First we need to know what the conventions for each breeding program are.... do we know that?
Hello @bellerbrock , is there an way to make the tool available for a specific breeding program that has well defined all naming rules?
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