Skip to content

Commit

Permalink
e2e
Browse files Browse the repository at this point in the history
e2e

e2e
  • Loading branch information
LianaHus committed Jul 25, 2024
1 parent 016b120 commit b20c61c
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 1 deletion.
1 change: 1 addition & 0 deletions apps/remix-ide/src/app/plugins/remixGuide.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,7 @@ export class RemixGuidePlugin extends ViewPlugin {
cell.expandViewElement
}
key={cell.title}
id={cell.title}
handleExpand={() => {
this.showVideo = true
this.videoID = cell.expandViewElement.videoID
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -163,6 +163,7 @@ export class TemplatesSelectionPlugin extends ViewPlugin {
plugin={this}
title={item.displayName}
key={item.name}
id={item.name}
searchKeywords={[item.displayName, item.description, template.name]}
tagList={item.tagList}
classList='TSCellStyle'
Expand Down
3 changes: 3 additions & 0 deletions apps/remix-ide/src/app/providers/environment-explorer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,7 @@ export class EnvironmentExplorer extends ViewPlugin {
searchKeywords={['Injected', provider.name, provider.displayName, provider.title, provider.description]}
pinned={this.pinnedProviders.includes(provider.name)}
key={provider.name}
id={provider.name}
pinStateCallback={async (pinned: boolean) => {
if (pinned) {
this.emit('providerPinned', provider.name, provider)
Expand Down Expand Up @@ -145,6 +146,7 @@ export class EnvironmentExplorer extends ViewPlugin {
searchKeywords={['Remix VMs', provider.name, provider.displayName, provider.title, provider.description]}
pinned={this.pinnedProviders.includes(provider.name)}
key={provider.name}
id={provider.name}
pinStateCallback={async (pinned: boolean) => {
if (pinned) {
this.emit('providerPinned', provider.name, provider)
Expand Down Expand Up @@ -178,6 +180,7 @@ export class EnvironmentExplorer extends ViewPlugin {
searchKeywords={['Externals', provider.name, provider.displayName, provider.title, provider.description]}
pinned={this.pinnedProviders.includes(provider.name)}
key={provider.name}
id={provider.name}
pinStateCallback={async (pinned: boolean) => {
if (pinned) {
this.emit('providerPinned', provider.name, provider)
Expand Down
3 changes: 2 additions & 1 deletion libs/remix-ui/grid-view/src/lib/remix-ui-grid-cell.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ interface RemixUIGridCellProps {
children?: ReactNode
expandViewEl?: any
handleExpand?: any
id: string
searchKeywords?: string[]
}

Expand Down Expand Up @@ -97,7 +98,7 @@ export const RemixUIGridCell = (props: RemixUIGridCellProps) => {
{ filterCon.showPin && <button
className={`${pinned ? 'fa-circle-check text-dark' : 'fa-circle text-secondary'}` + ` fa-regular border-0 mb-0 remixui_grid_cell_pin`}
style={{ fontSize: 'large' }}
data-id={`${pinned ? `${props.title}-pinned` : `${props.title}-unpinned`}`}
data-id={`${pinned ? `${props.id}-pinned` : `${props.id}-unpinned`}`}
onClick={async () => {
if (!props.pinStateCallback) setPinned(!pinned)
if (await props.pinStateCallback(!pinned)) setPinned(!pinned)
Expand Down

0 comments on commit b20c61c

Please sign in to comment.