4bb9e8caea515342ba98d3871da76cd4ec69916f
chmalee
  Fri May 1 14:10:00 2026 -0700
Initial myVariants implementation: a form on hgTracks where users can enter item details in one of three ways: hgvs/item search, simple bed form, advanced bed form where additional non-bed fields can dynamically created. Allows changing the color of items, writing descriptions, and editing the items after creation. Show overlaps with hardcoded tracks when hgc page is open (not in the hgc dialog). Next commit has implementation of sharing these tracks with other users

diff --git src/lib/cheapcgi.c src/lib/cheapcgi.c
index 0aaa8ebd1db..0598370c700 100644
--- src/lib/cheapcgi.c
+++ src/lib/cheapcgi.c
@@ -2140,30 +2140,43 @@
 cgiMakeIntVarInRange(varName,initialVal,title,width,minStr,NULL);
 }
 
 void cgiMakeIntVarWithMax(char *varName, int initialVal, char *title, int width, int max)
 {
 char maxLimit[20];
 char *maxStr=NULL;
 if (max != NO_VALUE)
     {
     safef(maxLimit,sizeof(maxLimit),"%d",max);
     maxStr = maxLimit;
     }
 cgiMakeIntVarInRange(varName,initialVal,title,width,NULL,maxStr);
 }
 
+void cgiMakeColorVar(char *varName, char *initialColor)
+/* Make a color input picker using the native color picker. initialColor is a hexval string */
+{
+printf("<input type=color name=\"%s\" id=\"%s\" value=\"%s\">\n", varName, varName, initialColor);
+}
+
+void cgiMakeColorVarWithLabel(char *varName, char *label, char *initialColor, boolean boldLabel)
+/* Make an input color picker labeled by label */
+{
+printf("<label for=\"%s\">%s%s:%s</label>\n", varName, boldLabel ? "<b>": "", label, boldLabel ? "</b>": "");
+cgiMakeColorVar(varName, initialColor);
+}
+
 void cgiMakeDoubleVar(char *varName, double initialVal, int maxDigits)
 /* Make a text control filled with initial floating-point value.  */
 {
 if (maxDigits == 0) maxDigits = 4;
 
 printf("<INPUT TYPE=TEXT NAME=\"%s\" SIZE=%d VALUE=%g>", varName,
         maxDigits, initialVal);
 }
 
 void cgiMakeDoubleVarWithExtra(char *varName, double initialVal, int maxDigits, char *extra)
 /* Make a text control filled with initial value and optional extra HTML.  */
 {
 if (maxDigits == 0) maxDigits = 4;
 printf("<INPUT TYPE=TEXT NAME=\"%s\" SIZE=%d VALUE=%g %s>", varName,
         maxDigits, initialVal, emptyForNull(extra));