Skip to content

rework display state system to be extensible#5

Merged
segallagher merged 7 commits intomainfrom
sg/separate-error-and-pending-states
Apr 14, 2026
Merged

rework display state system to be extensible#5
segallagher merged 7 commits intomainfrom
sg/separate-error-and-pending-states

Conversation

@segallagher
Copy link
Copy Markdown
Contributor

rework display state system to be extensible
fully take over creation of widget
stop adding an event listener every time the widget status is updated
split error and pending states to be red and orange respectively

@github-actions
Copy link
Copy Markdown

Binder 👈 Launch a Binder on branch ASFOpenSARlab/nbgitpuller-jl-interface/sg%2Fseparate-error-and-pending-states

@segallagher segallagher added the enhancement New feature or request label Apr 14, 2026
Comment thread src/utils.ts Outdated
Comment on lines +38 to +44
// const updateReposBtn = new ToolbarButton({
// className: 'nbgitpuller-jl-interface-update-btn',
// label: '◉ Initializing',
// tooltip: 'Initializing nbgitpuller'
// });
// updateReposBtn.id = widget_id;
// updateReposBtn.addClass('nbgitpuller-jl-interface-wrapper');
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Is there reason to retain this code block?

Copy link
Copy Markdown
Member

@dgpalmieri dgpalmieri left a comment

Choose a reason for hiding this comment

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

:shipit:

Comment thread src/utils.ts Outdated
import { JupyterFrontEnd } from '@jupyterlab/application';

import { ToolbarButton } from '@jupyterlab/apputils';
// import { ToolbarButton } from '@jupyterlab/apputils';
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Suggested change
// import { ToolbarButton } from '@jupyterlab/apputils';

Comment thread src/utils.ts Outdated
Comment on lines +38 to +44
// const updateReposBtn = new ToolbarButton({
// className: 'nbgitpuller-jl-interface-update-btn',
// label: '◉ Initializing',
// tooltip: 'Initializing nbgitpuller'
// });
// updateReposBtn.id = widget_id;
// updateReposBtn.addClass('nbgitpuller-jl-interface-wrapper');
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Suggested change
// const updateReposBtn = new ToolbarButton({
// className: 'nbgitpuller-jl-interface-update-btn',
// label: '◉ Initializing',
// tooltip: 'Initializing nbgitpuller'
// });
// updateReposBtn.id = widget_id;
// updateReposBtn.addClass('nbgitpuller-jl-interface-wrapper');

@segallagher segallagher merged commit c0858ba into main Apr 14, 2026
10 checks passed
@segallagher segallagher deleted the sg/separate-error-and-pending-states branch April 14, 2026 23:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants