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

Allow sorting the resources by Last Updated At #469

Merged
merged 1 commit into from
Jul 28, 2022

Conversation

vinamra28
Copy link
Member

@vinamra28 vinamra28 commented Apr 19, 2022

Changes

Currently hub allows sorting of resources by name or rating. A user
might want to reorder the resources on the basis of their last updated
date. Adding one more parameter of LastUpdated in Dropdown of sorting.

Screenshot 2022-07-28 at 10 17 37 AM

closes #371

Signed-off-by: vinamra28 [email protected]

Submitter Checklist

These are the criteria that every PR should meet, please check them off as you
review them:

  • Includes tests (if functionality changed/added)
  • Run API Unit Tests, Lint Checks, API Design, Golden Files with make api-check
  • Run UI Unit Tests, Lint Checks with make ui-check
  • Commit messages follow commit message best practices

See the contribution guide for more details.

@tekton-robot tekton-robot added the do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. label Apr 19, 2022
@tekton-robot tekton-robot added the size/S Denotes a PR that changes 10-29 lines, ignoring generated files. label Apr 19, 2022
@tekton-robot tekton-robot added size/M Denotes a PR that changes 30-99 lines, ignoring generated files. and removed size/S Denotes a PR that changes 10-29 lines, ignoring generated files. labels Apr 19, 2022
@vinamra28 vinamra28 force-pushed the sort-by-last-updated branch 2 times, most recently from c203b41 to 7ca6438 Compare April 20, 2022 03:52
@vinamra28 vinamra28 marked this pull request as ready for review April 20, 2022 03:53
@tekton-robot tekton-robot removed the do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. label Apr 20, 2022
@vinamra28
Copy link
Member Author

/cc @pratap0007 @PuneetPunamiya

@PuneetPunamiya
Copy link
Member

The patch overall looks good to me, just a suggestion should we change the name from LastUpdated to Recently Updated

@PuneetPunamiya
Copy link
Member

/approve

@tekton-robot tekton-robot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Apr 20, 2022
@sm43
Copy link
Member

sm43 commented May 9, 2022

/approve

@pratap0007
Copy link
Contributor

pratap0007 commented May 10, 2022

if I increase screen's resolution >=150% it looks like this cc @PuneetPunamiya @piyush-garg
Screenshot from 2022-05-10 17-13-47

@piyush-garg
Copy link
Contributor

if I increase screen's resolution >=150% it looks like this cc @PuneetPunamiya @piyush-garg Screenshot from 2022-05-10 17-13-47

@vinamra28 Can you please fix this?

@PuneetPunamiya
Copy link
Member

if I increase screen's resolution >=150% it looks like this cc @PuneetPunamiya @piyush-garg Screenshot from 2022-05-10 17-13-47

@vinamra28 Can you please fix this?

Currently if we increase the screen resolution today as well, it will looks as the above screenshot,
Hence I think we can think we can address this in a different patch but I think we should change
the text from Last Updated -> Recently Updated if that makes sense ?

@piyush-garg
Copy link
Contributor

if I increase screen's resolution >=150% it looks like this cc @PuneetPunamiya @piyush-garg Screenshot from 2022-05-10 17-13-47

@vinamra28 Can you please fix this?

Currently if we increase the screen resolution today as well, it will looks as the above screenshot, Hence I think we can think we can address this in a different patch but I think we should change the text from Last Updated -> Recently Updated if that makes sense ?

@vinamra28 Can you please change it to Recently Updated?

@vinamra28
Copy link
Member Author

@PuneetPunamiya @piyush-garg @pratap0007 updated the PR. PTAL

@pratap0007
Copy link
Contributor

pratap0007 commented Jul 5, 2022

PR looks good to me thanks for updating it , regarding css style of sortBy one way we can improve a bit if RecentlyUpdated is selected increase the width size of Sort component -> (https://github.com/tektoncd/hub/blob/main/ui/src/components/LeftPane/index.tsx#L14 -><GridItem span={resources.sortBy == SortByFields.RecentlyUpdated ? 11 : 8}>

@tekton-robot tekton-robot added needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. size/L Denotes a PR that changes 100-499 lines, ignoring generated files. and removed size/M Denotes a PR that changes 30-99 lines, ignoring generated files. needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. labels Jul 24, 2022
@tekton-robot tekton-robot added size/M Denotes a PR that changes 30-99 lines, ignoring generated files. and removed size/L Denotes a PR that changes 100-499 lines, ignoring generated files. labels Jul 24, 2022
Currently hub allows sorting of resources by name or rating. A user
might want to reorder the resources on the basis of their last updated
date. Adding one more parameter of LastUpdated in Dropdown of sorting.

Signed-off-by: vinamra28 <[email protected]>
@pratap0007
Copy link
Contributor

/retest

@pratap0007
Copy link
Contributor

Thanks for updating it and looks good to me cc @piyush-garg @PuneetPunamiya

@PuneetPunamiya
Copy link
Member

/approve
/meow

@tekton-robot
Copy link

@PuneetPunamiya: cat image

In response to this:

/approve
/meow

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

@tekton-robot
Copy link

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: PuneetPunamiya, sm43

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:
  • OWNERS [PuneetPunamiya,sm43]

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@piyush-garg
Copy link
Contributor

/lgtm

@tekton-robot tekton-robot added the lgtm Indicates that a PR is ready to be merged. label Jul 28, 2022
@tekton-robot tekton-robot merged commit 7dfc824 into tektoncd:main Jul 28, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved Indicates a PR has been approved by an approver from all required OWNERS files. lgtm Indicates that a PR is ready to be merged. size/M Denotes a PR that changes 30-99 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Allow sorting by upload date.
6 participants