Commit 2b0a27e
authored
feat: add shared workspaces view (#991)
Add a Shared Workspaces tree view that queries shared:true and filters
out the signed-in user's own workspaces client-side, since the server
also returns workspaces we own and shared out.
Rework session state to support this safely: SessionStore owns the
deployment session and replaces the immutable SessionData object on
every sign-in/out, so providers detect concurrent session changes by
comparing object identity and drop stale fetches. Per-view behavior
(owner column, metadata watchers, owner filtering) is driven by a
WORKSPACE_QUERY_CONFIG table.
A fetch that goes stale or is requested mid-flight queues a re-fetch
that runs once the current request settles, so requests never run in
parallel and every session change ends with fresh data. Same-user
token rotations refresh client credentials in place without tearing
down the trees.1 parent a402fb6 commit 2b0a27e
10 files changed
Lines changed: 1302 additions & 229 deletions
File tree
- src
- core
- deployment
- workspace
- test
- mocks
- unit
- deployment
- workspace
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
317 | 317 | | |
318 | 318 | | |
319 | 319 | | |
| 320 | + | |
| 321 | + | |
| 322 | + | |
| 323 | + | |
| 324 | + | |
| 325 | + | |
| 326 | + | |
320 | 327 | | |
321 | 328 | | |
322 | 329 | | |
| |||
459 | 466 | | |
460 | 467 | | |
461 | 468 | | |
| 469 | + | |
| 470 | + | |
| 471 | + | |
| 472 | + | |
| 473 | + | |
| 474 | + | |
462 | 475 | | |
463 | 476 | | |
464 | 477 | | |
| |||
585 | 598 | | |
586 | 599 | | |
587 | 600 | | |
| 601 | + | |
| 602 | + | |
| 603 | + | |
| 604 | + | |
588 | 605 | | |
589 | 606 | | |
590 | 607 | | |
| |||
628 | 645 | | |
629 | 646 | | |
630 | 647 | | |
| 648 | + | |
| 649 | + | |
| 650 | + | |
| 651 | + | |
| 652 | + | |
| 653 | + | |
| 654 | + | |
| 655 | + | |
| 656 | + | |
| 657 | + | |
631 | 658 | | |
632 | 659 | | |
633 | 660 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
22 | 22 | | |
23 | 23 | | |
24 | 24 | | |
| 25 | + | |
25 | 26 | | |
26 | 27 | | |
27 | 28 | | |
| |||
0 commit comments