Skip to content

Add support for configuration through central policies#2016

Merged
mbnuqw merged 3 commits intombnuqw:v5from
spl3g:v5
Aug 21, 2025
Merged

Add support for configuration through central policies#2016
mbnuqw merged 3 commits intombnuqw:v5from
spl3g:v5

Conversation

@spl3g
Copy link
Copy Markdown
Contributor

@spl3g spl3g commented Feb 15, 2025

This pr adds an option to configure Sideberry with a file in ~/.mozilla/managed-storage/ or any other manifest location.
It also resolves #1776

So for example if you want to set the sidebarCSS, you would need to create a file in a manifest location with something like that in the contents:
~/.mozilla/managed-storage/{3c078156-979c-498b-8990-85f7987dd929}.json:

{
  "name": "{3c078156-979c-498b-8990-85f7987dd929}",
  "description": "_",
  "type": "storage",
  "data": {
    "sidebarCSS": "#root.root {--frame-bg: #343F44;}"
  }
}

Right now i added support for these keys:

  • settings
  • sidebarCSS
  • groupCSS
  • sidebar.nav
  • sidebar.panels
  • contextMenu

Any settings in the managed storage will overwrite the configuration in the local storage fully, except for the settings. It will overwrite only the fields that are in managed storage.

@spl3g
Copy link
Copy Markdown
Contributor Author

spl3g commented Mar 14, 2025

Hi @mbnuqw, is there anything preventing from merging the PR? Maybe I can improve or fix it.

@mbnuqw
Copy link
Copy Markdown
Owner

mbnuqw commented Aug 21, 2025

Thank you.

There are some UX issues (user should know what data is managed and cannot be permanently changed by Sidebery) but since this feature is for advanced users I'll merge it as it is.

@mbnuqw mbnuqw merged commit 7fd6198 into mbnuqw:v5 Aug 21, 2025
n0099 added a commit to n0099/nixos that referenced this pull request Sep 14, 2025
danielbodnar pushed a commit to bodnar-dev/sidebery that referenced this pull request Oct 18, 2025
…2016)

* feat: add managed storage to load functions

* fix: rename stored to storedManaged
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.

[Feature Request] Allow importing settings from a persistent directory in order to improve synchronization and reproducibility options

3 participants