cypress icon indicating copy to clipboard operation
cypress copied to clipboard

Message for newer runs at top of Runs page

Open warrensplayer opened this issue 1 year ago • 1 comments

Summary

The user should be able to know if there are newer Cloud builds than are being shown on the Runs page.

When the Runs page is showing Cloud builds relative to the local Git tree, it is possible that newer (i.e. more recent) builds could be recorded to the Cloud project. If that is the case, then a message should appear at the top of the list of "runs" that lets the user know.

Message

image
  • Show above the list of runs using the design linked
  • The value in the purple badge should be the count of "newer" Cloud builds that have a more recent "createdAt" date than the most recent build shown on the page
  • The message will say "There are newer runs on {branch name}" where the branch name is the name of the current branch for the local project
  • The "question mark" icon will have a tooltip that says "Pull from remote branch to display runs here"
    • Figma: https://www.figma.com/file/L3soH2rmrMMIlgE9EDUEKA/Runs-list%2C-v1.1---%40latest?type=design&node-id=701-121274&mode=design&t=fdTbIu49ekduHZZM-0
image

Data

To fetch the count for the badge, add a new field under CloudProject in the cypress-services.

Suggested Implementation

  • Call it runCounts
  • If no parameters given, return count of all runs for a project
  • Parameter should be filter which is an object that has:
    • branch (optional) - filter runs based on supplied branch
    • createdAfter (optional) - date/time that should return runs with a createdAt date greater than this value

References

Clickup: https://app.clickup.com/18033298/docs/h6amj-45987/h6amj-53707?block=block-fd2b8db0-88f6-45c6-9010-b0bdde378a9f Figma: https://www.figma.com/file/90FM8BU3k1HgsjOiDovpnn/In-App-Run-Notifications?type=design&node-id=1097-265730&mode=design&t=NYPLOxWN8VrhxChv-0

warrensplayer avatar Jul 05 '23 14:07 warrensplayer

Hey team! Please add your planning poker estimate with Zenhub @astone123 @dkasper-was-taken @jordanpowell88 @lmiller1990 @marktnoonan @mike-plummer

warrensplayer avatar Jul 12 '23 18:07 warrensplayer