Skip to content

Commit 193e743

Browse files
committed
Remove platform filter.
1 parent 40827ef commit 193e743

File tree

1 file changed

+1
-30
lines changed

1 file changed

+1
-30
lines changed

browser-extension/tests/playground/claude.tsx

Lines changed: 1 addition & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,6 @@ const generateMockDrafts = () => [
4848
kind: 'Comment',
4949
lastEdit: Date.now() - 1000 * 60 * 60 * 2,
5050
linkCount: 1,
51-
platform: 'Reddit',
5251
private: false,
5352
repoSlug: 'r/programming',
5453
state: { type: 'post' },
@@ -137,7 +136,6 @@ const timeAgo = (date: Date | number) => {
137136
export const ClaudePrototype = () => {
138137
const [drafts] = useState(generateMockDrafts())
139138
const [selectedIds, setSelectedIds] = useState(new Set())
140-
const [platformFilter, setPlatformFilter] = useState('All')
141139
const [typeFilter, setTypeFilter] = useState('All')
142140
const [hasCodeFilter, setHasCodeFilter] = useState(false)
143141
const [privateOnlyFilter, setPrivateOnlyFilter] = useState(false)
@@ -146,9 +144,6 @@ export const ClaudePrototype = () => {
146144

147145
const filteredDrafts = useMemo(() => {
148146
let filtered = [...drafts]
149-
if (platformFilter !== 'All') {
150-
filtered = filtered.filter((d) => d.platform === platformFilter)
151-
}
152147
if (typeFilter !== 'All') {
153148
filtered = filtered.filter((d) => d.kind === typeFilter)
154149
}
@@ -178,7 +173,7 @@ export const ClaudePrototype = () => {
178173
break
179174
}
180175
return filtered
181-
}, [drafts, platformFilter, typeFilter, hasCodeFilter, privateOnlyFilter, searchQuery, sortBy])
176+
}, [drafts, typeFilter, hasCodeFilter, privateOnlyFilter, searchQuery, sortBy])
182177

183178
const toggleSelection = (id: string) => {
184179
const newSelected = new Set(selectedIds)
@@ -269,7 +264,6 @@ export const ClaudePrototype = () => {
269264
if (
270265
filteredDrafts.length === 0 &&
271266
(searchQuery ||
272-
platformFilter !== 'All' ||
273267
typeFilter !== 'All' ||
274268
hasCodeFilter ||
275269
privateOnlyFilter)
@@ -279,17 +273,6 @@ export const ClaudePrototype = () => {
279273
<div className='p-6 border-b'>
280274
{/* Keep the header controls visible */}
281275
<div className='flex flex-wrap gap-3 items-center'>
282-
{/* Platform filter */}
283-
<select
284-
value={platformFilter}
285-
onChange={(e) => setPlatformFilter(e.target.value)}
286-
className='px-3 py-1.5 border border-gray-300 rounded-md text-sm'
287-
>
288-
<option>All</option>
289-
<option>GitHub</option>
290-
<option>Reddit</option>
291-
</select>
292-
293276
{/* Type filter */}
294277
<select
295278
value={typeFilter}
@@ -322,7 +305,6 @@ export const ClaudePrototype = () => {
322305
<button
323306
type='button'
324307
onClick={() => {
325-
setPlatformFilter('All')
326308
setTypeFilter('All')
327309
setHasCodeFilter(false)
328310
setPrivateOnlyFilter(false)
@@ -342,17 +324,6 @@ export const ClaudePrototype = () => {
342324
{/* Header controls */}
343325
<div className='p-6 border-b'>
344326
<div className='flex flex-wrap gap-3 items-center'>
345-
{/* Platform filter */}
346-
<select
347-
value={platformFilter}
348-
onChange={(e) => setPlatformFilter(e.target.value)}
349-
className='px-3 py-1.5 border border-gray-300 rounded-md text-sm focus:outline-none focus:ring-2 focus:ring-blue-500'
350-
>
351-
<option>All</option>
352-
<option>GitHub</option>
353-
<option>Reddit</option>
354-
</select>
355-
356327
{/* Type filter */}
357328
<select
358329
value={typeFilter}

0 commit comments

Comments
 (0)