utopia
utopia copied to clipboard
Unify our edit permissions mechanism
A small PR to unify our permissions mechanisms.
Instead of using two separate mechanisms (hasEditPermissions and allowedToEditProject) - now the permissions check is in permissions.ts (via the usePermissions hook) and the semantic checks (canEdit, canComment, etc) can be in the specific usage areas.
Job #10365: Bundle Size — 62.37MiB (~+0.01%).
85b840b(current) vs d299c8d master#10361(baseline)
[!WARNING] Bundle contains 66 duplicate packages – View duplicate packages
Bundle metrics 
3 changes 
1 regression
| Current Job #10365 |
Baseline Job #10361 |
|
|---|---|---|
35.4MiB(~+0.01%) |
35.4MiB |
|
0B |
0B |
|
20.57% |
21.79% |
|
28 |
28 |
|
32 |
32 |
|
4408(+0.02%) |
4407 |
|
490 |
490 |
|
30.7% |
30.7% |
|
462 |
462 |
|
65 |
65 |
Bundle size by type 
2 changes 
1 regression 
1 improvement
| Current Job #10365 |
Baseline Job #10361 |
|
|---|---|---|
62.36MiB (~+0.01%) |
62.35MiB |
|
11.37KiB (-0.32%) |
11.41KiB |
View job #10365 report View chore/unify-permissions branch activity View project dashboard
Performance test results:
