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

[iOS] UI bug on iPad when using filters in Discussion #333

Merged
merged 70 commits into from
Mar 26, 2024

Conversation

forgotvas
Copy link
Contributor

@forgotvas forgotvas commented Mar 12, 2024

Related to: [iOS] UI bug on iPad when using filters in Discussion #308
Contains fix for iPad discussions filter and sort sheets

Filter Sort
f1 f2

@rnr rnr marked this pull request as ready for review March 21, 2024 15:03
rnr
rnr previously approved these changes Mar 21, 2024
Copy link
Contributor

@rnr rnr left a comment

Choose a reason for hiding this comment

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

LGTM, just small code-styling changes

.foregroundColor(Theme.Colors.accentXColor)
Text(viewModel.filterTitle.localizedValue)
})
.confirmationDialog(DiscussionLocalization.Posts.Alert.makeSelection,
Copy link
Contributor

Choose a reason for hiding this comment

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

please follow style "each parameter on own line"

Copy link
Contributor Author

Choose a reason for hiding this comment

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

done

titleVisibility: isPad ? .automatic : .visible,
actions: {
ForEach(viewModel.filterInfos) { info in
Button(action: {
Copy link
Contributor

Choose a reason for hiding this comment

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

please follow style "each parameter on own line"

Copy link
Contributor Author

Choose a reason for hiding this comment

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

done

.foregroundColor(Theme.Colors.accentXColor)
Text(viewModel.sortTitle.localizedValue)
})
.confirmationDialog(DiscussionLocalization.Posts.Alert.makeSelection,
Copy link
Contributor

Choose a reason for hiding this comment

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

please follow style "each parameter on own line"

Copy link
Contributor Author

Choose a reason for hiding this comment

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

done

titleVisibility: isPad ? .automatic : .visible,
actions: {
ForEach(viewModel.sortInfos) { info in
Button(action: {
Copy link
Contributor

Choose a reason for hiding this comment

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

please follow style "each parameter on own line"

Copy link
Contributor Author

Choose a reason for hiding this comment

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

done

rnr
rnr previously approved these changes Mar 21, 2024
Button(
action: {
showFilterSheet = true
},
Copy link
Contributor

Choose a reason for hiding this comment

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

Here is extra white space and giving the warning Trailing Whitespace Violation: Lines should not have trailing whitespace (trailing_whitespace).

Copy link
Contributor Author

Choose a reason for hiding this comment

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

done

Button(
action: {
viewModel.filter(by: info)
},
Copy link
Contributor

Choose a reason for hiding this comment

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

Same extra white space warning.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

done

Button(
action: {
showSortSheet = true
},
Copy link
Contributor

Choose a reason for hiding this comment

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

Same extra white space warning.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

done

Button(
action: {
viewModel.sort(by: info)
},
Copy link
Contributor

Choose a reason for hiding this comment

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

Same extra white space warning.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

done

saeedbashir
saeedbashir previously approved these changes Mar 25, 2024
Copy link
Contributor

@saeedbashir saeedbashir left a comment

Choose a reason for hiding this comment

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

LGTM 👍

@volodymyr-chekyrta volodymyr-chekyrta merged commit 513a883 into openedx:develop Mar 26, 2024
3 checks passed
@forgotvas forgotvas deleted the fix/discussion-filter branch March 27, 2024 20:50
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.

4 participants