46a7db400ddc1280555e0bc32ed09311e19efc65 chmalee Thu May 7 10:53:58 2026 -0700 Reword some hubSpace assembly hub error message. Make the duration of some error message notifications longer, change some text around input about why certain inputs are disabled in certain situations, refs #37411 diff --git src/hg/inc/userdata.h src/hg/inc/userdata.h index 7947eb847d5..c3e60f952e4 100644 --- src/hg/inc/userdata.h +++ src/hg/inc/userdata.h @@ -1,25 +1,35 @@ /* userdata.c - code for managing data stored on a per user basis */ /* Copyright (C) 2014 The Regents of the University of California * See kent/LICENSE or http://genome.ucsc.edu/license/ for licensing information. */ #ifndef USERDATA_H #define USERDATA_H #include "hubSpace.h" +// 2bit genome-name collision error. Shared with the JS client so it +// can identify this error from the message. +#define HUB_GENOME_COLLISION_ERR_FRAG \ + "matches an existing UCSC native assembly or GenArk hub" + +#define HUB_GENOME_COLLISION_ERR_FMT \ + "Genome name '%s' " HUB_GENOME_COLLISION_ERR_FRAG ". " \ + "The Genome Browser will load the UCSC assembly instead of your 2bit. " \ + "Edit the Genome field and try a different name (e.g. '%s_hub')." + struct userFiles { char *userName; struct fileInfo *fileList; // list of files for this user }; struct userHubs { struct userHubs *next; char *hubName; // name of this hub char *genome; // only one genome allowed per hub for now char *userName; // for convenience time_t lastModified; // actually last access time but this works struct userFiles *fileList; // list of files (tracks) in the hub };