feat(#571): Shares view gains My shares and Shared with me tabs #583
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "fix-571tabs"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
The last piece of #571. One sidebar entry, two tabs, per the rev-2 mockup.
My shares lists grants and public links together, grouped by file. They answer one question — what have I let out, and to whom? — and an owner who has to check two places will check one.
pure:share-groupsis the tested part: one group per file rather than one per share, ordered by path so the list does not jump around, and grants before links inside a group, because "who can see this" is answered by the people and the public link is the loud exception that belongs at the bottom.Shared with me is flattened, as agreed — one row per granted item with who it came from, and a name that navigates to
s.vpath. That value comes from the server (#582), so the view does not rebuild/shared/<owner>/<name>itself and cannot drift from what the overlay actually resolves.A group-derived grant says via {group}. Cheap to render, and it is the honest answer to "where did that file go?" when someone leaves a group — the grant goes with the membership.
Rendered into the existing
#listpane. That element is what the view machinery already reveals for this view; adding a sibling container would have meant teachingsetViewabout it for no gain. The tab strip is the first<li>, styled as a strip. Given that a merged switch turned out to be invisible three rounds ago because I did not know aboutSET_SLOTS, staying inside a container the shell already manages is deliberate.Everything the previous list showed is preserved: key-link, password and file-drop badges, expiry, copy and revoke.
The one-shot prints its assumptions before acting — every helper it calls (
load,askConfirm,copyText,fmtTime,setView,closeMenus) and every existing i18n key it reuses, with a count. 6 new keys ×4.Red witnessed: the
pure:share-groupsblock did not exist.Verified:
share-groups.test.jsgreen, all eleven web tests green,extract.js+node --check(#389 fence gate) green,\\uescape guard green, full Go suite green.Not verified: appearance, and no live round-trip. #571's UI now wants a release and a look on the dogfood.