Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add account edit save settings screen #7272

Closed
wants to merge 8 commits into from

Conversation

wmontwe
Copy link
Member

@wmontwe wmontwe commented Oct 20, 2023

This finalises the account server settings editing feature. I removed use of Result/Outcome and used exceptions instead.

@wmontwe wmontwe requested a review from cketti October 20, 2023 12:43
@wmontwe wmontwe force-pushed the add_account_edit_save_settings_screen branch from a8426e8 to 7415955 Compare October 20, 2023 13:25
Currently, `useCompression` and `isSendClientIdEnabled` are not part of `ServerSettings` in `Account` (and storage, and settings files, etc). We need to fix this eventually. But it's a larger change. For now we convert between the `ServerSettings` variants at the edges.
Scaffold(
topBar = {
AccountTopAppBarWithBackButton(
title = "Edit Server Settings",
Copy link
Member

Choose a reason for hiding this comment

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

Hardcoded text. However, right now the validation screen and the saving screen have different looking headers. We should talk about cleaning this up in the design meeting. We might end up removing this string anyway.

Comment on lines +34 to +36
LaunchedEffect(key1 = Unit) {
dispatch(Event.SaveServerSettings)
}
Copy link
Member

Choose a reason for hiding this comment

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

This will trigger an additional save operation e.g. after a configuration change. We have the same problem in a couple of other places. I'll create an issue for that.

cketti added a commit that referenced this pull request Oct 25, 2023
Add account edit save settings screen
@cketti
Copy link
Member

cketti commented Oct 25, 2023

Manually rebased and merged via 4d14362 to preserve the history in this branch/pull request.

@cketti cketti closed this Oct 25, 2023
@cketti cketti deleted the add_account_edit_save_settings_screen branch October 25, 2023 14:33
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.

2 participants