fixing filter

linting
pull/5042/head
lianahus 7 months ago committed by Aniket
parent a99ef3a075
commit 346a9c79e9
  1. 2
      apps/remix-ide/src/app/plugins/templates-selection/templates-selection-plugin.tsx
  2. 6
      apps/remix-ide/src/app/providers/environment-explorer.tsx
  3. 5
      libs/remix-ui/grid-view/src/lib/remix-ui-grid-cell.tsx

@ -162,7 +162,7 @@ export class TemplatesSelectionPlugin extends ViewPlugin {
plugin={this}
title={item.displayName}
hideTitle={true}
searchKeywords={[item.displayName, item.value, template.name, item.tagList]}
searchKeywords={[item.displayName, template.name]}
tagList={item.tagList}
classList='TSCellStyle'
>

@ -109,7 +109,7 @@ export class EnvironmentExplorer extends ViewPlugin {
logos={provider.logos}
hideTitle={true}
classList='EECellStyle'
searchKeywords={['Injected', provider.displayName, provider.title, provider.description]}
searchKeywords={['Injected', provider.name, provider.displayName, provider.title, provider.description]}
pinned={this.pinnedProviders.includes(provider.name)}
id={provider.name}
pinStateCallback={async (pinned: boolean) => {
@ -144,7 +144,7 @@ export class EnvironmentExplorer extends ViewPlugin {
logos={provider.logos}
classList='EECellStyle'
hideTitle={true}
searchKeywords={['Remix VMs', provider.displayName, provider.title, provider.description]}
searchKeywords={['Remix VMs', provider.name, provider.displayName, provider.title, provider.description]}
pinned={this.pinnedProviders.includes(provider.name)}
id={provider.name}
pinStateCallback={async (pinned: boolean) => {
@ -178,7 +178,7 @@ export class EnvironmentExplorer extends ViewPlugin {
logos={provider.logos}
classList='EECellStyle'
hideTitle={true}
searchKeywords={['Externals', provider.displayName, provider.title, provider.description]}
searchKeywords={['Externals', provider.name, provider.displayName, provider.title, provider.description]}
pinned={this.pinnedProviders.includes(provider.name)}
id={provider.name}
pinStateCallback={async (pinned: boolean) => {

@ -40,10 +40,9 @@ export const RemixUIGridCell = (props: RemixUIGridCellProps) => {
if (props.tagList) setAnyEnabled(props.tagList.some((key) => filterCon.keyValueMap[key]?.enabled))
else setAnyEnabled(filterCon?.keyValueMap['no tag']?.enabled)
if (!props.tagList || props.tagList.length == 0) setAnyEnabled(true)
setAnyEnabled(
anyEnabled && (props.title.toLowerCase().includes(filterCon.filter) || props.searchKeywords?.some(searchKeyword => filterCon.filter.includes(searchKeyword))))
setAnyEnabled(
anyEnabled && (props.title?.toLowerCase().includes(filterCon.filter?.toLowerCase()) || props.searchKeywords?.map(keyword => keyword.toLowerCase()).some(searchKeyword => searchKeyword.toLowerCase().includes(filterCon.filter))))
}, [filterCon, props.tagList])
/*const listenOnExpand = (key) => {

Loading…
Cancel
Save