Skip to content

refactor: place instance-specific config into dedicated context#997

Closed
Gtoasted wants to merge 13 commits into
stoatchat:mainfrom
Gtoasted:refactor-config
Closed

refactor: place instance-specific config into dedicated context#997
Gtoasted wants to merge 13 commits into
stoatchat:mainfrom
Gtoasted:refactor-config

Conversation

@Gtoasted

@Gtoasted Gtoasted commented Mar 5, 2026

Copy link
Copy Markdown

In order to implement token federation (as per https://github.com/orgs/stoatchat/discussions/1073#discussioncomment-15814999), the client must be refactored to not use global configuration for values that are dependent on a specific instance.
This is fairly easy for most of them, since they are accessed in components and can thus use solid's context feature, but some values are also accessed in stores. I'm not sure how to best make those access the config, and I would appreciate suggestions, but I believe they will lead to a few client errors at worst, so it should be fine to deal with them later.

Gtoasted added 13 commits March 5, 2026 23:15
The purpose of this context is to hold information about a single instance of stoat (information that is currently stored in global configuration)

Signed-off-by: Gtoasted <git@gtoasted.de>
…A_URL

Signed-off-by: Gtoasted <git@gtoasted.de>
…Y_URL

Signed-off-by: Gtoasted <git@gtoasted.de>
…BOX_URL

Signed-off-by: Gtoasted <git@gtoasted.de>
Signed-off-by: Gtoasted <git@gtoasted.de>
…TCHA_SITEKEY

Signed-off-by: Gtoasted <git@gtoasted.de>
Signed-off-by: Gtoasted <git@gtoasted.de>
don't know why the previous commits didn't

Signed-off-by: Gtoasted <git@gtoasted.de>
@Gtoasted

Copy link
Copy Markdown
Author

These changes are already merged in #999, so to reduce pr clutter I'll close this one.

@Gtoasted Gtoasted closed this Apr 23, 2026
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.

1 participant