754cf0e3c480484878009aa5ce6dd815f1126d0c chmalee Fri Mar 6 15:02:34 2026 -0800 most public assembly hubs do not have blat/pcr servers available, so when a public hub has been selected from the 'recents' dropdown in the search bar on those cgis, submit their form so the backend can print a message to page telling the user we don't have blat/pcr availabel for those assemblies, refs #36535 diff --git src/hg/js/hgGateway.js src/hg/js/hgGateway.js index 080e2578916..a1c5bd7c414 100644 --- src/hg/js/hgGateway.js +++ src/hg/js/hgGateway.js @@ -1480,31 +1480,31 @@ if (checkJsonData(jsonData, 'handleSetDb') && trackHubSkipHubName(jsonData.db) === trackHubSkipHubName(uiState.db)) { updateStateAndPage(jsonData); // Save to recent genomes only if not already at the front (autocompleteCat.js may have just added it) // Use db without hub prefix for consistent key comparison var dbForRecents = trackHubSkipHubName(uiState.db); if (!isGenomeAtFrontOfRecents(dbForRecents)) { // Construct a descriptive label that includes the db/accession for identification var label = uiState.genomeLabel || uiState.genome; if (label && dbForRecents && label.indexOf(dbForRecents) < 0) { // Add the db/accession to the label if not already present label = label + ' (' + dbForRecents + ')'; } var recentItem = { db: dbForRecents, - genome: uiState.genome, + genome: dbForRecents, label: label, taxId: uiState.taxId }; if (uiState.hubUrl) { recentItem.hubUrl = uiState.hubUrl; // Store hubName so we can reconstruct the full hub db name later var parsedHubName = hubNameFromDb(uiState.db); if (parsedHubName) { recentItem.hubName = parsedHubName; } if (uiState.hubUrl.startsWith("/gbdb")) { recentItem.category = "UCSC Curated"; } else { recentItem.category = "Assembly Hub"; } @@ -1526,31 +1526,31 @@ // Update uiState with new values and update the page: _.assign(uiState, jsonData); updateFindPositionSection(uiState); // Save to recent genomes only if not already at the front (autocompleteCat.js may have just added it) // Use db without hub prefix for consistent key comparison var dbForRecents = trackHubSkipHubName(uiState.db); if (!isGenomeAtFrontOfRecents(dbForRecents)) { // Construct a descriptive label that includes the db for identification var label = uiState.genomeLabel || uiState.genome; if (label && dbForRecents && label.indexOf(dbForRecents) < 0) { // Add the db to the label if not already present label = label + ' (' + dbForRecents + ')'; } addRecentGenome({ db: dbForRecents, - genome: uiState.genome, + genome: dbForRecents, label: label, taxId: uiState.taxId, category: "UCSC Curated" }); } displayRecentGenomesInPanel(); } else { console.log('handleSetTaxId ignoring: ' + jsonData.taxId + ' !== ' + uiState.taxId); } } // UI Event Handlers function clearWatermarkInput($input, watermark) {