You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@superset.apache.org by "rusackas (via GitHub)" <gi...@apache.org> on 2024/12/06 21:40:15 UTC
[PR] feat(filters): adding filter type icons in filter config modal. [superset]
rusackas opened a new pull request, #31330:
URL: https://github.com/apache/superset/pull/31330
<!---
Please write the PR title following the conventions at https://www.conventionalcommits.org/en/v1.0.0/
Example:
fix(dashboard): load charts correctly
-->
### SUMMARY
<!--- Describe the change below, including rationale and design decisions -->
Adds filter/divider icons in the Filter config modal, so that you can finally tell what these darn things _are_.
### BEFORE/AFTER SCREENSHOTS OR ANIMATED GIF
<!--- Skip this if not applicable -->
<img width="865" alt="Pasted_Image_12_6_24__2_39 PM" src="https://github.com/user-attachments/assets/3011b960-d709-4029-b6f9-d65c1799316b">
### TESTING INSTRUCTIONS
<!--- Required! What steps can be taken to manually verify the changes? -->
### 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
Re: [PR] feat(filters): adding filter type icons in filter config modal. [superset]
Posted by "rusackas (via GitHub)" <gi...@apache.org>.
rusackas commented on PR #31330:
URL: https://github.com/apache/superset/pull/31330#issuecomment-2536962840
> @rusackas Can you check this [comment](https://github.com/apache/superset/pull/31330#issuecomment-2528766132)?
This is because the (custom) icons themselves are goofy, with different SVG bounding boxes. I can add custom CSS overrides to bump things up or down a pixel, but that seems like the wrong fix. I'd rather go fiddle with the sizing/alignment of the icons themselves in a subsequent PR.
--
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
Re: [PR] feat(filters): adding filter type icons in filter config modal. [superset]
Posted by "michael-s-molina (via GitHub)" <gi...@apache.org>.
michael-s-molina commented on PR #31330:
URL: https://github.com/apache/superset/pull/31330#issuecomment-2531555527
@justinpark Are you suggesting a horizontal line? If yes, I don't think it would work given the different title lengths.
--
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
Re: [PR] feat(filters): adding filter type icons in filter config modal. [superset]
Posted by "rusackas (via GitHub)" <gi...@apache.org>.
rusackas commented on PR #31330:
URL: https://github.com/apache/superset/pull/31330#issuecomment-2536999617
The fix for misaligned icons is exponentially more complex, with cleanup of overrides throughout the product and arguably contingent upon completing the migration to AntD 5. I suppose the options are:
1) Add some ugly CSS overrides to shift a pixel here and there.
2) Close this PR, and have no indication as to which items are dividers or filters.
I lean toward #2 if you're worried about it.
--
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
Re: [PR] feat(filters): adding filter type icons in filter config modal. [superset]
Posted by "rusackas (via GitHub)" <gi...@apache.org>.
rusackas closed pull request #31330: feat(filters): adding filter type icons in filter config modal.
URL: https://github.com/apache/superset/pull/31330
--
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
Re: [PR] feat(filters): adding filter type icons in filter config modal. [superset]
Posted by "michael-s-molina (via GitHub)" <gi...@apache.org>.
michael-s-molina commented on PR #31330:
URL: https://github.com/apache/superset/pull/31330#issuecomment-2537163926
I'm ok with option 1 with a TODO to review the CSS after the Ant Design upgrade. From a user's perspective the icons will be aligned.
--
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
Re: [PR] feat(filters): adding filter type icons in filter config modal. [superset]
Posted by "mistercrunch (via GitHub)" <gi...@apache.org>.
mistercrunch commented on PR #31330:
URL: https://github.com/apache/superset/pull/31330#issuecomment-2537165285
for reference -> <img width="323" alt="Screenshot 2024-12-11 at 1 00 42 PM" src="https://github.com/user-attachments/assets/19ae88e4-8241-4a94-b12c-dbac6a93f222" />
--
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
Re: [PR] feat(filters): adding filter type icons in filter config modal. [superset]
Posted by "rusackas (via GitHub)" <gi...@apache.org>.
rusackas commented on PR #31330:
URL: https://github.com/apache/superset/pull/31330#issuecomment-3707790954
Rebased on latest master (was 2,110 commits behind). Updates include:
- Migrated to new AntD theme tokens (`theme.colorIcon`, `theme.sizeUnit`)
- Cleaned up the `isFilterDivider` helper function
- Squashed commits
Still need to manually verify the icon alignment issue raised by @michael-s-molina before taking out of draft.
--
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
Re: [PR] feat(filters): adding filter type icons in filter config modal. [superset]
Posted by "justinpark (via GitHub)" <gi...@apache.org>.
justinpark commented on PR #31330:
URL: https://github.com/apache/superset/pull/31330#issuecomment-2529894166
I think having the divider designed similarly to the filter can cause confusion.
How about changing it to make the divider block easily recognizable, rather than using an icon like this?

--
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
Re: [PR] feat(filters): adding filter type icons in filter config modal. [superset]
Posted by "mistercrunch (via GitHub)" <gi...@apache.org>.
mistercrunch commented on PR #31330:
URL: https://github.com/apache/superset/pull/31330#issuecomment-2537153885
Just noting that there are no icon currently. You could remove the icons and that would make this PR focussed on the trigger.
In terms of design, one option could be to `border-bottom` the container div, looking like an underline going across the panel. I would look similar to what it looks like in the dashboard (text with a horizontal bar underneat)
--
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
Re: [PR] feat(filters): adding filter type icons in filter config modal. [superset]
Posted by "michael-s-molina (via GitHub)" <gi...@apache.org>.
michael-s-molina commented on PR #31330:
URL: https://github.com/apache/superset/pull/31330#issuecomment-2528766132
@rusackas It looks like the icons are vertically misaligned in the screenshot.
--
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
Re: [PR] feat(filters): adding filter type icons in filter config modal. [superset]
Posted by "michael-s-molina (via GitHub)" <gi...@apache.org>.
michael-s-molina commented on PR #31330:
URL: https://github.com/apache/superset/pull/31330#issuecomment-2536981153
> I'd rather go fiddle with the sizing/alignment of the icons themselves in a subsequent PR.
I would argue that the whole point of this PR is to add icons and that their alignment seems to be essential for what you're doing. In other words, it looks weird that in one PR you add misaligned icons and in another PR you fix the alignment.
--
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
Re: [PR] feat(filters): adding filter type icons in filter config modal. [superset]
Posted by "rusackas (via GitHub)" <gi...@apache.org>.
rusackas commented on PR #31330:
URL: https://github.com/apache/superset/pull/31330#issuecomment-2537211875
Ok, seems I've stepped in it again...
Pinging Dr. @kasiazjc for good measure.
The options continue to proliferate...
1) Icons
2) No icons, and treat the divider differently (underline, or some other treatment)
3) Skip all this and consider a revamp, wherein:
* Filters in the filter bar get drag/drop reordering and "edit" buttons (on hover)
* "Add/edit filters" becomes "Add filter" and "Add divider" in the filter bar ⚙️ menu.
* Filter config modal now only needs to support a single filter... so just ditch its left panel entirely.
--
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