yangzhang75 opened a new pull request, #7860:
URL: https://github.com/apache/texera/pull/7860

   Part of #7828, and the last PR in the series. Stacked on #7859 — the review 
here is the last commit, `feat(frontend): mark the public version and open what 
a listing advertises`.
   
   Two places outside the share dialog have to agree with the pin.
   
   ## The versions panel marks the version the Hub is serving
   
   A quiet second line under its timestamp — the panel is 230px wide, so 
horizontal room is scarce while vertical room is free. That row is also how an 
author who has moved on gets the published copy back: it is already in the 
panel, so restoring it is the restore they already know.
   
   It re-reads when the share dialog closes, since that is where the pin can 
have moved and the panel is covered until then. The dialog announces rather 
than reaching down into the panel, which keeps the dependency one-way.
   
   ## A hub entry opens what it advertises
   
   A hub card shows the public copy. Clicking it took the author into their 
editor, so the workflow they had just seen described one way opened another. An 
author whose working copy has moved on behind a pin now lands on the published 
preview — what they just saw, and where Clone gives them a copy of it.
   
   Their own listings are untouched: under Your Work the entry is their 
workflow, and it opens the editor as before.
   
   | Where | Whose entry | Opens |
   |---|---|---|
   | Your Work → Workflows | yours | the editor, as before |
   | Hub | yours, following or in sync | the editor, as before |
   | Hub | yours, pinned and behind | the published preview |
   | Hub | someone else's | the published preview, as before |
   
   ## Tests
   
   +9 frontend cases: the routing rule in both the list and the card view, and 
the versions panel showing the mark, re-reading when told to, and leaving 
unmarked rows alone.
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to