Dfx nns install dapps outdated

I think I already reported this months ago, so I was surprised to notice that dfx nns install still spins out ultra outdated versions of the NNS dapp and II. Are there any plans to upgrade those dapps for that command?

Beside all the missing features, I can imagine that the command might be used to prepare Snses submissions, and it should be hard to prepare nice assets with a dapp that doesn’t look like its current version at all.

Screenshots from a fresh install today November 26 2023:



Same date mainnet:



5 Likes

April 2023, I deployed a fresh install with most recent dfx (after having figured out how), it’s still outdated. I guess the deployed app is now close to being 2 years old. There isn’t even the settings page to find the user’s principal.


Same for II btw.

While it’s not 100% up to date, dfx extension install nns --version 0.3.1 will give you a pretty recent one

1 Like

Thanks.

Why would I specify a version, where’s are those documented and why not specifying a version does not install latest?

In dfx version 0.17 and 0.18 the extension should default to version 0.3.1, but I added the explicit version just to be sure. The whole extension versioning is currently really annoying from user and maintainer side, so we’re redesigning how extension versions are treated/upgraded/??? at the moment. I hope it gets better soon…

1 Like

I have use v0.18 and run dfx extension install nns when I took the last screenshots.

To say the least.

Thanks for the explanation.

I am running the NNS dapp locally, but it seems to be an old version. I have some questions related to this:

  1. Does this old version contain the QR scan feature that the live NNS dapp has?
  2. I want to test the QR scan code feature in my own canister.

I am trying to run the frontend locally, but it’s just loading. I have also created a .env file and put in the required canister IDs. If a field wasn’t available, I filled it with same canister id . For the network, should we use “local” or “localnet”?

1 Like

I don’t know which features it already contains. If you only care about the NNS dapp, maybe have look over here: nns-dapp/HACKING.md at main · dfinity/nns-dapp · GitHub
Do you use the latest version of the dfx nns extension?

I want the QR code scanning functionality that is in the live NNS dApp. I am running it locally as per the instructions mentioned in the README, but it is showing the old UI as seen in the images below.

My dfx version is: dfx 0.20.0

First, I installed the extension with:

dfx extension install nns

Then I ran:

dfx nns install

I want the new version of the NNS:

@Severin Any update on this ?

A new release is in the works

1 Like

@Severin

Thanks for the update, Looking forward to the new release.

Hello @Severin

I hope this message finds you well.

We have successfully completed our first milestone and we are nearing completion of milestone 2. The only thing holding us back is the updated NNS version. It is crucial for us to receive the updated version as soon as possible in order to finish our second milestone.

Please take necessary action on this matter.

Thank you.

0.4.1 of dfx extensions was released last week. You can update to it with

dfx extension uninstall nns
dfx extension install nns --version 0.4.1
2 Likes

Hello @Severin

The updated version works fine, but I have some questions. We need the scan functionality to perform transactions on our canister. Can you tell me the best way to achieve this in the NNS app? When I run it, it deploys many other things. Should I use the scanner component in a different app and integrate that for testing?Can you show me the path to easily integrated our canister to test. Our end goal is to integrate it into the NNS dapp. What would be the easiest way to test and integrate my IDL and other things?

Thank you.

@peterparker would probably know better

I’ve read several times @karangoraniya post but, I’ve got absolutely no idea what’s the goal and I do not understand the question.

Okay, let me explain again.

We have our own canister for payments, and we want to integrate our canister ID into the NNS Dapp. This will allow anyone scanning our QR code using NNS to trigger transactions using our canister. How can I add our canister to NNS? I would like to test it more effectively. Could you please show me the file path where I can add our canister, along with my IDL and everything needed for testing?

I am using this repo:

NNS Repo

This will allow anyone scanning our QR code using NNS to trigger transactions using our canister.

Thanks for the explanation. What’s “to trigger transactions using our canister”?

Do you mean transferring ICP from an account in NNS dapp with your canister ID as receiver or something else?