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

Merge to preprod #565

Merged
merged 59 commits into from
May 4, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
59 commits
Select commit Hold shift + click to select a range
9bfb0ac
Merge pull request #12 from ProxeusApp/preprod
tafonina Jun 9, 2023
9d3d6a2
fix web3.fromAscii to web3.utils.asciiToHex method in document floe
Jun 13, 2023
029ab3e
Merge pull request #14 from sprotest/feature/fix-web3-method-fromAscii
tafonina Jun 13, 2023
028563a
replace web3 to this.wallet.proxeusFS.web3 as metamask no longer inje…
Jun 13, 2023
b069463
Merge pull request #15 from sprotest/feature/fix-web3-method-fromAscii
tafonina Jun 13, 2023
a5e9d02
Merge pull request #16 from ProxeusApp/preprod
tafonina Oct 19, 2023
26ef319
remove outdated methods of old smart contract
slavas490 Oct 24, 2023
6b2c7fc
add public urls in case user doesnt have metamask
Oct 24, 2023
7bff03b
Merge pull request #18 from sprotest/feature/remove-old-smartcontract…
slavas490 Oct 24, 2023
614e5a9
Merge branch 'develop' into feature/verify-doc
tafonina Oct 27, 2023
3710bb3
Merge pull request #19 from sprotest/feature/verify-doc
tafonina Oct 27, 2023
18b6f1c
fix js frontend typos
slavas490 Nov 1, 2023
29e1324
use public url only if user doesnt have metamask installed
Nov 2, 2023
be08fea
Merge branch 'feature/verify-doc' of github.com:sprotest/proxeus-core…
Nov 2, 2023
e164676
use public url only if user doesnt have metamask installed
Nov 2, 2023
d700aa2
Merge branch 'develop' into feature/verify-doc
tafonina Nov 2, 2023
88dd2fd
Merge pull request #20 from sprotest/feature/verify-doc
tafonina Nov 2, 2023
f3ecefe
add wrong metamask network selected issue handler
slavas490 Nov 2, 2023
4a98f86
fix user validation network screen
slavas490 Nov 2, 2023
1d8af13
remove unnecessary html code from VerificationFileEntry component
slavas490 Nov 2, 2023
e11d139
fix invalid character, updates in BN lib
Nov 3, 2023
b8056f0
fix invalid character, updates in BN lib
Nov 3, 2023
e1ac271
fix invalid character, updates in BN lib, revert to string and number…
Nov 3, 2023
11f7378
Merge pull request #21 from sprotest/feature/fix-invalid-charachter
tafonina Nov 3, 2023
458c0c1
remove delete buttons for form inputs
slavas490 Nov 13, 2023
cc08ea4
remove skipValidateFor date entry
slavas490 Nov 14, 2023
6065564
Merge pull request #22 from sprotest/feature/delete_property
slavas490 Nov 14, 2023
0a4489f
fix frontend error message for file not found
slavas490 Nov 16, 2023
968c255
Merge pull request #23 from sprotest/fix/file-validation
tafonina Nov 17, 2023
a2db174
update digitalocean deployment script
slavas490 Nov 22, 2023
c8fec16
Merge pull request #24 from sprotest/feature/droplet-support
tafonina Nov 23, 2023
4fafb6f
Merge branch 'preprod' into develop
tafonina Nov 30, 2023
ad9ed28
fix document name max length at 80 symbols
slavas490 Dec 7, 2023
e8dcae7
fix signup with metamask
slavas490 Dec 11, 2023
54631b7
fix restore-demo.sh file
slavas490 Dec 11, 2023
f9dac47
WIP: initial commit
slavas490 Jan 16, 2024
c2744dd
update baseApp.js
slavas490 Jan 17, 2024
9e8a9e1
Merge pull request #25 from sprotest/feature/dynamic-config
slavas490 Jan 17, 2024
45aac19
Revert "fix restore-demo.sh file"
slavas490 Jan 31, 2024
d36bc1b
revert dynamic-config
slavas490 Jan 31, 2024
02e2562
fix e2e test cases
slavas490 Jan 31, 2024
b7eaeca
remove waitforproxeus Makefile commang
slavas490 Feb 2, 2024
d23f44b
Merge pull request #26 from sprotest/fix/e2e
slavas490 Feb 2, 2024
763c2ae
update i18n link to handbook
slavas490 Feb 26, 2024
14dc9d2
add redirect for bookmarked links
slavas490 Feb 26, 2024
08e7325
fix redirect for bookmarked links
slavas490 Feb 26, 2024
9da3df6
fix redirect for bookmarked links
slavas490 Feb 26, 2024
5893ef1
add code formatting
slavas490 Mar 7, 2024
f9bc230
add placeholder node
slavas490 Mar 19, 2024
eff6928
change placeholder node color
slavas490 Mar 29, 2024
12d61f0
Merge pull request #28 from sprotest/feature/placeholder-node
slavas490 Mar 29, 2024
99d20ad
Merge branch 'preprod' into develop
loleg Apr 4, 2024
2a8c7ff
fix document issuing flow handler
slavas490 Apr 18, 2024
11c3933
add auto select default values
slavas490 Apr 18, 2024
afc15b0
fix code formatting
slavas490 Apr 24, 2024
318a189
fix e2e tests
slavas490 Apr 29, 2024
7640bd9
add missing icons
slavas490 Apr 29, 2024
0796772
add missing icons
slavas490 Apr 29, 2024
3a53ed6
Merge branch 'preprod' into develop
slavas490 May 3, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,7 @@ stopproxeus=pkill proxeus
startds=curl -s http://localhost:2115 > /dev/null || ( PROXEUS_DATA_DIR=$(1) docker-compose up -d document-service && touch $(1)/ds-started )
startnodes=curl -s http://localhost:8011 > /dev/null || (PROXEUS_PLATFORM_DOMAIN=http://$(DOCKER_GATEWAY):1323 NODE_CRYPTO_RATES_URL=http://localhost:8011 REGISTER_RETRY_INTERVAL=1 docker-compose -f docker-compose.yml -f docker-compose-extra.override.yml up -d node-crypto-forex-rates && touch $(1)/nodes-started )
startmongo=nc -z localhost 27017 2> /dev/null || (docker run -d -p 27017:27017 -p 27018:27018 -p 27019:27019 proxeus/mongo-dev-cluster && sleep 10 && touch $(1)/mongo-started)
waitforproxeus=echo "Waiting for Proxeus to start" ; curl --head -X GET --retry 120 --retry-connrefused --retry-delay 1 --silent -o /dev/null http://localhost:1323 && echo "Proxeus started" || echo "Unable to start Proxeus"

