Commit f978389
committed
improvement(tables): resolve the lock flag server-side and record lock changes fully
- Drop NEXT_PUBLIC_TABLE_LOCKS. A feature flag's gating lives in AppConfig,
which has no client counterpart, so mirroring it into a public env var meant
AppConfig couldn't control the UI at all and org/user clauses could never
reach the client — only global on/off. The page now resolves the flag with
session context and passes it down, per the add-feature-flag skill. Embedded
renders default to false, failing closed; enforcement of stored locks is
unaffected either way
- Record the previous locks alongside the new ones and name the transitions in
the audit description, so the log answers who locked what without expanding
metadata. Forward the request for IP / user-agent capture1 parent cfb4d2f commit f978389
5 files changed
Lines changed: 47 additions & 17 deletions
File tree
- apps/sim
- app
- api/table/[tableId]
- workspace/[workspaceId]/tables/[tableId]
- lib
- core/config
- table
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
164 | 164 | | |
165 | 165 | | |
166 | 166 | | |
167 | | - | |
| 167 | + | |
168 | 168 | | |
169 | 169 | | |
170 | 170 | | |
| |||
Lines changed: 16 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
3 | 6 | | |
4 | 7 | | |
5 | 8 | | |
| |||
11 | 14 | | |
12 | 15 | | |
13 | 16 | | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
14 | 22 | | |
15 | | - | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
16 | 30 | | |
17 | 31 | | |
18 | | - | |
| 32 | + | |
19 | 33 | | |
20 | 34 | | |
21 | 35 | | |
Lines changed: 8 additions & 9 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
11 | | - | |
12 | 11 | | |
13 | 12 | | |
14 | 13 | | |
| |||
78 | 77 | | |
79 | 78 | | |
80 | 79 | | |
81 | | - | |
82 | | - | |
83 | | - | |
84 | | - | |
85 | | - | |
86 | | - | |
87 | | - | |
88 | | - | |
89 | 80 | | |
90 | 81 | | |
91 | 82 | | |
| |||
96 | 87 | | |
97 | 88 | | |
98 | 89 | | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
99 | 97 | | |
100 | 98 | | |
101 | 99 | | |
| |||
152 | 150 | | |
153 | 151 | | |
154 | 152 | | |
| 153 | + | |
155 | 154 | | |
156 | 155 | | |
157 | 156 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
572 | 572 | | |
573 | 573 | | |
574 | 574 | | |
575 | | - | |
576 | 575 | | |
577 | 576 | | |
578 | 577 | | |
| |||
614 | 613 | | |
615 | 614 | | |
616 | 615 | | |
617 | | - | |
618 | 616 | | |
619 | 617 | | |
620 | 618 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
27 | 27 | | |
28 | 28 | | |
29 | 29 | | |
| 30 | + | |
| 31 | + | |
30 | 32 | | |
31 | 33 | | |
32 | 34 | | |
| |||
627 | 629 | | |
628 | 630 | | |
629 | 631 | | |
630 | | - | |
| 632 | + | |
| 633 | + | |
| 634 | + | |
631 | 635 | | |
| 636 | + | |
632 | 637 | | |
| 638 | + | |
633 | 639 | | |
634 | 640 | | |
635 | 641 | | |
| |||
639 | 645 | | |
640 | 646 | | |
641 | 647 | | |
| 648 | + | |
| 649 | + | |
| 650 | + | |
| 651 | + | |
| 652 | + | |
| 653 | + | |
| 654 | + | |
| 655 | + | |
| 656 | + | |
| 657 | + | |
| 658 | + | |
| 659 | + | |
642 | 660 | | |
643 | 661 | | |
644 | 662 | | |
645 | 663 | | |
646 | 664 | | |
647 | 665 | | |
648 | 666 | | |
649 | | - | |
650 | | - | |
| 667 | + | |
| 668 | + | |
| 669 | + | |
651 | 670 | | |
652 | 671 | | |
653 | 672 | | |
| |||
0 commit comments