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

chore: uniform icons across list views #10363

Merged
merged 3 commits into from
Jul 21, 2020
Merged

Conversation

mistercrunch
Copy link
Member

Screen Shot 2020-07-18 at 5 56 50 PM

@codecov-commenter
Copy link

codecov-commenter commented Jul 19, 2020

Codecov Report

Merging #10363 into master will decrease coverage by 0.72%.
The diff coverage is n/a.

Impacted file tree graph

@@            Coverage Diff             @@
##           master   #10363      +/-   ##
==========================================
- Coverage   70.48%   69.75%   -0.73%     
==========================================
  Files         603      196     -407     
  Lines       32427    19045   -13382     
  Branches     3294        0    -3294     
==========================================
- Hits        22856    13285    -9571     
+ Misses       9467     5760    -3707     
+ Partials      104        0     -104     
Flag Coverage Δ
#cypress ?
#javascript ?
#python 69.75% <ø> (+0.03%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
superset/db_engine_specs/sqlite.py 64.51% <0.00%> (-9.68%) ⬇️
superset/result_set.py 96.63% <0.00%> (-1.69%) ⬇️
superset/sql_lab.py 77.92% <0.00%> (-0.44%) ⬇️
superset-frontend/src/visualizations/constants.js
...tend/src/explore/components/DisplayQueryButton.jsx
...t-frontend/src/dashboard/actions/dashboardState.js
superset-frontend/src/components/CheckboxIcons.jsx
...-frontend/src/dashboard/reducers/dashboardState.js
superset-frontend/src/utils/safeStringify.ts
...dashboard/components/FilterIndicatorsContainer.jsx
... and 398 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 5fa4680...bb6e2d9. Read the comment docs.

@mistercrunch mistercrunch force-pushed the icons branch 2 times, most recently from 1c0cfda to 7318589 Compare July 19, 2020 15:24
Copy link
Member

@nytai nytai left a comment

Choose a reason for hiding this comment

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

just 2 minor comments, otherwise LGTM. Thanks for doing this!

<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
<g id="Icon / Share">
<g id="upload">
<path id="Shape" fill-rule="evenodd" clip-rule="evenodd" d="M8.71 7.71002L11 5.41002V15C11 15.5523 11.4477 16 12 16C12.5523 16 13 15.5523 13 15V5.41002L15.29 7.71002C15.4778 7.89933 15.7334 8.00582 16 8.00582C16.2666 8.00582 16.5222 7.89933 16.71 7.71002C16.8993 7.52225 17.0058 7.26666 17.0058 7.00002C17.0058 6.73338 16.8993 6.47779 16.71 6.29002L12.71 2.29002C12.6149 2.19898 12.5028 2.12761 12.38 2.08002C12.1365 1.98 11.8635 1.98 11.62 2.08002C11.4972 2.12761 11.3851 2.19898 11.29 2.29002L7.29 6.29002C7.03634 6.54368 6.93728 6.91339 7.03012 7.2599C7.12297 7.6064 7.39362 7.87705 7.74012 7.9699C8.08663 8.06274 8.45634 7.96368 8.71 7.71002ZM21 12C20.4477 12 20 12.4477 20 13V19C20 19.5523 19.5523 20 19 20H5C4.44772 20 4 19.5523 4 19V13C4 12.4477 3.55228 12 3 12C2.44772 12 2 12.4477 2 13V19C2 20.6569 3.34315 22 5 22H19C20.6569 22 22 20.6569 22 19V13C22 12.4477 21.5523 12 21 12Z" fill="#666666"/>
Copy link
Member

Choose a reason for hiding this comment

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

Can you change this fill color to currentColor which should make it easy to set the color property in these icons.

| 'medium'
| 'lg'
| 'large'
| undefined;
Copy link
Member

Choose a reason for hiding this comment

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

making a prop optional, via the ?, automatically adds the undefined value.

@@ -173,7 +174,7 @@ class DashboardList extends React.PureComponent<Props, State> {
},
}: any) => (
<span className="no-wrap">
{published ? <i className="fa fa-check" /> : ''}
{published ? <i className="fa fa-check text-muted" /> : ''}
Copy link
Member

Choose a reason for hiding this comment

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

is this color supposed to match the other Icons? it doesn't currently. Maybe replace this with <Icon name="check' />

Choose a reason for hiding this comment

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

+1 this. I think we should move to use our own svg/Icon component and finally remove Font Awesome. otherwise, i always feel confused which icon to use :(

@pull-request-size pull-request-size bot added size/L and removed size/M labels Jul 21, 2020
@mistercrunch mistercrunch force-pushed the icons branch 3 times, most recently from c808262 to 4a66b90 Compare July 21, 2020 00:13
@@ -62,13 +62,15 @@ export default function DeleteModal({
primaryButtonType="danger"
show={open}
title={title}
bsSize="medium"
Copy link
Member Author

@mistercrunch mistercrunch Jul 21, 2020

Choose a reason for hiding this comment

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

bycatch

after

Screen Shot 2020-07-20 at 5 14 43 PM

before

Screen Shot 2020-07-20 at 5 14 11 PM

@mistercrunch
Copy link
Member Author

Addressed comments!

@mistercrunch mistercrunch merged commit 61544de into apache:master Jul 21, 2020
@mistercrunch mistercrunch deleted the icons branch July 21, 2020 02:56
auxten pushed a commit to auxten/incubator-superset that referenced this pull request Nov 20, 2020
* chore: uniform icons across list views

* smaller modals

* integrating comments
@mistercrunch mistercrunch added 🏷️ bot A label used by `supersetbot` to keep track of which PR where auto-tagged with release labels 🚢 0.38.0 labels Mar 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🏷️ bot A label used by `supersetbot` to keep track of which PR where auto-tagged with release labels size/L 🚢 0.38.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants