07f0635fd352e098f836664c043aff50449de94e lrnassar Fri Sep 18 00:17:47 2026 -0700 hgTracks: reword the density-mode track labels per QA. refs #38279 Say "density graph" to match the checkbox on the track settings page, and name the escape that actually works for each cause: dense mode clears the too-many-items case but does nothing for the maxWindowCoverage one, so the advice was on the wrong message. The window-size label was 90 characters, long enough to push the center label past the edge of the image at ordinary widths and clip the track name along with it. diff --git src/hg/hgTracks/hgTracks.c src/hg/hgTracks/hgTracks.c index b1a0dd632a5..298e8950ecb 100644 --- src/hg/hgTracks/hgTracks.c +++ src/hg/hgTracks/hgTracks.c @@ -12526,45 +12526,45 @@ /* Add text to track long label to indicate empty subtracks are hidden, * but avoid adding to subtrack labels */ { #define EMPTY_SUBTRACKS_HIDDEN "empty subtracks hidden" struct trackDb *parentTdb = tdbGetComposite(tg->tdb); if (parentTdb) parentTdb->longLabel = labelAddNote(parentTdb->longLabel, EMPTY_SUBTRACKS_HIDDEN); else tg->longLabel = labelAddNote(tg->longLabel, EMPTY_SUBTRACKS_HIDDEN); } void labelTrackAsDensity(struct track *tg) /* Add text to track long label to indicate the user asked for density mode */ { tg->longLabel = labelAddNote(tg->longLabel, - "density mode active, configure the track to switch it off"); + "density graph: turn off on the track settings page"); } void labelTrackAsDensityWindowSize(struct track *tg) /* Add text to track long label to indicate density mode because window size exceeds some threshold */ { -tg->longLabel = labelAddNote(tg->longLabel, "too many features, density shown, zoom in for individual items or use squish or dense mode"); +tg->longLabel = labelAddNote(tg->longLabel, "density graph: too many items, zoom in"); } void labelTrackAsDensityTooManyItems(struct track *tg) /* Add text to track long label to indicate we switched to density mode because there were * too many items to draw one by one */ { tg->longLabel = labelAddNote(tg->longLabel, - "too many features, density shown, zoom in to see details"); + "density graph: too many items, zoom in or use dense"); } void labelTrackAsDensityIfActive(struct track *tg) /* If a track is showing item density instead of individual items, say so in the long label, * distinguishing the density the user asked for from the density we had to impose. */ { if (cartOrTdbBoolean(cart, tg->tdb, "doWiggle", FALSE)) labelTrackAsDensity(tg); else if (winTooBigDoWiggle(cart, tg)) labelTrackAsDensityWindowSize(tg); else if (tg->limitWiggle) labelTrackAsDensityTooManyItems(tg); }