Repository navigation
Merge development into master - #1905
Merged
Merged
Conversation
Open the VNC and larval templates in Neuroglass centred and at a sensible zoom
…1863) The slice viewer now fetches its distance range, tile size and image size with GET, retries when the image server fails, and ignores answers for a plane that is no longer shown, so a brief image-server outage no longer leaves it with the wrong slice limits and centring.
…geppetto-vfb into feature/VFB-252
New layout (merge after VFB-246)
* Add a View menu to switch between window layouts
The View menu offers Default, Term Info only, Viewers and Circuit, plus a
view the user saves themselves ("Save current as My view") and a choice of
which view to start in. The current view is ticked, and is named in the URL
as ?view=<id> so a reload or a copied link opens the same way.
Default is whatever layoutModel.js defines, so a change to the default
layout needs nothing here. Classic keeps today's three-column layout and is
only listed once the default differs from it. Windows a view leaves out are
parked in the bottom bar rather than closed.
Switching replaces the FlexLayout model. Tabs now have a fixed id per
window, so a window that is in both models keeps its mounted component and
nothing reloads. The 3D and slice viewers are rendered even while parked,
because the scene is driven from startup.
The Tools menu entries now ask the layout where a window is, so they bring
back a window that a view parked or put behind another tab before it had
ever rendered.
* Test the View menu: switching views, the URL parameter and My view
* Fix drag-to-rotate in the 3D viewer after its tab is shown The 3D viewer's mouse controls rotate using a copy of the canvas position and size that is only refreshed in VFBMain.componentDidUpdate. FlexLayout redraws itself without updating VFBMain, so selecting the 3D Viewer tab, restoring it from the bottom bar, dragging a splitter or resizing the window left that copy stale. A canvas first drawn while hidden (behind the Neuroglass tab in the new layout, or parked by a view) kept 0 x 0, and a drag then did not rotate at all. Measure the canvas again as each mouse, touch or wheel gesture starts on it, on the capture phase so it runs before the controls' own handler. * Make one mouse-wheel turn move one slice in the Neuroglass slice panels The Neuroglass state set its dimensions to 1 nm, and Neuroglancer moves one unit of those dimensions per wheel turn, so scrolling a slice panel changed the position readout without visibly moving through a stack whose slices are 400-1000 nm apart. Set the dimensions to the template's voxel size instead, and convert the stored nm view (position and the two zooms) to match, so the opening view is unchanged.
…lling (#1872) * Update README with XMI structure and query breakdowns * Update README with XMI structure and query breakdowns * Update README with XMI structure and query breakdowns * plan drafted * Send the upload token in an Authorization header, filled in at build time from a secret * Allow 50 MB uploads and say why a file is refused * Release: slice viewer retries its metadata calls; Neuroglass VNC and larval view (#1864) * Merge pull request #1862 from VirtualFlyBrain/neuroglass-vnc-view Open the VNC and larval templates in Neuroglass centred and at a sensible zoom * Use geppetto-client VFBv2.5.0.2 for the slice viewer metadata retry (#1863) The slice viewer now fetches its distance range, tile size and image size with GET, retries when the image server fails, and ignores answers for a plane that is no longer shown, so a brief image-server outage no longer leaves it with the wrong slice limits and centring. * first draft of the neuroglass widget on VFB v2 * sync color change, selection, hide, display and delete with NG widget * new layout * fixing build * fixing tests * fixing few minor issues and related tests to the new layout * Fix drag-to-rotate in the 3D viewer after its tab is shown The 3D viewer's mouse controls rotate using a copy of the canvas position and size that is only refreshed in VFBMain.componentDidUpdate. FlexLayout redraws itself without updating VFBMain, so selecting the 3D Viewer tab, restoring it from the bottom bar, dragging a splitter or resizing the window left that copy stale. A canvas first drawn while hidden (behind the Neuroglass tab in the new layout, or parked by a view) kept 0 x 0, and a drag then did not rotate at all. Measure the canvas again as each mouse, touch or wheel gesture starts on it, on the capture phase so it runs before the controls' own handler. * Make one mouse-wheel turn move one slice in the Neuroglass slice panels The Neuroglass state set its dimensions to 1 nm, and Neuroglancer moves one unit of those dimensions per wheel turn, so scrolling a slice panel changed the position readout without visibly moving through a stack whose slices are 400-1000 nm apart. Set the dimensions to the template's voxel size instead, and convert the stored nm view (position and the two zooms) to match, so the opening view is unchanged. * Let the View menu test follow the number of windows in the default layout --------- Co-authored-by: GitHub Action <action@github.com> Co-authored-by: Dario Del Piano <dario@metacell.us> Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com> Co-authored-by: Dario <37704177+ddelpiano@users.noreply.github.com>
#1872 brought alpha into development as a squash, so git still counted alpha's commits as unmerged and the next merge would have re-applied them (a trial merge already duplicated a constant in VFBMain.js). This merge changes no files: development already holds everything on alpha.
No files change: development already holds everything on alpha. Recorded with a merge commit so the next alpha merge only brings new work.
'Search Returned Results' waits 15 s and then allows up to 50 s for the results, but was capped at 30 s, so it failed whenever the search took longer than about 15 s (twice on 17 Nov, passing on re-run). Cap it at 90 s.
…racters (#1879) Opening the Circuit Browser from Term Info sets neuron 1 a moment after the tab comes forward, and that update redraws the neuron fields. Since the tab now comes forward at once, the review test was typing neuron 2 during that redraw: "VFB_jrchjsfu" arrived as "chjsfu", the search found nothing, and the test fell back to a neuron from another connectome with no path to neuron 1, so the graph legend never appeared. Check what the field holds after typing and type again if it differs.
Replace the Cypher query on the cb_<site> projections in pdb with VFBquery's /circuit_paths (VirtualFlyBrain/VFBquery#114). Neuron types (FBbt classes) can be used at either end as well as neurons, with a dataset picker and optional example neurons at class level. Search results and chosen terms are tagged Class or Individual. Browser tests move from hemibrain to male CNS neurons. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Fixes the multiline-comment-style lint error that stopped the CI build. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Only individuals have one, so testLandingPage can't pass on an FBbt page. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* Circuit Browser: use /circuit_paths and allow neuron types Replace the Cypher query on the cb_<site> projections in pdb with VFBquery's /circuit_paths (VirtualFlyBrain/VFBquery#114). Neuron types (FBbt classes) can be used at either end as well as neurons, with a dataset picker and optional example neurons at class level. Search results and chosen terms are tagged Class or Individual. Browser tests move from hemibrain to male CNS neurons. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * Use a block comment in Circuit Browser state Fixes the multiline-comment-style lint error that stopped the CI build. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * Don't wait for a deselect button on the class test page Only individuals have one, so testLandingPage can't pass on an FBbt page. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> --------- Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
Classic becomes "V2 default" (id v2) and is the view the page opens in; the layoutModel.js arrangement becomes "V3 default" (id v3). The old ids classic and default stay accepted from links and saved start views.
Its snapshots were taken in the V3 layout, which is no longer the view the page starts in.
…arch (#1884) Explains why a neuron has no class (VFBquery#151), names neurons in link tooltips, orders columns to cut crossings, and uses the main search with a SOLR connectome filter.
…e neurons (#1885) Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
…t-out neurons (#1886) Links that would pass behind a card curve around it, one-line titles are enlarged to at most 16 px with fuller line wrapping, and neurons outside the class graph show their types (symbols where there are any).
The connectome was saved when the first neuron was chosen and only cleared when every field was empty, so after swapping a FlyWire neuron for a class, searches stayed limited to FlyWire (e.g. "banc" found nothing). It is now taken from the neuron chosen in the other field at search time. Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
…elp (#1888) Thick class links had arrowheads up to 51 units long placed partway along the link, covering their labels. Arrowheads now end at the target card's edge, are sized from a gentler log10 width, and labels sit between the source card and the arrowhead. The quick help and its image describe the new browser, and the Help menu links to the docs instead of the old weighted-path algorithm. Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
Retaken on v2-dev after #1888: LC12 to giant fiber neuron on FlyWire, with arrowheads at the card edges and the link labels clear of them.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…lp-image Circuit Browser help: screenshot with the new arrows
… list (#1891) The key over the graph can be folded down to its dataset selector, lays its colours out side by side, and no longer runs past the panel. The search results list spans the query box, shows each result as a name over its full label, sizes itself to the room in the panel and opens upwards when there is none below. The query box scrolls rather than losing its header on a short panel, and the zoom-out button now zooms out.
…licked (#1892) The selection handler took the field from the id of the element clicked. Since the results became two lines, a click usually lands on a part of the row with no id, the lookup failed and nothing was chosen (clicking the Class/Individual tag never worked). Use the field index the handler is given instead.
…ear of the overlays (#1900) A direct link between the query's ends was bowed around one card and ran behind another, so it read as a link into that card. Each path now has its own lane, with a direct link straight along the centre and the other paths either side; the lane order is chosen to leave the fewest links behind cards. Links that still need a bow have the curve itself checked against every card. Labels are placed clear of cards and of each other and drawn after all the links. Link widths scale with the zoom so arrowheads stay visible, and arrowheads are capped. The graph is fitted into the part of the panel the key and query box leave free, refitted when either is opened or folded away, and drawn top to bottom in a panel much taller than wide.
… typed or pasted (#1902) The text typed in a search field was fed back as the field's chosen value. Once it matched a result's label exactly, choosing that result looked like no change, so nothing was chosen and the field was cleared when it lost focus. The value is now only ever a term chosen from the list; typing the chosen term's label back keeps it chosen; and the list shows every result the search returns rather than filtering them again by the text typed.
* Pin CI runners to Ubuntu 24.04 (#1870) * Pin CI runners to Ubuntu 24.04 ubuntu-latest now resolves to Ubuntu 26.04, which has no build of the tool versions these workflows set up, so the jobs fail before any code runs. * Update README with XMI structure and query breakdowns --------- Co-authored-by: GitHub Action <action@github.com> * Update README with XMI structure and query breakdowns * V3 preview release plus improved Circuit Browser (#1893) * plan drafted * Merge pull request #1862 from VirtualFlyBrain/neuroglass-vnc-view Open the VNC and larval templates in Neuroglass centred and at a sensible zoom * Use geppetto-client VFBv2.5.0.2 for the slice viewer metadata retry (#1863) The slice viewer now fetches its distance range, tile size and image size with GET, retries when the image server fails, and ignores answers for a plane that is no longer shown, so a brief image-server outage no longer leaves it with the wrong slice limits and centring. * first draft of the neuroglass widget on VFB v2 * sync color change, selection, hide, display and delete with NG widget * new layout * fixing build * fixing tests * fixing few minor issues and related tests to the new layout * Add a View menu to switch between window layouts (#1871) * Add a View menu to switch between window layouts The View menu offers Default, Term Info only, Viewers and Circuit, plus a view the user saves themselves ("Save current as My view") and a choice of which view to start in. The current view is ticked, and is named in the URL as ?view=<id> so a reload or a copied link opens the same way. Default is whatever layoutModel.js defines, so a change to the default layout needs nothing here. Classic keeps today's three-column layout and is only listed once the default differs from it. Windows a view leaves out are parked in the bottom bar rather than closed. Switching replaces the FlexLayout model. Tabs now have a fixed id per window, so a window that is in both models keeps its mounted component and nothing reloads. The 3D and slice viewers are rendered even while parked, because the scene is driven from startup. The Tools menu entries now ask the layout where a window is, so they bring back a window that a view parked or put behind another tab before it had ever rendered. * Test the View menu: switching views, the URL parameter and My view * Fix 3D viewer drag-to-rotate and Neuroglass slice scrolling (#1873) * Fix drag-to-rotate in the 3D viewer after its tab is shown The 3D viewer's mouse controls rotate using a copy of the canvas position and size that is only refreshed in VFBMain.componentDidUpdate. FlexLayout redraws itself without updating VFBMain, so selecting the 3D Viewer tab, restoring it from the bottom bar, dragging a splitter or resizing the window left that copy stale. A canvas first drawn while hidden (behind the Neuroglass tab in the new layout, or parked by a view) kept 0 x 0, and a drag then did not rotate at all. Measure the canvas again as each mouse, touch or wheel gesture starts on it, on the capture phase so it runs before the controls' own handler. * Make one mouse-wheel turn move one slice in the Neuroglass slice panels The Neuroglass state set its dimensions to 1 nm, and Neuroglancer moves one unit of those dimensions per wheel turn, so scrolling a slice panel changed the position readout without visibly moving through a stack whose slices are 400-1000 nm apart. Set the dimensions to the template's voxel size instead, and convert the stored nm view (position and the two zooms) to match, so the opening view is unchanged. * Merge alpha into development, fix 3D rotate and Neuroglass slice scrolling (#1872) * Update README with XMI structure and query breakdowns * Update README with XMI structure and query breakdowns * Update README with XMI structure and query breakdowns * plan drafted * Send the upload token in an Authorization header, filled in at build time from a secret * Allow 50 MB uploads and say why a file is refused * Release: slice viewer retries its metadata calls; Neuroglass VNC and larval view (#1864) * Merge pull request #1862 from VirtualFlyBrain/neuroglass-vnc-view Open the VNC and larval templates in Neuroglass centred and at a sensible zoom * Use geppetto-client VFBv2.5.0.2 for the slice viewer metadata retry (#1863) The slice viewer now fetches its distance range, tile size and image size with GET, retries when the image server fails, and ignores answers for a plane that is no longer shown, so a brief image-server outage no longer leaves it with the wrong slice limits and centring. * first draft of the neuroglass widget on VFB v2 * sync color change, selection, hide, display and delete with NG widget * new layout * fixing build * fixing tests * fixing few minor issues and related tests to the new layout * Fix drag-to-rotate in the 3D viewer after its tab is shown The 3D viewer's mouse controls rotate using a copy of the canvas position and size that is only refreshed in VFBMain.componentDidUpdate. FlexLayout redraws itself without updating VFBMain, so selecting the 3D Viewer tab, restoring it from the bottom bar, dragging a splitter or resizing the window left that copy stale. A canvas first drawn while hidden (behind the Neuroglass tab in the new layout, or parked by a view) kept 0 x 0, and a drag then did not rotate at all. Measure the canvas again as each mouse, touch or wheel gesture starts on it, on the capture phase so it runs before the controls' own handler. * Make one mouse-wheel turn move one slice in the Neuroglass slice panels The Neuroglass state set its dimensions to 1 nm, and Neuroglancer moves one unit of those dimensions per wheel turn, so scrolling a slice panel changed the position readout without visibly moving through a stack whose slices are 400-1000 nm apart. Set the dimensions to the template's voxel size instead, and convert the stored nm view (position and the two zooms) to match, so the opening view is unchanged. * Let the View menu test follow the number of windows in the default layout --------- Co-authored-by: GitHub Action <action@github.com> Co-authored-by: Dario Del Piano <dario@metacell.us> Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com> Co-authored-by: Dario <37704177+ddelpiano@users.noreply.github.com> * Build alpha against the live pdb and Solr (#1877) * Give the Spotlight search test time for its own waits (#1878) 'Search Returned Results' waits 15 s and then allows up to 50 s for the results, but was capped at 30 s, so it failed whenever the search took longer than about 15 s (twice on 17 Nov, passing on re-run). Cap it at 90 s. * Retype the Circuit Browser test's second neuron if the field lost characters (#1879) Opening the Circuit Browser from Term Info sets neuron 1 a moment after the tab comes forward, and that update redraws the neuron fields. Since the tab now comes forward at once, the review test was typing neuron 2 during that redraw: "VFB_jrchjsfu" arrived as "chjsfu", the search found nothing, and the test fell back to a neuron from another connectome with no path to neuron 1, so the graph legend never appeared. Check what the field holds after typing and type again if it differs. * Circuit Browser: use /circuit_paths and allow neuron types Replace the Cypher query on the cb_<site> projections in pdb with VFBquery's /circuit_paths (VirtualFlyBrain/VFBquery#114). Neuron types (FBbt classes) can be used at either end as well as neurons, with a dataset picker and optional example neurons at class level. Search results and chosen terms are tagged Class or Individual. Browser tests move from hemibrain to male CNS neurons. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * Use a block comment in Circuit Browser state Fixes the multiline-comment-style lint error that stopped the CI build. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * Don't wait for a deselect button on the class test page Only individuals have one, so testLandingPage can't pass on an FBbt page. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * Start in the V2 default view and rename the View menu defaults (#1882) Classic becomes "V2 default" (id v2) and is the view the page opens in; the layoutModel.js arrangement becomes "V3 default" (id v3). The old ids classic and default stay accepted from links and saved start views. * Open the term context test in the V3 default view (#1883) Its snapshots were taken in the V3 layout, which is no longer the view the page starts in. * Circuit Browser: clearer neuron labels, tidier layout, main-search search (#1884) Explains why a neuron has no class (VFBquery#151), names neurons in link tooltips, orders columns to cut crossings, and uses the main search with a SOLR connectome filter. * Circuit Browser: name missing terms, grey out types with no connectome neurons (#1885) Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com> * Circuit Browser: bow links around nodes, smaller titles, types on left-out neurons (#1886) Links that would pass behind a card curve around it, one-line titles are enlarged to at most 16 px with fuller line wrapping, and neurons outside the class graph show their types (symbols where there are any). * Circuit Browser: work out the connectome filter on each search (#1887) The connectome was saved when the first neuron was chosen and only cleared when every field was empty, so after swapping a FlyWire neuron for a class, searches stayed limited to FlyWire (e.g. "banc" found nothing). It is now taken from the neuron chosen in the other field at search time. Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com> * Circuit Browser: arrowheads at card edges, gentler link widths, new help (#1888) Thick class links had arrowheads up to 51 units long placed partway along the link, covering their labels. Arrowheads now end at the target card's edge, are sized from a gentler log10 width, and labels sit between the source card and the arrowhead. The quick help and its image describe the new browser, and the Help menu links to the docs instead of the old weighted-path algorithm. Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com> * Circuit Browser help: screenshot with the arrowhead fix (#1889) Retaken on v2-dev after #1888: LC12 to giant fiber neuron on FlyWire, with arrowheads at the card edges and the link labels clear of them. * Circuit Browser help: screenshot with the new arrows Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * Circuit Browser: collapsible key and a wider, two-line search results list (#1891) The key over the graph can be folded down to its dataset selector, lays its colours out side by side, and no longer runs past the panel. The search results list spans the query box, shows each result as a name over its full label, sizes itself to the room in the panel and opens upwards when there is none below. The query box scrolls rather than losing its header on a short panel, and the zoom-out button now zooms out. * Circuit Browser: choosing a search result works wherever the row is clicked (#1892) The selection handler took the field from the id of the element clicked. Since the results became two lines, a click usually lands on a part of the row with no id, the lookup failed and nothing was chosen (clicking the Class/Individual tag never worked). Use the field index the handler is given instead. --------- Co-authored-by: Dario Del Piano <dario@metacell.us> Co-authored-by: Dario <37704177+ddelpiano@users.noreply.github.com> Co-authored-by: GitHub Action <action@github.com> Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com> Co-authored-by: Clare72 <cp390@cam.ac.uk> Co-authored-by: Clare Pilgrim <38460997+Clare72@users.noreply.github.com> * Update README with XMI structure and query breakdowns --------- Co-authored-by: GitHub Action <action@github.com> Co-authored-by: Dario Del Piano <dario@metacell.us> Co-authored-by: Dario <37704177+ddelpiano@users.noreply.github.com> Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com> Co-authored-by: Clare72 <cp390@cam.ac.uk> Co-authored-by: Clare Pilgrim <38460997+Clare72@users.noreply.github.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Brings the Circuit Browser changes since #1893 to
master:Please merge with "Create a merge commit", not squash, so the branches stay in line.