application-research / estuary-www

https://estuary.tech
https://estuary.tech
Other
35 stars 31 forks source link

Render deal status icon with link to staging zone if in staged status #146

Open neelvirdy opened 1 year ago

neelvirdy commented 1 year ago

blocked on:

  1. populating DealStatus in util.Content
  2. making zoneId available in util.Content, or changing the /staging-zones/:id param to accept the zone content id instead of the zone id
en0ma commented 1 year ago
  1. making zoneId available in util.Content, or changing the /staging-zones/:id param to accept the zone content id instead of the zone id

Let's get @alvin-reyes to add a new int column(zone_id - with index) at the end of the content table (so it will be fast). I realized I need this too, as the reconstruction pulls in contents it has not added to the zone yet.

  1. populating DealStatus in util.Content

The same thing, we can get @alvin-reyes to another column for deal_status at the end of the content table

en0ma commented 1 year ago

@neelvirdy I was thinking about the deal status, that is going to be a bit tricky to pull off if we consider that content to a deal has a 1-to-many relationship and not a 1-to-1. So the question is, how do you want to display the status of all the 6 deals of a particular content?

neelvirdy commented 1 year ago

@neelvirdy I was thinking about the deal status, that is going to be a bit tricky to pull off if we consider that content to a deal has a 1-to-many relationship and not a 1-to-1. So the question is, how do you want to display the status of all the 6 deals of a particular content?

for the initial version i want to keep it simple and use the "lowest" status of the 6. so you would be in proposing until all 6 are accepted, for example.

for the next version, we can make the tooltip include counts like: "transfering (2 / 6)" where it shows how many of the deals are done with that "lowest" status.

after that, we should have a page for the set of deals pertaining to a content. so we could make the icon a link to that detailed page where you essentially get what's currently rendered on the Deals page, but just for that content.