444b1eb7e7ec2938a4a9a6d3ed214179073ab6f7 max Wed Sep 9 05:41:23 2026 -0700 Faceted composite: manual row reordering, group-by, saved UI state, and per-facet "only" links The Fiber-seq compendium put 41 samples times six data types into one faceted composite, which pushed on the parts of the page that were built for a flat list of tracks. Changes here, all in the shared faceted composite code rather than anything Fiber-seq specific: Row order. Track order in the image follows the table, so the table now lets you set that order by hand. Vendored DataTables RowReorder 1.5.1 adds a drag handle as the first column after the checkbox, enabled on the "shown in the browser" tab where reordering means something. The dragged order is remembered by sample name rather than by row number, so it survives a metadata file whose contents have changed. Group by. A container of six data types can be read two ways, so the page offers both: group the image by sample, keeping a sample's six tracks together, or by data type, putting all the accessibility tracks next to each other. cartDump assigns the priorities and just swaps the nesting of its two loops. trackDb sets the starting choice with defaultGroupBy. Saved state. Facets, per-column searches, sort column, page length, which tab was open and the hand-dragged order go to localStorage keyed by metadata id, so coming back to the page does not mean setting it all up again. Facet "only" links. A small "only" appears on hover behind each facet value and narrows to just that one, instead of unticking the others by hand. Column descriptions. A metadata column heading can now carry a longer explanation after a "|", shown behind an info icon on both the column header and the facet heading. Also: parseDataTypes() was returning its list reversed, since slPairAdd prepends and nothing put it back, so the data type checkboxes and the resulting subtrack order were backwards; the composite lifts itself out of hide when the user touches anything on the page, which is what they meant by touching it; the facet sidebar collapses when a table has no facetable columns; and the label wording throughout says "samples" and "in the browser" rather than "tracks" and "active". The Methbase hg38 track gets labels for its three data types, which were showing as the bare pipeline names hmr, levels and reads. refs #36210 diff --git src/hg/htdocs/style/makefile src/hg/htdocs/style/makefile index 656ea46bd58..104ba72ad91 100644 --- src/hg/htdocs/style/makefile +++ src/hg/htdocs/style/makefile @@ -2,31 +2,32 @@ include ../../../inc/common.mk # recursive target to do install to DEST, with extra excludes EXCL. ifeq (${FIND},) INSIDEGIT := $(shell git rev-parse --is-inside-work-tree 2>/dev/null) ifeq (${INSIDEGIT},true) FIND = gitFiles else FIND = find endif endif CSS_FILES=HGStyle.css assemblySearch.css autocomplete.css blueStyle.css \ dataTables-1.10.12.min.css dataTables-1.13.6.min.css dataTables-2.2.2.min.css \ - dataTables.buttons-3.2.2.min.css dataTables.select-1.7.0.min.css \ + dataTables.buttons-3.2.2.min.css dataTables.rowReorder-1.5.1.min.css \ + dataTables.select-1.7.0.min.css \ dataTables.select-3.0.0.min.css \ encodeProject.css facetedComposite.css facets.css floretStyle.css \ hgHubConnect.css hgMyData.css jquery-ui.css jquery.contextmenu.css \ jquery.ui.autocomplete.css jquery.ui.colorPicker.css \ jquery.treetable.css jquery.treetable.theme.default.css \ jstree-3.3.7.min.css \ jWest.css jWest.afterNiceMenu.css liftRequest.css mouseOver.css \ theme-modern.css ui.dropdownchecklist.css nice_menu.css \ encodeDataMatrix.css encodeDataSummary.css userAccounts.css \ encode3.css encode3Ucsc.css bootstrap.min.css \ gbStatic.css gb.css gbAfterMenu.css hgGtexTrackSettings.css hgBlat.css \ gbModern.css hgSession.css \ spectrum.min.css font-awesome.min.css \ theme-classic.css theme-dark.css theme-modern.css \ bootstrap-3-3-7.min.css shepherd.css \