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: sort card view by Alphabetical, Recently Modified, and Least Recently Modified #10601

Merged
merged 4 commits into from
Aug 14, 2020

Conversation

lilykuang
Copy link
Member

@lilykuang lilykuang commented Aug 14, 2020

SUMMARY

  • sort card view by Alphabetical, Recently Modified, and Least Recently Modified

BEFORE/AFTER SCREENSHOTS OR ANIMATED GIF

Screen Shot 2020-08-13 at 5 27 57 PM

Screen Shot 2020-08-13 at 5 34 45 PM

TEST PLAN

WIP

ADDITIONAL INFORMATION

  • Has associated issue:
  • Changes UI
  • Requires DB Migration.
  • Confirm DB Migration upgrade and downgrade tested.
  • Introduces new feature or API
  • Removes existing feature or API

@codecov-commenter
Copy link

codecov-commenter commented Aug 14, 2020

Codecov Report

Merging #10601 into master will increase coverage by 4.28%.
The diff coverage is 96.96%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master   #10601      +/-   ##
==========================================
+ Coverage   60.10%   64.39%   +4.28%     
==========================================
  Files         775      776       +1     
  Lines       36528    36559      +31     
  Branches     3459     3464       +5     
==========================================
+ Hits        21955    23541    +1586     
+ Misses      14382    12909    -1473     
+ Partials      191      109      -82     
Flag Coverage Δ
#cypress 54.71% <ø> (?)
#javascript 60.62% <96.96%> (+0.14%) ⬆️
#python 59.86% <ø> (-0.02%) ⬇️

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

Impacted Files Coverage Δ
...rontend/src/components/ListView/CardSortSelect.tsx 95.65% <95.65%> (ø)
...erset-frontend/src/components/ListView/Filters.tsx 90.90% <100.00%> (-0.27%) ⬇️
...rset-frontend/src/components/ListView/ListView.tsx 95.29% <100.00%> (+0.17%) ⬆️
superset-frontend/src/components/ListView/utils.ts 75.00% <100.00%> (ø)
...perset-frontend/src/views/CRUD/chart/ChartList.tsx 76.02% <100.00%> (+3.61%) ⬆️
...rontend/src/views/CRUD/dashboard/DashboardList.tsx 73.64% <100.00%> (+3.58%) ⬆️
superset/db_engine_specs/presto.py 82.02% <0.00%> (-0.68%) ⬇️
...src/components/FilterableTable/FilterableTable.tsx 81.77% <0.00%> (-0.41%) ⬇️
... and 150 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 db88cec...b354a4a. Read the comment docs.

@lilykuang lilykuang marked this pull request as ready for review August 14, 2020 16:58
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.

LGTM, I like the consistency with filters and columns api.

*/
import React, { useState } from 'react';
import { styled, withTheme, SupersetThemeProps } from '@superset-ui/style';
import { PartialThemeConfig, Select } from 'src/components/Select';
Copy link
Member

Choose a reason for hiding this comment

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

we probably could have gotten away with an antd dropdown as we'll only be rendering a few items and don't need search, but this is good for consistency with the filter components.

@nytai nytai merged commit 03a62f1 into apache:master Aug 14, 2020
@nytai nytai deleted the lily/card-view-sort branch August 14, 2020 22:07
@rusackas
Copy link
Member

Impacts #8976

Ofeknielsen pushed a commit to ofekisr/incubator-superset that referenced this pull request Oct 5, 2020
auxten pushed a commit to auxten/incubator-superset that referenced this pull request Nov 20, 2020
@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