Skip to content

Commit

Permalink
Change searching metohd (#175)
Browse files Browse the repository at this point in the history
  • Loading branch information
Filip-L authored Jan 28, 2025
1 parent ac006b2 commit 85cb83f
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion src/app/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -142,12 +142,21 @@ export default function Home(): JSX.Element {
const clientName = app.Client?.Name?.toLowerCase() || ''
const owner = app.owner?.toLowerCase() || ''
const repo = app.repo?.toLowerCase() || ''
const issueReporterHandle =
app['Issue Reporter Handle']?.toLowerCase() || ''
const dataSampleSet =
(app.Project[
'Please share a sample of the data (a link to a file, an image, a table, etc., are good ways to do this.)'
] as string) || ''
const dataSampleSetToLower = dataSampleSet.toLowerCase()
const searchLower = searchTerm.toLowerCase()

return (
clientName.includes(searchLower) ||
owner.includes(searchLower) ||
repo.includes(searchLower)
repo.includes(searchLower) ||
issueReporterHandle.includes(searchLower) ||
dataSampleSetToLower.includes(searchLower)
)
})
: filteredData
Expand Down

0 comments on commit 85cb83f

Please sign in to comment.