hypersign-protocol / entity-studio-dashboard-service Goto Github PK
View Code? Open in Web Editor NEWBackend service for SSI playground
Home Page: https://api.entity.studio.hypersign.id/api/health
Backend service for SSI playground
Home Page: https://api.entity.studio.hypersign.id/api/health
+ Organization
button if we already clicked on Edit
button in the org card. To recreate: 1. Create an org, 2. click on edit button to edit an org, now close the slider 3. Click on + Organization
button again, you will it has old data.Add Orgnaization
header comes in the slider when clicking on edit button in org card. It should be Edit Organization
Processing...
state. To recreate this issue, click on create button then shut down the backend server forcefully. Then restart the server and reload the page.Transaction Hash
link on schema row, redirecting to wrong url.Create
button to textSave
in slider. Also see button in org slider looks different than button here.Type
should be a select dropdown with values (string, int, float, date) Generate
button text to Save
in slider. Also see button in org slider looks different than button here.by using this API #15
So I have a web tool. And it has a client and a node js backend.
I usually write API testcases and run the whole tests if I change anything. so the server side is no problem.
The problem is testing the client side. What is happening that (since the project has grown big now) I fear to do any changes and if I do, I have to test each and every components like login page, dashboard pages etc. again and again which is getting hectice as the features increases. so is there any way in which I can automate this proces.s.. Like a bot which can open my web tool, fill all details and see those values are correct and then logout of the tool?
I came to know that we can test the studio using selenium or katalon
Pre-requisite: Studio server already has VC in db
Implement an API which Create a URL (which will shown in the studio UI in the credentail table) which user has to click to accept the credentail in his wallet.
const studio-server-base-url = ''
const dbRowID = "6c1231j11221" // record id in DB
const token = await jwt.sign(dbRowID, this.options.jwtSecret, { expiresIn: this.options.jwtExpiryTime }) // create a JWT
let link = `${sutdio-server-base-url}${path-to-issue-cred}?token=${token}`;
// Form the QR data
const QRData = JSON.stringify({
QRType: 'ISSUE_CRED',
url: link // This url user will eventually call from the wallet to fetch vc from studio server
});
This URL we actually send to users. Clicking on this deeplink.html url user will see page where he will see a accept button, clicking on that finally the wallet popups up and url in the QRData will automatically get called.
// Create deeplink UrL.
const deepLinkUrl = encodeURI(`${sutdio-server-base-url}/deeplink.html?deeplink=hypersign:deeplink?url=${QRData}`);
All registerd domain in org should able to verify credential which is at present hardcoded and only http://localhost:1234 is able to verfiy credential
hide the ORG Id text field, it should display only while clicking editing organization like event Id we did in fyre
validation msg should display on keeping the Organisation name
text field blank as organization name should not be empty
validation should display on keeping the Domain
text field blank as the domain should not be empty
validation should be displayed by keeping the Logo URL
field blank as Logo URL should not be empty
validation should be displayed on keeping the Region
blank
Make every text field mandatory with a "*" sign (need to ask having confusion)
validation msg should be displayed on entering URL in the Organisation name
textbox as Invalid Organisation name
validation msg should be displayed on entering URL in the domain
textbox as Invalid Domain
validation msg should be displayed on entering only text, numbers, symbols, and invalid logo link in the Logo URL text box as Invalid Logo URL.
validation msg should be displayed on entering URL in the Region
textbox as Invalid Region
Remove by default set hypersign details in all text boxes because clicking the save button it's creating the new organization.
Edit is not working properly
Add an info icon with information beside every text field like in fyre events
on entering large text in the organization name text field, its org tile is breaking
{
"QRType": "ISSUE_SCHEMA",
"serviceEndpoint": "http://localhost:9000/hs/api/v2/auth",
"schemaId": "ssi/schema/did:hs:z14RaKjdGWLxJ2PtVu9SHkauyN6ZWc9jDksAqYup61rqM;id=8ec0d028-e3a7-424e-9ff8-30f237593196;version=1.0",
"appDid": "did:hs:z7RRHSFGaSYYQQkoCd9CAm5ezYd2tJBuEVPex4Zftba1w",
"appName": "",
"challenge": "",
"provider": "" ,
"data" :""
}
add validation on entering invalid text like URL in the holder did textbox
Schema options are not displaying the dropbox
validation should be displayed on not filling any schema fields
change validation msg- it should be subject did in place of holder did
credential details filled by the user should be according to the format set. like in the name field, details are accepted in the form of a string.in number, the field should accept int type. show validations msg for not entering correct type
+ Organization
button if we already clicked on Edit
button in the org card. To recreate: 1. Create an org, 2. click on edit button to edit an org, now close the slider 3. Click on + Organization
button again, you will it has old data.Add Orgnaization
header comes in the slider when clicking on edit button in org card. It should be Edit Organization
Processing...
state. To recreate this issue, click on create button then shut down the backend server forcefully. Then restart the server and reload the page.Transaction Hash
link on schema row, redirecting to wrong url.Create
button to textSave
in slider. Also see button in org slider looks different than button here.Type
should be a select dropdown with values (string, int, float, date) Generate
button text to Save
in slider. Also see button in org slider looks different than button here.When I pass env var with docker run, it does not reflects.
docker run -p 9000:9000 hypersignprotocol/studio:1.0.0
This runs the server at port :9000. Notice the app name is Hypersign Studio
docker run --env VUE_APP_TITLE='Test App' -p 9000:9000 hypersignprotocol/studio:1.0.0
When you browse 9000, it does not show appname as Test App
and still showing Hypersign Studio
On opening the side bar, see schema page it should shift to right
On opening the side bar, see presentation page it should shift to right
Step 1: swap these two lines https://github.com/hypersign-protocol/studio/blob/064aa2b0c4849965a56ccfe525b07293175e017d/server/src/controllers/pController.ts#L32
Step 2: This should be the same as issuer DID (Manual input) https://github.com/hypersign-protocol/studio/blob/064aa2b0c4849965a56ccfe525b07293175e017d/server/src/controllers/presentationController.ts#L113
Step3: This should be manual input not the same as schema author https://github.com/hypersign-protocol/studio/blob/064aa2b0c4849965a56ccfe525b07293175e017d/server/src/controllers/presentationController.ts#L108
Step 4: Two avoid redundancy remove did while fetching schema here https://github.com/hypersign-protocol/studio/blob/064aa2b0c4849965a56ccfe525b07293175e017d/server/src/controllers/schemaController.ts#L71
Step 5: Add an extra field while creating a schema and while creating a presentation template ({primaryDid})
Schema ->
https://github.com/hypersign-protocol/studio/blob/064aa2b0c4849965a56ccfe525b07293175e017d/server/src/controllers/schemaController.ts#L12
Presentation Template ->
https://github.com/hypersign-protocol/studio/blob/064aa2b0c4849965a56ccfe525b07293175e017d/server/src/controllers/presentationController.ts#L103
also change both models
go to the entity studio schema page,copy the schema URL https://entity.hypersign.id/#/studio/schema
and paste it on another browser loged in with a new mail id
here we will see schema page is displaying without creating any organization
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.