Skip to content

NGLASS-1141 Make accordion PR to upstream neuroglancer#121

Open
Aiga115 wants to merge 3 commits intofeat/tab-accordionsfrom
feature/NGLASS-1141
Open

NGLASS-1141 Make accordion PR to upstream neuroglancer#121
Aiga115 wants to merge 3 commits intofeat/tab-accordionsfrom
feature/NGLASS-1141

Conversation

@Aiga115
Copy link

@Aiga115 Aiga115 commented Mar 6, 2026

Issue #NGLASS-1141
Problem: Make accordion PR to upstream neuroglancer
Solution:

  1. Make annotation property value overflow its text
  2. Add a logic to be able to turn off the accordions

Result:
image

view without annotation use:
image

@Aiga115 Aiga115 requested a review from seankmartin March 6, 2026 12:51

const useAccordions = typeof NEUROGLANCER_USE_ACCORDIONS !== 'undefined' ? NEUROGLANCER_USE_ACCORDIONS : true;
if (!useAccordions) {
container.classList.add("no-border");

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this name would be better more specific, like neuroglancer-accordion-no-border

NEUROGLANCER_BRAINMAPS_CLIENT_ID: JSON.stringify(
"639403125587-4k5hgdfumtrvur8v48e3pr7oo91d765k.apps.googleusercontent.com",
),
NEUROGLANCER_USE_ACCORDIONS: process.env.NEUROGLANCER_USE_ACCORDIONS === 'true',

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We can comment this out like the other examples in this file, but great to include as an example

font-family: monospace;
font-size: medium;
flex: 1;
text-overflow: ellipsis;

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What does this change relate to?

@seankmartin
Copy link

We also need to modify the tooltip on the chevron for expand collapse
image

constructor(
public jsonKey: string,
private defaultExpanded = false,
private defaultExpanded = true,

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

with the inclusion of the ability to disable the accordions, I think we can set this back to false

if there is a section set to be non-expanded and then we disable accordions does it still show?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants