Skip to content

Commit

Permalink
Add a nice UI for the dummy Relying Party (#24)
Browse files Browse the repository at this point in the history
# Motivation

Main motivation is to deploy the dummy relying party to mainnet so that
developers can get a grasp of the feature fast.

The idea is to link the RP in the dev docs for discoverability.

# Changes

* Add mainnet network to dfx.json.
* Bumped the II version used.
* Install tailwind to dummy-relying-party and use it in index.html to
build a nice UI.
* Change the dom manipulation of the JS file to be adapted to the new UI
and offer a nice UX.

# Tests

Relying party can be test here:
https://l7rua-raaaa-aaaap-ahh6a-cai.icp0.io/

# Todos

- [ ] Add entry to changelog (if necessary). Not necessary. No new
functionality is added to the SDK.
  • Loading branch information
lmuntaner authored Jun 7, 2024
1 parent a90af9c commit fe35907
Show file tree
Hide file tree
Showing 9 changed files with 2,012 additions and 219 deletions.
15 changes: 13 additions & 2 deletions dfx.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,19 @@
},
"internet_identity": {
"type": "custom",
"wasm": "https://github.com/dfinity/internet-identity/releases/download/release-2024-04-05/internet_identity_dev.wasm.gz",
"candid": "https://github.com/dfinity/internet-identity/releases/download/release-2024-04-05/internet_identity.did"
"wasm": "https://github.com/dfinity/internet-identity/releases/download/release-2024-06-07/internet_identity_dev.wasm.gz",
"candid": "https://github.com/dfinity/internet-identity/releases/download/release-2024-06-07/internet_identity.did",
"remote": {
"id": {
"ic": "rdmx6-jaaaa-aaaaa-aaadq-cai"
}
}
}
},
"networks": {
"mainnet": {
"providers": ["https://icp0.io"],
"type": "persistent"
}
}
}
4 changes: 2 additions & 2 deletions dummy-e2e/src/vc-flow.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ test("user gets credential from dummy issuer within the dummy relying party", as

await page.getByTestId("credential-type-input").fill("Test");

await expect(await page.getByTestId("vc-result").textContent()).toBe("-");
await expect(await page.getByTestId("vc-result").isVisible()).toBe(false);

// Request credentials
const iiPagePromise = context.waitForEvent("page");
Expand All @@ -40,5 +40,5 @@ test("user gets credential from dummy issuer within the dummy relying party", as
await iiPage.waitForEvent("close");
await expect(iiPage.isClosed()).toBe(true);

await expect(await page.getByTestId("vc-result").textContent()).not.toBe("-");
await expect(await page.getByTestId("vc-result").isVisible()).toBe(true);
});
408 changes: 314 additions & 94 deletions dummy-relying-party/frontend/index.html

Large diffs are not rendered by default.

Loading

0 comments on commit fe35907

Please sign in to comment.