ifeq ($(coverage),true)
COVERAGE_OPTS=-coverprofile artifacts/[email protected] -coverpkg="$(coverpkg)"
Expand Down Expand Up @@ -197,6 +198,7 @@ test-ui: server ui
$(call startds,$(testdir))
$(call startnodes,$(testdir))
$(call startproxeus,$(testdir))
$(call waitforproxeus,$(testdir))
$(MAKE) -C test/e2e test; ret=$$?; \
$(stopproxeus); \
[ -e $(testdir)/ds-started ] && docker-compose down; \
Expand Down
45 changes: 25 additions & 20 deletions test/e2e/cypress/integration/1_user.js
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,10 @@ describe(`User signup & login at ${url}`, () => {

context('admin signup page', () => {
before(() => {
cy.visit({ url: `${url}/register`, failOnStatusCode: false })
cy.visit({
url: `${url}/register`,
failOnStatusCode: false
})
})

it('should have a mail input', () => {
Expand All @@ -60,14 +63,13 @@ describe(`User signup & login at ${url}`, () => {
cy.wait(2000)
cy.server()
cy.route({
method: 'POST',
url: '/api/register',
onResponse: (xhr) => {
signupResponse = xhr.response.headers['x-test-token'];
console.log(xhr.response);
},
method: 'POST',
url: '/api/register',
onResponse: (xhr) => {
signupResponse = xhr.response.headers['x-test-token'];
console.log(xhr.response);
},
).as('sign-admin')
}, ).as('sign-admin')

cy.get('#inputEmail').type(`${adminEmailAddress}{enter}`)
cy.get('#frontend-app').should('contain', 'Email sent')
Expand All @@ -86,19 +88,21 @@ describe(`User signup & login at ${url}`, () => {

context('user signup page', () => {
before(() => {
cy.visit({ url: `${url}/register`, failOnStatusCode: false })
cy.visit({
url: `${url}/register`,
failOnStatusCode: false
})
})

it('should sign up user', () => {
cy.server()
cy.route({
method: 'POST',
url: '/api/register',
onResponse: (xhr) => {
signupResponse = xhr.response.headers['x-test-token']
},
method: 'POST',
url: '/api/register',
onResponse: (xhr) => {
signupResponse = xhr.response.headers['x-test-token']
},
)
}, )

cy.get('#inputEmail').type(`${emailAddress}{enter}`)
cy.get('#frontend-app').should('contain', 'Email sent')
Expand All @@ -125,6 +129,7 @@ describe(`User signup & login at ${url}`, () => {
body: {
password: password,
},
timeout: 60000
})
})
})
Expand All @@ -138,8 +143,8 @@ describe(`User signup & login at ${url}`, () => {
login(emailAddress, 'wrong-password')

cy.get('.text-danger').
should('contain',
'You have entered an invalid username or password')
should('contain',
'You have entered an invalid username or password')
})

it('should login successfully', () => {
Expand Down Expand Up @@ -177,16 +182,16 @@ describe(`User signup & login at ${url}`, () => {

it('should remove account and logout when clicking again', () => {
cy.get('.btn-danger').click()
cy.url().should('eq', `${url}/login?redirect=%2Fadmin%2Fworkflow`)
cy.url().should('include', `${url}/login`)
})
})
})

})

function login (email, password) {
function login(email, password) {
cy.get('#inputEmail').clear().type(email)
cy.get('#inputPassword').clear().type(password)

cy.get('.btn-primary').eq(0).click()
}
}
2 changes: 1 addition & 1 deletion ui/core/src/views/Templates.vue
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ export default {
},
data () {
return {
iconFa: 'mdi mdi-file-xml',
iconFa: 'mdi mdi-code-block-tags',
deleteTarget: null,
deleteFunc: () => {},
deleteDialogShowFunc: () => {}
Expand Down
27 changes: 13 additions & 14 deletions ui/core/src/views/Workflow.vue
Original file line number Diff line number Diff line change
Expand Up @@ -446,7 +446,7 @@ export default {
item.icon = 'view_quilt'
}
if (item.type === 'template') {
item.iconFa = 'mdi mdi-file-xml'
item.iconFa = 'mdi mdi-code-block-tags'
}
item.error = response.data[key].Error
elements.push(item)
Expand Down Expand Up @@ -1133,7 +1133,7 @@ function condition(){
// enable inertial throwing
inertia: false,
onstart: function (event) {
if (event.interaction.downEvent.button === 2) {
if (event?.interaction?.downEvent?.button === 2) {
Copy link
Contributor

Choose a reason for hiding this comment

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

Is there some problem with this event?

Copy link
Contributor

Choose a reason for hiding this comment

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

Slava says the specs for the third party library we use for drag-and-drop (Interact.js) was changed some time ago, and we should ideally rewrite this piece of code. E.g. start and stop not onstart and onstop

return false
}
_.dragActive = true
Expand Down Expand Up @@ -1181,17 +1181,16 @@ function condition(){
_.dragCompPosition.left = (_.bcr.left) - _.dim.ml
},
onmove: function (event, a, b, c, d) {
if (event.interaction.downEvent.button === 2) {
if (event?.interaction?.downEvent?.button === 2) {
return false
}
_.mousePos.y = event.pageY
_.mousePos.x = event.pageX
_.tl.x += event.dx
_.tl.y += event.dy
_.tl.y = _.mousePos.y - _.dragCompPosition.top - _.dim.handleY
_.tl.x = _.mousePos.x - _.dragCompPosition.left - _.dim.handleX
_.$dragComp[0].style.webkitTransform = _.$dragComp[0].style.transform = 'translate(' + _.tl.x + 'px, ' +
_.tl.y + 'px)'
const translatePos = 'translate(' + _.tl.x + 'px, ' + _.tl.y + 'px)'
_.$dragComp[0].style.webkitTransform = translatePos
_.$dragComp[0].setAttribute('style', 'transform: ' + translatePos)
Copy link
Contributor

Choose a reason for hiding this comment

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

Looks like you're improving the way nodes are being moved. Please document the change in the Pull Request.

Copy link
Contributor

Choose a reason for hiding this comment

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

The original code prevents us from moving the nodes. I approve Slava's code with the disclaimer above.

},
onend: function (e, a, b, c, d) {
_.wasInside = false
Expand Down Expand Up @@ -1292,7 +1291,7 @@ function condition(){
user: 'fcn-usr node-icon mdi mdi-account',
form: 'fcn-form node-icon mdi mdi-view-quilt',
workflow: 'fcn-wflow node-icon mdi mdi-source-branch',
template: 'fcn-tmpl node-icon mdi mdi-file-xml'
template: 'fcn-tmpl node-icon mdi mdi-code-block-tags'
},
// d={name:"name", detail:"detail", kind:"condition|user|form|workflow|template"};
_createFinderItem: function (d) {
Expand Down Expand Up @@ -1569,7 +1568,7 @@ function condition(){
},
icon: {
face: 'Material Design Icons',
code: '\uf48a',
code: '󰒊',
Copy link
Contributor

Choose a reason for hiding this comment

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

It looks like you're using the Unicode character here instead of the code-string. Why?

Copy link
Contributor

Choose a reason for hiding this comment

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

@slavas490 says he tried to use the hexadecimal string, but it did not work. There seems to be a problem with an unsupported library.

color: '#5353c0'
},
events: {
Expand Down Expand Up @@ -1622,7 +1621,7 @@ function condition(){
},
icon: {
face: 'Material Design Icons',
code: '\uf48a',
code: '󰒊',
color: '#5150c0'
},
events: {
Expand Down Expand Up @@ -1675,7 +1674,7 @@ function condition(){
},
icon: {
face: 'Material Design Icons',
code: '\uf339',
code: '󰌹',
color: '#5150c0'
},
events: {
Expand Down Expand Up @@ -1710,7 +1709,7 @@ function condition(){
},
icon: {
face: 'Material Design Icons',
code: '\uf70B',
code: '󰜌',
color: '#f0a30a'
},
events: {
Expand Down Expand Up @@ -1771,7 +1770,7 @@ function condition(){
},
icon: {
face: 'Material Design Icons',
code: '\uf62C',
code: '󰘬',
color: '#e40070'
},
events: {
Expand Down Expand Up @@ -1834,7 +1833,7 @@ function condition(){
},
icon: {
face: 'Material Design Icons',
code: '\uf22E',
code: '󱲆',
color: '#ff30ec'
},
events: {
Expand Down
2 changes: 1 addition & 1 deletion ui/core/src/views/appDependentComponents/Sidebar.vue
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
<li class="nav-item" v-if="app.userIsCreatorOrHigher()">
<router-link :to="{name:'Templates'}" class="nav-link" data-toggle="tooltip" data-placement="right"
data-boundary="window" :title="$t('Menu Templates','Templates')"><span
class="material-icons mdi mdi-file-xml"></span><span
class="material-icons mdi mdi-code-block-tags"></span><span
class="nav-link-title">{{$t('Menu Templates','Templates')}}</span>
</router-link>
</li>
Expand Down
2 changes: 1 addition & 1 deletion ui/core/src/views/appDependentComponents/SidebarUser.vue
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
<router-link :to="{name:'DocumentVerification'}" class="nav-link" data-toggle="tooltip"
data-placement="right"
data-boundary="window" :title="$t('Menu Verification','Verification')"><span
class="material-icons mdi mdi-verified"></span><span
class="material-icons mdi mdi-shield-check"></span><span
class="nav-link-title">{{$t('Menu Verification','Verification')}}</span>
</router-link>
</li>
Expand Down