-
Notifications
You must be signed in to change notification settings - Fork 17
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
[OP#41487] Replace icons for no connection and add link #90
Conversation
108ebd6
to
23ff01b
Compare
b8e3e19
to
9ba6acf
Compare
exports[`EmptyContent.vue Test content title shows the correct empty message depending on states if the request url is valid 6`] = ` | ||
<div class="empty-content--message"> | ||
<div class="empty-content--message--title"> | ||
invalid state |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
is this the correct message @SwikritiT?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yes, it is. If the state is something other than the specified. If you have any better suggestion I can change the message
integration_openproject/src/components/tab/EmptyContent.vue
Lines 53 to 65 in 54821b5
emptyContentMessage() { | |
if (this.state === 'no-token') { | |
return t('integration_openproject', 'No OpenProject account connected') | |
} else if (this.state === 'connection-error') { | |
return t('integration_openproject', 'Error connecting to OpenProject') | |
} else if (this.state === 'failed-fetching-workpackages') { | |
return t('integration_openproject', 'Could not fetch work packages from OpenProject') | |
} else if (this.state === 'error') { | |
return t('integration_openproject', 'Unexpected Error') | |
} else if (this.state === 'ok') { | |
return t('integration_openproject', 'No workspaces linked yet, search for work package to add!') | |
} | |
return 'invalid state' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
oh yes, it's for the last else clause. 👍 I think we never reach this state. Still, we can leave the check for the error
state and handle everything else as an error state.
if (this.state === 'no-token') {
return t('integration_openproject', 'No OpenProject account connected')
} else if (this.state === 'connection-error') {
return t('integration_openproject', 'Error connecting to OpenProject')
} else if (this.state === 'failed-fetching-workpackages') {
return t('integration_openproject', 'Could not fetch work packages from OpenProject')
} else if (this.state === 'ok') {
return t('integration_openproject', 'No workspaces linked yet, search for work package to add!')
}
return return t('integration_openproject', 'Unexpected Error')
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sounds nice. Did it in the latest commit
Signed-off-by: Swikriti Tripathi <swikriti808@gmail.com>
Signed-off-by: Swikriti Tripathi <swikriti808@gmail.com>
Signed-off-by: Swikriti Tripathi <swikriti808@gmail.com>
Signed-off-by: Swikriti Tripathi <swikriti808@gmail.com>
9ba6acf
to
f1cfbbe
Compare
PHP Code CoverageCoverage after merging change-no-con-svg into master will be
Coverage Report
|
Signed-off-by: Swikriti Tripathi <swikriti808@gmail.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM 👍
OP#41487
https://community.openproject.org/projects/nextcloud-integration/work_packages/41487/activity
Figma links:
https://www.figma.com/file/gtLQfPe09X7XugAH8L7dTy/Nextcloud-Integration?node-id=31%3A6555
https://www.figma.com/file/gtLQfPe09X7XugAH8L7dTy/Nextcloud-Integration?node-id=746%3A31002
The current UI looks like this
Light Mode
Dark Mode
![conOPDark](https://user-images.githubusercontent.com/41103328/159684553-9351fe04-5b1a-4306-9b78-c9956200
Dashboard