Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Templates 2 #5022

Merged
merged 12 commits into from
Jul 18, 2024
Merged

Templates 2 #5022

merged 12 commits into from
Jul 18, 2024

Conversation

yann300
Copy link
Contributor

@yann300 yann300 commented Jul 17, 2024

This PR update the grid view and the env providers view:

  • Update labels.
  • Update UI.
  • Add Icons.
  • Fix search using the payload.

@yann300 yann300 added the ready-to-review PR ready to review label Jul 17, 2024
@yann300 yann300 requested a review from LianaHus July 17, 2024 20:00
Copy link

netlify bot commented Jul 17, 2024

Deploy Preview for remixproject ready!

Name Link
🔨 Latest commit db7e861
🔍 Latest deploy log https://app.netlify.com/sites/remixproject/deploys/66992e0a73d63e00083b4cc8
😎 Deploy Preview https://deploy-preview-5022--remixproject.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

@yann300 yann300 force-pushed the templates_2 branch 2 times, most recently from 661b5ca to f65c0d7 Compare July 18, 2024 12:39
pinned={this.pinnedProviders.includes(provider.name)}
pinStateCallback={async (pinned: boolean) => {
if (pinned) {
this.emit('providerPinned', provider.name, provider)
this.call('notification', 'toast', `"${provider.displayName}" has been added to the Network list of the Deploy & Run Transactions module.`)
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It should be 'added to the Network Environment list of the Deploy & Run Transactions module plugin'

return true
}
const providerName = await this.call('blockchain', 'getProvider')
if (providerName !== provider.name) {
this.emit('providerUnpinned', provider.name, provider)
this.call('notification', 'toast', `"${provider.displayName}" has been removed from the Network list of the Deploy & Run Transactions module.`)
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

here too

pinned={this.pinnedProviders.includes(provider.name)}
pinStateCallback={async (pinned: boolean) => {
if (pinned) {
this.emit('providerPinned', provider.name, provider)
this.call('notification', 'toast', `"${provider.displayName}" has been added to the Network list of the Deploy & Run Transactions module.`)
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

here

return true
}
const providerName = await this.call('blockchain', 'getProvider')
if (providerName !== provider.name) {
this.emit('providerUnpinned', provider.name, provider)
this.call('notification', 'toast', `"${provider.displayName}" has been removed from the Network list of the Deploy & Run Transactions module.`)
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

here

classList='EECellStyle'
pinned={this.pinnedProviders.includes(provider.name)}
pinStateCallback={async (pinned: boolean) => {
if (pinned) {
this.emit('providerPinned', provider.name, provider)
this.call('notification', 'toast', `"${provider.displayName}" has been added to the Network list of the Deploy & Run Transactions module.`)
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

here and everywhere similarly

@@ -129,13 +129,60 @@ export class RunTab extends ViewPlugin {
async onInitDone() {
const udapp = this // eslint-disable-line

const descriptions = {
'vm-cancun': 'Deploy to an in-browser virtual machine which run the cancun fork.',
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

'which run runs'

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Names should be capitalized like Cancun

@@ -129,13 +129,60 @@ export class RunTab extends ViewPlugin {
async onInitDone() {
const udapp = this // eslint-disable-line

const descriptions = {
'vm-cancun': 'Deploy to an in-browser virtual machine which run the cancun fork.',
'vm-shanghai': 'Deploy to an in-browser virtual machine which run the cancun fork.',
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

here and similarly everywhere

'vm-paris': 'Deploy to an in-browser virtual machine which run the paris fork.',
'vm-london': 'Deploy to an in-browser virtual machine which run the london fork.',
'vm-berlin': 'Deploy to an in-browser virtual machine which run the berlin fork.',
'vm-mainnet-fork': 'Deploy to an in-browser virtual machine which fork locally the ethereum mainnet.',
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

forks Ethereum

'vm-custom-fork': 'Deploy to an in-browser virtual machine which fork locally a custom network.',
'walletconnect': 'Deploy using wallet connect.',
'basic-http-provider': 'Deploy to a custom local network.',
'hardhat-provider': 'Deploy to a hardhat development nework.',
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hardhat with capital H, and similarly

const addProvider = async (position, name, displayName, isInjected, isVM, fork = '', dataId = '', title = '') => {
console.log(name)
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

remove log

Copy link
Collaborator

@Aniket-Engg Aniket-Engg left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you make first letter of cancun, paris, berlin etc. capital?

@yann300 yann300 requested a review from Aniket-Engg July 18, 2024 14:38
@yann300 yann300 merged commit 10aa992 into master Jul 18, 2024
32 checks passed
@yann300 yann300 deleted the templates_2 branch July 18, 2024 15:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ready-to-review PR ready to review
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants