Skip to content

Upgrade Bootstrap to v5#811

Open
dswarbrick wants to merge 1 commit intoprometheus:masterfrom
dswarbrick:bootstrap5
Open

Upgrade Bootstrap to v5#811
dswarbrick wants to merge 1 commit intoprometheus:masterfrom
dswarbrick:bootstrap5

Conversation

@dswarbrick
Copy link
Copy Markdown

Replace deprecated Bootstrap v4 library with v5.

Closes: #687

Closes: prometheus#687

Signed-off-by: Daniel Swarbrick <daniel.swarbrick@gmail.com>
@dswarbrick
Copy link
Copy Markdown
Author

dswarbrick commented Mar 31, 2026

@beorn7 This is still using the up/down caret icons from the bootstrap4-glyphicons set. I wasn't sure if we also want to replace them with something modern. We could possibly ditch them altogether if we use the accordion component, which seems to have its own up/down caret toggle icons.

Also, we're still depending on jQuery for the XHR stuff and a bit of DOM manipulation in functions.js. Since Bootstrap itself no longer depends on jQuery, perhaps we should also try to ween this project off it too.

@beorn7
Copy link
Copy Markdown
Member

beorn7 commented Mar 31, 2026

I don't have strong feelings here.

But this should be reviewed/decided by the new maintainers @jan--f and @machine424 .

@beorn7
Copy link
Copy Markdown
Member

beorn7 commented Mar 31, 2026

And thanks for doing this work.

@beorn7 beorn7 requested review from jan--f and machine424 March 31, 2026 22:45
Copy link
Copy Markdown
Contributor

@jan--f jan--f left a comment

Choose a reason for hiding this comment

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

Generally this looks pretty good. I have one question below.

I think both you suggestions (the glyphicon and jquery dependecy) would make good follow ups. Would you perhaps even be interested in adding those?

success: function(data, textStatus, jqXHR) {
pushgateway.panel.remove();
pushgateway.decreaseDelAllCounter();
$('#del-modal').modal('hide');
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Does this need the same change as lines 34 and 42?

}
});
pushgateway.setDelAllCounter(0);
$('#del-all-modal').modal('hide');
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Same here?

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.

Update Bootstrap to v5

3 participants