You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@superset.apache.org by GitBox <gi...@apache.org> on 2022/11/30 14:02:58 UTC

[GitHub] [superset] kgabryje opened a new pull request, #22273: Feat/horizontal native filters

kgabryje opened a new pull request, #22273:
URL: https://github.com/apache/superset/pull/22273

   
   ### SUMMARY
   This PR adjusts native filter components for horizontal filter bar.
   Noteworthy changes:
   1. Value filter:
      a) use `maxTagCount: responsive` while in horizontal orientation, which ensures that the Select component doesn't grow in height when selecting more values
      b) Set a fixed `maxTagTextLength`, so that while in `responsive` mode, at least 1 value is always displayed
      c) Customize `maxTagPlaceholder, so that the overflow tag doesn't display 3 dots at the end, which takes precious space 
          (e.g. instead of the default `+ 1 ...` we show `+1` when 1 item is overflowing)
   2. Range filter:
      a) Adjust the top and bottom margin to make sure that the slider is centered in horizontal mode
      b) Decrease font weight and line height so that the marks fit well in the horizontal filter bar
   3. Time range filter: add styling to make sure that the pill is centered in horizontal mode
   
   Known issues:
   1. Due to how the responsive mode works, we needed to set a fixed max tag text length, which means that if there's 1 tag, it won't take the whole available space and it will be truncated. It looks a bit awkward and I'm searching for a better solution.
   2. The time range pill's width is dynamic depending on selected time range ("No filter" pill is smaller than "2022-01-01 : 2022-12-01" pill). However, the filter component itself always has a fixed width, which means that if the pill is short, there might be some empty space between the time range filter and the filter next to it.
   
   ### BEFORE/AFTER SCREENSHOTS OR ANIMATED GIF
   <img width="1792" alt="Screenshot 2022-11-30 at 14 49 21" src="https://user-images.githubusercontent.com/15073128/204815039-5b059801-4ec0-4f9b-ba79-46ae40603a38.png">
   
   
   ### TESTING INSTRUCTIONS
   1. Enable `HORIZONTAL_FILTER_BAR` ff
   3. Set horizontal mode for the native filters bar
   4. Add various types of filters
   5. Make sure that nothing breaks
   
   ### ADDITIONAL INFORMATION
   <!--- Check any relevant boxes with "x" -->
   <!--- HINT: Include "Fixes #nnn" if you are fixing an existing issue -->
   - [ ] Has associated issue:
   - [ ] Required feature flags:
   - [ ] Changes UI
   - [ ] Includes DB Migration (follow approval process in [SIP-59](https://github.com/apache/superset/issues/13351))
     - [ ] Migration is atomic, supports rollback & is backwards-compatible
     - [ ] Confirm DB migration upgrade and downgrade tested
     - [ ] Runtime estimates and downtime expectations provided
   - [ ] Introduces new feature or API
   - [ ] Removes existing feature or API
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org


[GitHub] [superset] codecov[bot] commented on pull request #22273: Feat/horizontal native filters

Posted by GitBox <gi...@apache.org>.
codecov[bot] commented on PR #22273:
URL: https://github.com/apache/superset/pull/22273#issuecomment-1332291671

   # [Codecov](https://codecov.io/gh/apache/superset/pull/22273?src=pr&el=h1&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=The+Apache+Software+Foundation) Report
   > Merging [#22273](https://codecov.io/gh/apache/superset/pull/22273?src=pr&el=desc&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=The+Apache+Software+Foundation) (46808da) into [master](https://codecov.io/gh/apache/superset/commit/91d19056cf236e78230228e26b3358060e626499?el=desc&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=The+Apache+Software+Foundation) (91d1905) will **decrease** coverage by `0.00%`.
   > The diff coverage is `42.85%`.
   
   ```diff
   @@            Coverage Diff             @@
   ##           master   #22273      +/-   ##
   ==========================================
   - Coverage   66.83%   66.83%   -0.01%     
   ==========================================
     Files        1841     1841              
     Lines       70219    70228       +9     
     Branches     7671     7677       +6     
   ==========================================
   + Hits        46934    46938       +4     
     Misses      21302    21302              
   - Partials     1983     1988       +5     
   ```
   
   | Flag | Coverage Δ | |
   |---|---|---|
   | javascript | `53.65% <42.85%> (-0.01%)` | :arrow_down: |
   
   Flags with carried forward coverage won't be shown. [Click here](https://docs.codecov.io/docs/carryforward-flags?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=The+Apache+Software+Foundation#carryforward-flags-in-the-pull-request-comment) to find out more.
   
   | [Impacted Files](https://codecov.io/gh/apache/superset/pull/22273?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=The+Apache+Software+Foundation) | Coverage Δ | |
   |---|---|---|
   | [...Filters/FilterBar/FilterControls/FilterControl.tsx](https://codecov.io/gh/apache/superset/pull/22273/diff?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=The+Apache+Software+Foundation#diff-c3VwZXJzZXQtZnJvbnRlbmQvc3JjL2Rhc2hib2FyZC9jb21wb25lbnRzL25hdGl2ZUZpbHRlcnMvRmlsdGVyQmFyL0ZpbHRlckNvbnRyb2xzL0ZpbHRlckNvbnRyb2wudHN4) | `29.03% <0.00%> (ø)` | |
   | [...veFilters/FilterBar/FilterControls/FilterValue.tsx](https://codecov.io/gh/apache/superset/pull/22273/diff?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=The+Apache+Software+Foundation#diff-c3VwZXJzZXQtZnJvbnRlbmQvc3JjL2Rhc2hib2FyZC9jb21wb25lbnRzL25hdGl2ZUZpbHRlcnMvRmlsdGVyQmFyL0ZpbHRlckNvbnRyb2xzL0ZpbHRlclZhbHVlLnRzeA==) | `6.31% <0.00%> (ø)` | |
   | [...end/src/filters/components/Range/transformProps.ts](https://codecov.io/gh/apache/superset/pull/22273/diff?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=The+Apache+Software+Foundation#diff-c3VwZXJzZXQtZnJvbnRlbmQvc3JjL2ZpbHRlcnMvY29tcG9uZW50cy9SYW5nZS90cmFuc2Zvcm1Qcm9wcy50cw==) | `100.00% <ø> (ø)` | |
   | [...nd/src/filters/components/Select/transformProps.ts](https://codecov.io/gh/apache/superset/pull/22273/diff?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=The+Apache+Software+Foundation#diff-c3VwZXJzZXQtZnJvbnRlbmQvc3JjL2ZpbHRlcnMvY29tcG9uZW50cy9TZWxlY3QvdHJhbnNmb3JtUHJvcHMudHM=) | `91.66% <ø> (ø)` | |
   | [...et-frontend/src/filters/components/Select/types.ts](https://codecov.io/gh/apache/superset/pull/22273/diff?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=The+Apache+Software+Foundation#diff-c3VwZXJzZXQtZnJvbnRlbmQvc3JjL2ZpbHRlcnMvY29tcG9uZW50cy9TZWxlY3QvdHlwZXMudHM=) | `100.00% <ø> (ø)` | |
   | [...d/src/filters/components/Time/TimeFilterPlugin.tsx](https://codecov.io/gh/apache/superset/pull/22273/diff?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=The+Apache+Software+Foundation#diff-c3VwZXJzZXQtZnJvbnRlbmQvc3JjL2ZpbHRlcnMvY29tcG9uZW50cy9UaW1lL1RpbWVGaWx0ZXJQbHVnaW4udHN4) | `0.00% <ø> (ø)` | |
   | [...tend/src/filters/components/Time/transformProps.ts](https://codecov.io/gh/apache/superset/pull/22273/diff?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=The+Apache+Software+Foundation#diff-c3VwZXJzZXQtZnJvbnRlbmQvc3JjL2ZpbHRlcnMvY29tcG9uZW50cy9UaW1lL3RyYW5zZm9ybVByb3BzLnRz) | `0.00% <ø> (ø)` | |
   | [...c/filters/components/Select/SelectFilterPlugin.tsx](https://codecov.io/gh/apache/superset/pull/22273/diff?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=The+Apache+Software+Foundation#diff-c3VwZXJzZXQtZnJvbnRlbmQvc3JjL2ZpbHRlcnMvY29tcG9uZW50cy9TZWxlY3QvU2VsZWN0RmlsdGVyUGx1Z2luLnRzeA==) | `61.72% <33.33%> (-1.10%)` | :arrow_down: |
   | [...src/filters/components/Range/RangeFilterPlugin.tsx](https://codecov.io/gh/apache/superset/pull/22273/diff?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=The+Apache+Software+Foundation#diff-c3VwZXJzZXQtZnJvbnRlbmQvc3JjL2ZpbHRlcnMvY29tcG9uZW50cy9SYW5nZS9SYW5nZUZpbHRlclBsdWdpbi50c3g=) | `68.80% <40.00%> (-1.95%)` | :arrow_down: |
   | [...es/superset-ui-core/src/chart/models/ChartProps.ts](https://codecov.io/gh/apache/superset/pull/22273/diff?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=The+Apache+Software+Foundation#diff-c3VwZXJzZXQtZnJvbnRlbmQvcGFja2FnZXMvc3VwZXJzZXQtdWktY29yZS9zcmMvY2hhcnQvbW9kZWxzL0NoYXJ0UHJvcHMudHM=) | `100.00% <100.00%> (ø)` | |
   | ... and [2 more](https://codecov.io/gh/apache/superset/pull/22273/diff?src=pr&el=tree-more&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=The+Apache+Software+Foundation) | |
   
   :mega: We’re building smart automated test selection to slash your CI/CD build times. [Learn more](https://about.codecov.io/iterative-testing/?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=The+Apache+Software+Foundation)
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org


[GitHub] [superset] kgabryje commented on a diff in pull request #22273: feat(native-filters): Adjust filter components for horizontal mode

Posted by GitBox <gi...@apache.org>.
kgabryje commented on code in PR #22273:
URL: https://github.com/apache/superset/pull/22273#discussion_r1037368658


##########
superset-frontend/src/filters/components/Select/SelectFilterPlugin.tsx:
##########
@@ -72,6 +83,60 @@ function reducer(
   }
 }
 
+const StyledTag = styled(AntdTag)`
+  & .ant-tag-close-icon {
+    display: inline-flex;
+    align-items: center;
+    margin-left: ${({ theme }) => theme.gridUnit}px;
+  }
+
+  & .tag-content {
+    overflow: hidden;
+    text-overflow: ellipsis;
+  }
+`;
+
+export interface CustomTagProps extends HTMLSpanElement {
+  label: ReactNode;
+}
+
+// TODO: use antd Tag props instead of any. Currently it's causing a typescript error
+const Tag = (props: any) => {

Review Comment:
   done



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org


[GitHub] [superset] kgabryje commented on pull request #22273: feat(native-filters): Adjust filter components for horizontal mode

Posted by GitBox <gi...@apache.org>.
kgabryje commented on PR #22273:
URL: https://github.com/apache/superset/pull/22273#issuecomment-1333833169

   @michael-s-molina @geido @codyml I implemented the Select changes based on our yesterday discussion. Can you take a look?


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org


[GitHub] [superset] geido commented on pull request #22273: feat(native-filters): Adjust filter components for horizontal mode

Posted by GitBox <gi...@apache.org>.
geido commented on PR #22273:
URL: https://github.com/apache/superset/pull/22273#issuecomment-1332466400

   /testenv up FEATURE_HORIZONTAL_FILTER_BAR=true


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org


[GitHub] [superset] geido commented on a diff in pull request #22273: feat(native-filters): Adjust filter components for horizontal mode

Posted by GitBox <gi...@apache.org>.
geido commented on code in PR #22273:
URL: https://github.com/apache/superset/pull/22273#discussion_r1036222846


##########
superset-frontend/src/filters/components/Select/SelectFilterPlugin.tsx:
##########
@@ -323,11 +325,23 @@ export default function PluginFilterSelect(props: PluginFilterSelectProps) {
           onChange={handleChange}
           ref={inputRef}
           loading={isRefreshing}
-          maxTagCount={5}
+          maxTagCount={
+            filterBarOrientation === FilterBarOrientation.HORIZONTAL
+              ? 'responsive'
+              : 5

Review Comment:
   Can we put this is a constant at the top of the file just to make it more discoverable?



##########
superset-frontend/src/filters/components/Range/RangeFilterPlugin.tsx:
##########
@@ -31,6 +31,7 @@ import { PluginFilterRangeProps } from './types';
 import { StatusMessage, StyledFormItem, FilterPluginStyle } from '../common';
 import { getRangeExtraFormData } from '../../utils';
 import { SingleValueType } from './SingleValueType';
+import { FilterBarOrientation } from '../../../dashboard/types';

Review Comment:
   Can we use an absolute path here?



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org


[GitHub] [superset] kgabryje commented on a diff in pull request #22273: feat(native-filters): Adjust filter components for horizontal mode

Posted by GitBox <gi...@apache.org>.
kgabryje commented on code in PR #22273:
URL: https://github.com/apache/superset/pull/22273#discussion_r1037370838


##########
superset-frontend/src/components/Select/styles.tsx:
##########
@@ -52,6 +52,25 @@ export const StyledSelect = styled(AntdSelect, {
     .ant-select-arrow .anticon:not(.ant-select-suffix) {
       pointer-events: none;
     }
+
+    ${
+      oneLine &&
+      `
+      .ant-select-selection-overflow {
+        flex-wrap: nowrap;
+      }
+
+      .ant-select-selection-overflow-item:not(.ant-select-selection-overflow-item-rest):not(.ant-select-selection-overflow-item-suffix) {
+        flex-shrink: 1;
+        min-width: ${theme.gridUnit * 13}px;
+      }
+
+      .ant-select-selection-overflow-item-suffix {
+        flex: unset;
+        min-width: 0px;
+      }
+    `
+    }

Review Comment:
   done



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org


[GitHub] [superset] kgabryje commented on pull request #22273: feat(native-filters): Adjust filter components for horizontal mode

Posted by GitBox <gi...@apache.org>.
kgabryje commented on PR #22273:
URL: https://github.com/apache/superset/pull/22273#issuecomment-1334143034

   /testenv up FEATURE_HORIZONTAL_FILTER_BAR=true


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org


[GitHub] [superset] michael-s-molina merged pull request #22273: feat(native-filters): Adjust filter components for horizontal mode

Posted by GitBox <gi...@apache.org>.
michael-s-molina merged PR #22273:
URL: https://github.com/apache/superset/pull/22273


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org


[GitHub] [superset] github-actions[bot] commented on pull request #22273: feat(native-filters): Adjust filter components for horizontal mode

Posted by GitBox <gi...@apache.org>.
github-actions[bot] commented on PR #22273:
URL: https://github.com/apache/superset/pull/22273#issuecomment-1334420675

   Ephemeral environment shutdown and build artifacts deleted.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org


[GitHub] [superset] michael-s-molina commented on pull request #22273: feat(native-filters): Adjust filter components for horizontal mode

Posted by GitBox <gi...@apache.org>.
michael-s-molina commented on PR #22273:
URL: https://github.com/apache/superset/pull/22273#issuecomment-1334420183

   > LGTM! One thing I noticed that can probably wait for a future PR (or left as-is) is that if there's a time filter in the overflow dropdown, clicking either of the popover buttons also closes the dropdown, which is probably not what we want:
   
   Good point @codyml. Let's handle that in a follow-up.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org


[GitHub] [superset] github-actions[bot] commented on pull request #22273: feat(native-filters): Adjust filter components for horizontal mode

Posted by GitBox <gi...@apache.org>.
github-actions[bot] commented on PR #22273:
URL: https://github.com/apache/superset/pull/22273#issuecomment-1332468701

   @geido Ephemeral environment spinning up at http://54.188.207.110:8080. Credentials are `admin`/`admin`. Please allow several minutes for bootstrapping and startup.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org


[GitHub] [superset] michael-s-molina commented on a diff in pull request #22273: feat(native-filters): Adjust filter components for horizontal mode

Posted by GitBox <gi...@apache.org>.
michael-s-molina commented on code in PR #22273:
URL: https://github.com/apache/superset/pull/22273#discussion_r1037182632


##########
superset-frontend/src/components/Select/styles.tsx:
##########
@@ -52,6 +52,25 @@ export const StyledSelect = styled(AntdSelect, {
     .ant-select-arrow .anticon:not(.ant-select-suffix) {
       pointer-events: none;
     }
+
+    ${
+      oneLine &&
+      `
+      .ant-select-selection-overflow {
+        flex-wrap: nowrap;
+      }
+
+      .ant-select-selection-overflow-item:not(.ant-select-selection-overflow-item-rest):not(.ant-select-selection-overflow-item-suffix) {
+        flex-shrink: 1;
+        min-width: ${theme.gridUnit * 13}px;
+      }
+
+      .ant-select-selection-overflow-item-suffix {
+        flex: unset;
+        min-width: 0px;
+      }
+    `
+    }

Review Comment:
   ```suggestion
       ${
         oneLine &&
         `
           .ant-select-selection-overflow {
             flex-wrap: nowrap;
           }
   
           .ant-select-selection-overflow-item:not(.ant-select-selection-overflow-item-rest):not(.ant-select-selection-overflow-item-suffix) {
             flex-shrink: 1;
             min-width: ${theme.gridUnit * 13}px;
           }
   
           .ant-select-selection-overflow-item-suffix {
             flex: unset;
             min-width: 0px;
           }
         `
       }
   ```



##########
superset-frontend/src/filters/components/Select/SelectFilterPlugin.tsx:
##########
@@ -72,6 +83,60 @@ function reducer(
   }
 }
 
+const StyledTag = styled(AntdTag)`
+  & .ant-tag-close-icon {
+    display: inline-flex;
+    align-items: center;
+    margin-left: ${({ theme }) => theme.gridUnit}px;
+  }
+
+  & .tag-content {
+    overflow: hidden;
+    text-overflow: ellipsis;
+  }
+`;
+
+export interface CustomTagProps extends HTMLSpanElement {
+  label: ReactNode;
+}
+
+// TODO: use antd Tag props instead of any. Currently it's causing a typescript error
+const Tag = (props: any) => {

Review Comment:
   It seems the custom render is necessary to make `oneLine` work correctly so we need to move this code to the Select component.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org


[GitHub] [superset] geido commented on pull request #22273: feat(native-filters): Adjust filter components for horizontal mode

Posted by GitBox <gi...@apache.org>.
geido commented on PR #22273:
URL: https://github.com/apache/superset/pull/22273#issuecomment-1334095572

   /testenv up FEATURE_HORIZONTAL_FILTER_BAR=true


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org


[GitHub] [superset] kgabryje commented on a diff in pull request #22273: feat(native-filters): Adjust filter components for horizontal mode

Posted by GitBox <gi...@apache.org>.
kgabryje commented on code in PR #22273:
URL: https://github.com/apache/superset/pull/22273#discussion_r1037368424


##########
superset-frontend/src/filters/components/Select/SelectFilterPlugin.tsx:
##########
@@ -323,11 +325,23 @@ export default function PluginFilterSelect(props: PluginFilterSelectProps) {
           onChange={handleChange}
           ref={inputRef}
           loading={isRefreshing}
-          maxTagCount={5}
+          maxTagCount={
+            filterBarOrientation === FilterBarOrientation.HORIZONTAL
+              ? 'responsive'
+              : 5

Review Comment:
   No longer applicable



##########
superset-frontend/src/filters/components/Range/RangeFilterPlugin.tsx:
##########
@@ -31,6 +31,7 @@ import { PluginFilterRangeProps } from './types';
 import { StatusMessage, StyledFormItem, FilterPluginStyle } from '../common';
 import { getRangeExtraFormData } from '../../utils';
 import { SingleValueType } from './SingleValueType';
+import { FilterBarOrientation } from '../../../dashboard/types';

Review Comment:
   done



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org


[GitHub] [superset] github-actions[bot] commented on pull request #22273: feat(native-filters): Adjust filter components for horizontal mode

Posted by GitBox <gi...@apache.org>.
github-actions[bot] commented on PR #22273:
URL: https://github.com/apache/superset/pull/22273#issuecomment-1334100551

   @geido Ephemeral environment spinning up at http://52.26.161.172:8080. Credentials are `admin`/`admin`. Please allow several minutes for bootstrapping and startup.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org


[GitHub] [superset] github-actions[bot] commented on pull request #22273: feat(native-filters): Adjust filter components for horizontal mode

Posted by GitBox <gi...@apache.org>.
github-actions[bot] commented on PR #22273:
URL: https://github.com/apache/superset/pull/22273#issuecomment-1334149012

   @kgabryje Ephemeral environment spinning up at http://34.208.45.61:8080. Credentials are `admin`/`admin`. Please allow several minutes for bootstrapping and startup.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org