Commit 4111daa
committed
feat: migrate event filtering from mode-based to allow unregistered kinds system
BREAKING CHANGE: Removes blacklist/whitelist mode selector in favor of simpler toggle
- Remove mode field from EventFilteringConfig interface
- Add allow_unregistered_kinds and registered_kinds fields
- Replace mode selector UI with 'Allow Unregistered Kind Numbers' toggle
- Add warning display when unregistered kinds are allowed
- Refactor useRelaySettings hook to handle new backend structure
- Simplify KindsList component (removed unused props)
- Update DynamicKindsList to show registration status
- Update Desktop and Mobile layouts with new toggle
- Remove all mode-related logic throughout codebase
- Add translations for new UI elements
This aligns the frontend with backend changes that simplify event filtering
by using a single toggle to control acceptance of unknown event types,
while registered kinds can be individually enabled/disabled.1 parent 04fbb12 commit 4111daa
2 files changed
Lines changed: 6 additions & 30 deletions
Lines changed: 0 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
51 | 51 | | |
52 | 52 | | |
53 | 53 | | |
54 | | - | |
55 | | - | |
56 | 54 | | |
57 | 55 | | |
58 | 56 | | |
| |||
Lines changed: 6 additions & 28 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
12 | | - | |
13 | | - | |
14 | 12 | | |
15 | 13 | | |
16 | 14 | | |
17 | 15 | | |
18 | 16 | | |
19 | 17 | | |
20 | | - | |
21 | | - | |
22 | 18 | | |
23 | 19 | | |
24 | 20 | | |
| |||
31 | 27 | | |
32 | 28 | | |
33 | 29 | | |
34 | | - | |
35 | | - | |
36 | | - | |
37 | | - | |
38 | | - | |
39 | | - | |
40 | | - | |
41 | | - | |
42 | | - | |
43 | | - | |
44 | | - | |
45 | | - | |
46 | | - | |
47 | | - | |
48 | | - | |
49 | | - | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
50 | 33 | | |
51 | 34 | | |
52 | 35 | | |
| |||
59 | 42 | | |
60 | 43 | | |
61 | 44 | | |
62 | | - | |
63 | 45 | | |
64 | | - | |
65 | 46 | | |
66 | 47 | | |
67 | 48 | | |
68 | | - | |
69 | 49 | | |
70 | 50 | | |
71 | | - | |
| 51 | + | |
72 | 52 | | |
73 | 53 | | |
74 | | - | |
| 54 | + | |
75 | 55 | | |
76 | 56 | | |
77 | 57 | | |
78 | | - | |
79 | | - | |
| 58 | + | |
80 | 59 | | |
81 | 60 | | |
82 | 61 | | |
83 | 62 | | |
84 | 63 | | |
85 | | - | |
86 | 64 | | |
87 | 65 | | |
88 | 66 | | |
| |||
0 commit comments