Commit efcb6af
fix(web): collapse org release filter tabs to All/Web/GitHub (#798)
* fix(web): collapse org release filter tabs to All/Web/GitHub
The per-type filter strip (All/Scrape/Feed/GitHub) was both more granular
than users care about and prone to a layout glitch where the inner
flex-wrap on the chip group would split chips across two rows while the
checkbox stayed vertically centered, looking like overlap.
- Collapse feed/scrape/agent into a single "Web" group; GitHub stays
distinct. Show the strip only when the org actually has both sides.
- Stop the chip group from shrinking (shrink-0 + whitespace-nowrap) so
it never wraps internally; let the checkbox wrap to its own row via
ml-auto when the parent is narrow.
- Replace -mt-2 with mt-3 so the active pill no longer collides with
the tab bar's border-b.
The API contract is unchanged — "Web" sends source_type=feed,scrape,agent
through the existing tolerant parser.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
* Reset filterGroup to "all" if its source type disappears
Defensive guard for the (currently theoretical) case where
availableSourceTypes changes such that the active group is no longer
represented — without this, buildQuery would keep sending the stale
source_type and the user would see empty results with no visible tab to
clear it. CodeRabbit catch on #798.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
* Add aria-pressed to filter buttons
CodeRabbit nit on #798 — the active state was visual-only.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
* Abort in-flight pagination when filters change
Without this, clicking "Load more" then flipping a filter could race —
the old page's response would land after the filter-change refetch and
append stale rows to the new filtered list. The filter-change effect
now aborts any in-flight loadMore alongside its own previous request.
CodeRabbit catch on #798.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
* Surface loadMore failures via fetchError, don't rethrow
Re-throwing inside loadMore (invoked from onClick) caused unhandled
promise rejections on transient failures like a malformed JSON response.
Mirror the refetch effect — set fetchError so the existing banner
surfaces the failure.
CodeRabbit catch on #798.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
---------
Co-authored-by: Claude Opus 4.7 (1M context) <noreply@anthropic.com>1 parent 41412ed commit efcb6af
1 file changed
Lines changed: 60 additions & 24 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
| 3 | + | |
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
| |||
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
17 | | - | |
18 | | - | |
19 | | - | |
20 | | - | |
21 | | - | |
22 | | - | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
23 | 28 | | |
24 | 29 | | |
25 | 30 | | |
| |||
28 | 33 | | |
29 | 34 | | |
30 | 35 | | |
31 | | - | |
| 36 | + | |
32 | 37 | | |
33 | 38 | | |
34 | 39 | | |
| |||
38 | 43 | | |
39 | 44 | | |
40 | 45 | | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
41 | 53 | | |
42 | 54 | | |
43 | | - | |
44 | | - | |
45 | | - | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
46 | 58 | | |
47 | | - | |
48 | | - | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
49 | 62 | | |
50 | | - | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
51 | 73 | | |
52 | 74 | | |
53 | 75 | | |
54 | 76 | | |
55 | | - | |
| 77 | + | |
| 78 | + | |
56 | 79 | | |
57 | 80 | | |
58 | 81 | | |
59 | 82 | | |
60 | | - | |
| 83 | + | |
61 | 84 | | |
62 | 85 | | |
63 | 86 | | |
64 | 87 | | |
65 | 88 | | |
66 | 89 | | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
67 | 93 | | |
68 | 94 | | |
69 | 95 | | |
| |||
85 | 111 | | |
86 | 112 | | |
87 | 113 | | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
88 | 117 | | |
89 | 118 | | |
90 | | - | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
91 | 122 | | |
92 | 123 | | |
| 124 | + | |
93 | 125 | | |
94 | 126 | | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
95 | 130 | | |
96 | | - | |
| 131 | + | |
97 | 132 | | |
98 | 133 | | |
99 | 134 | | |
| |||
108 | 143 | | |
109 | 144 | | |
110 | 145 | | |
111 | | - | |
112 | | - | |
| 146 | + | |
| 147 | + | |
113 | 148 | | |
114 | 149 | | |
115 | | - | |
| 150 | + | |
116 | 151 | | |
117 | 152 | | |
118 | 153 | | |
119 | 154 | | |
| 155 | + | |
120 | 156 | | |
121 | 157 | | |
122 | | - | |
| 158 | + | |
123 | 159 | | |
124 | 160 | | |
125 | | - | |
| 161 | + | |
126 | 162 | | |
127 | 163 | | |
128 | 164 | | |
| |||
133 | 169 | | |
134 | 170 | | |
135 | 171 | | |
136 | | - | |
| 172 | + | |
137 | 173 | | |
138 | 174 | | |
139 | 175 | | |
| |||
0 commit comments