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

feat: 🎸 [JIRA:IOSSDKBUG-434] filterFeedBack list mutil selections shown in section #865

Merged
merged 5 commits into from
Nov 7, 2024

Conversation

restaurantt
Copy link
Collaborator

@restaurantt restaurantt commented Nov 6, 2024

Add 'ListEntriesSectionMode' to control whether entries section shown or not.
when listEntriesSectionMode is 'default', depends on 'allowsMultipleSelection', when allowsMultipleSelection is true, selections should be shown in an individual section.
2

@restaurantt restaurantt requested a review from a team as a code owner November 6, 2024 01:09
@restaurantt restaurantt requested review from billzhou0223 and removed request for a team November 6, 2024 01:09
filterFeedBack list mutil selections shown in section
public init(id: String = UUID().uuidString, name: String, value: [Int], valueOptions: [String], allowsMultipleSelection: Bool, allowsEmptySelection: Bool, barItemDisplayMode: BarItemDisplayMode = .name, isSearchBarHidden: Bool = false, icon: String? = nil, itemLayout: OptionListPickerItemLayoutType = .fixed, displayMode: DisplayMode = .automatic) {
/// Enum for list show entries section
/// The default value is `.default`.
public enum ListEntriesSectionMode {
Copy link

Choose a reason for hiding this comment

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

Nesting Violation: Types should be nested at most 1 level deep (nesting)

#else
.foregroundStyle(Color.preferredColor(.primaryLabel))
#endif
if !disableListEntriesSection, _value.count > 0 {
Copy link

Choose a reason for hiding this comment

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

Empty Count Violation: Prefer checking isEmpty over comparing count to zero. (empty_count)

public init(id: String = UUID().uuidString, name: String, value: [Int], valueOptions: [String], allowsMultipleSelection: Bool, allowsEmptySelection: Bool, barItemDisplayMode: BarItemDisplayMode = .name, isSearchBarHidden: Bool = false, icon: String? = nil, itemLayout: OptionListPickerItemLayoutType = .fixed, displayMode: DisplayMode = .automatic) {
/// Enum for list show entries section
/// The default value is `.default`.
public enum ListEntriesSectionMode {
Copy link

Choose a reason for hiding this comment

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

Nesting Violation: Types should be nested at most 1 level deep (nesting)

#else
.foregroundStyle(Color.preferredColor(.primaryLabel))
#endif
if !disableListEntriesSection, _value.count > 0 {
Copy link

Choose a reason for hiding this comment

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

Empty Count Violation: Prefer checking isEmpty over comparing count to zero. (empty_count)

@dyongxu dyongxu merged commit ede0b5e into SAP:main Nov 7, 2024
12 checks passed
@restaurantt restaurantt deleted the main-filterFeedback-mutilSelection branch November 22, 2024 02:10
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.

3 participants