ab5d95f27e2cfc363db9840c0514a7170b8547b1 chmalee Mon Feb 9 14:24:34 2026 -0800 Add info icons to hgGateway, refs #34078 diff --git src/hg/js/hgGateway.js src/hg/js/hgGateway.js index 902abde49e2..8b6f6c6225b 100644 --- src/hg/js/hgGateway.js +++ src/hg/js/hgGateway.js @@ -1924,30 +1924,61 @@ onSelect: setDbFromAutocomplete, onServerReply: processSpeciesResults, showRecentGenomes: true, enterSelectsIdentical: false }); $('#selectAssembly').on("change", onChangeDbMenu); $('#positionDisplay').on("click", onClickCopyPosition); $('#copyPosition').on("click", onClickCopyPosition); $('.jwGoButtonContainer').on("click", goToHgTracks); $(window).on("resize", setRightColumnWidth.bind(null, scrollbarWidth)); displaySurvey(); replaceHgsidInLinks(); // Display recent genomes in the left panel on page load displayRecentGenomesInPanel(); + // Set up info icon tooltips + var speciesSearchInfo = document.getElementById('speciesSearchInfo'); + if (speciesSearchInfo) { + addMouseover(speciesSearchInfo, + "Searches are case-insensitive and match by prefix. You can search by:" + + "" + + "For multi-word searches, all words are required by default."); + } + var recentGenomesInfo = document.getElementById('recentGenomesInfo'); + if (recentGenomesInfo) { + addMouseover(recentGenomesInfo, + "Your recently selected genome assemblies, stored in this browser. " + + "Click a card to quickly return to that genome. " + + "\"UCSC Curated\" genomes are maintained by UCSC with curated annotation tracks. " + + "\"External\" genomes are from track hubs you have connected."); + } + var connectedHubsInfo = document.getElementById('connectedHubsInfo'); + if (connectedHubsInfo) { + addMouseover(connectedHubsInfo, + "Track data hubs you have connected. These are external data sets hosted " + + "outside of UCSC. To connect a hub, use the top blue bar and navigate to " + + "My Data -> Track Hubs. Both UCSC-hosted and public hub assemblies are " + + "searchable via the search bar above."); + } + // Gateway tutorial if (typeof gatewayTour !== 'undefined') { if (typeof startGatewayOnLoad !== 'undefined' && startGatewayOnLoad) { gatewayTour.start(); } } }); createTutorialLink(); } return { init: init, // For use by speciesTree.draw SVG (text-only onclick): onClickSpeciesLabel: onClickSpeciesLabel, onClickHubName: onClickHubName