Skip to content

Resurrecting Sidebar Macros plugin.#1414

Merged
jneilliii merged 5 commits intoOctoPrint:gh-pagesfrom
apbarratt:gh-pages
Feb 21, 2026
Merged

Resurrecting Sidebar Macros plugin.#1414
jneilliii merged 5 commits intoOctoPrint:gh-pagesfrom
apbarratt:gh-pages

Conversation

@apbarratt
Copy link
Contributor

@apbarratt apbarratt commented Feb 20, 2026

  • You have read the "Registering a new Plugin" guide.
  • You want to and are able to maintain the plugin you are registering, long-term.
  • You understand why the plugin you are registering works.
  • You have read and acknowledge the Code of Conduct.

What is the name of your plugin?

Sidebar Macros

What does your plugin do?

Adds buttons to trigger gcode macros to the ui.

Where can we find the source code of your plugin?

Originally, this plugin was found here: https://github.com/mike1pol/octoprint_macro
However, after becoming abandoned, I have forked it to here: https://github.com/apbarratt/octoprint_sidebar_macros

Was any kind of genAI (ChatGPT, Copilot etc) involved in creating this plugin?

Yes. Whilst I am a frontend developer myself, the bulk of this work involved comparing the original codebase with that of the latest cookie cutter scaffolding and bringing it all up to date to match. With so much back and forth comparison required, I chose to utilise ChatGPT Codex to assist me in the majority of this migration.

Is your plugin commercial in nature?

No

Does your plugin rely on some cloud services?

No

Further notes

I'd like to thank @mike1pol for their original plugin and of course will be happy to submit any changes as a PR back to their repo should they ever wish to take on maintenance again in the future :)

resolves #1362

Copy link
Contributor

@jneilliii jneilliii left a comment

Choose a reason for hiding this comment

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

Please see code comments.

pip: https://github.com/jneilliii/OctoPrint-MarlinSlider/archive/{target_version}.zip
macro:
user: apbarratt
pip: https://github.com/apbarratt/octoprint_sidebar_macros/archive/{target_version}.zip
Copy link
Contributor

Choose a reason for hiding this comment

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

I'm not sure if it's technically necessary, but you did change the name of the repo as well. I think you should add the following.

  repo: octoprint_sidebar_macros

Copy link
Contributor Author

Choose a reason for hiding this comment

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

With a less sleepy brain, I actually understood what this overlay file was doing and I've updated it now for all the update config stuff that's changed, including the Display Name too, which I'd changed to match how it was being shown on the plugin directory. Last night I also just sort of blindly copied how the telegram example was done, but this morning I've actually fixed the pip link to use the same as what I've got in the plugin, which specifically targets built releases, rather than source code archives defined by tag, which hopefully makes this safer for making sure folk only get code when I am satisfied it's ready for release :)

Comment on lines +8 to +9
- Mikhail Poluboyarinov
- apbarratt
Copy link
Contributor

Choose a reason for hiding this comment

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

concerned about formatting here because of the spaces.

- Mikhail Poluboyarinov
- apbarratt

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Eugh, sorry, in one of my rounds of trying to get the formatting correct on the actual plugin, it went and made the macro.md all be quad-spaced. I hadn't noticed when I copy pasted it over. Fixed now.

Comment on lines +17 to +20
- sidebar
- macros
- helpers
- gcode
Copy link
Contributor

Choose a reason for hiding this comment

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

same as above, extra spacing.

Comment on lines +23 to +25
- url: /assets/img/plugins/macro/main.png
alt: Sidebar macros list
caption: Sidebar macros list
Copy link
Contributor

Choose a reason for hiding this comment

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

spacing

Comment on lines +30 to +37
octoprint:
- 1.4.0
os:
- linux
- windows
- macos
- freebsd
python: ">=3.7,<4"
Copy link
Contributor

Choose a reason for hiding this comment

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

spacing

@github-project-automation github-project-automation bot moved this to In Progress in OctoPrint Backlog Feb 21, 2026
@jneilliii
Copy link
Contributor

@jacopotediosi you didn't have any security issues on your list for this plugin prior to these changes did you? I don't see anything that would hit your list normally, no API stuff, etc.

@jacopotediosi
Copy link
Contributor

jacopotediosi commented Feb 21, 2026

@jneilliii yeah the source code both on old and new repository looks good to me, thanks for asking!

@apbarratt
Copy link
Contributor Author

All feedback addressed, ready for another round of review :)

@apbarratt apbarratt requested a review from jneilliii February 21, 2026 14:28
@jneilliii jneilliii merged commit d4ddfcf into OctoPrint:gh-pages Feb 21, 2026
4 checks passed
@github-project-automation github-project-automation bot moved this from In Progress to Done in OctoPrint Backlog Feb 21, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

[Abandoned Plugin] Sidebar Macros - dangerous

3 participants