agregore-browser icon indicating copy to clipboard operation
agregore-browser copied to clipboard

agregore://settings extension

Open av8ta opened this issue 2 years ago • 2 comments

🤔 A browser UI for configuring settings in general like agregore://settings might be useful. Kinda like how chrome://flags works.

Originally posted by @RangerMauve in https://github.com/AgregoreWeb/agregore-browser/issues/196#issuecomment-1173155548

An extension could be bundled with agregore that provides a ui for agregore settings with routes for protocol settings.

  • agregore://settings - for general agregore settings
  • agregore://settings/<protocol> - for protocol specific settings, e.g. agregore://settings/ssb

I imagine the simplest solution would be for the extension to write to ~/.agregorerc

av8ta avatar Jul 04 '22 11:07 av8ta

We could just prototype this in app/pages for now? Just for settings.

av8ta avatar Jul 22 '22 05:07 av8ta

Yeah for sure.

I think a good first step would be the following:

  • Find a way to only allow agregore://settings to load up in the top frame, and not in regular protocol handlers.
  • Find a way to listen on messages from agregore://settings for updating the config file. Make sure to have check so that other origins/pages cannot call this API.
  • Have a rudimentary text editing thing with the current JSON values for the config file as well as a save button to update the .agregorerc file.

RangerMauve avatar Aug 01 '22 20:08 RangerMauve