-
Notifications
You must be signed in to change notification settings - Fork 66
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
add comment functionality to activity tab #1387
add comment functionality to activity tab #1387
Conversation
Signed-off-by: Stephan Orbaugh <stephan.orbaugh@nextcloud.com> Signed-off-by: Louis Chemineau <louis@chmn.me>
fe2d8b8
to
2db136a
Compare
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.
As the Comments tab need to be displayed if the activity app is disabled, the current approach leads to a lot of duplicate code.
A better approach would be to create an API so that the Comments app can add content to the actvity stream.
@@ -0,0 +1,31 @@ | |||
<!-- TODO: Move to vue components --> |
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.
TODO
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.
Licence is missing
import moment from '@nextcloud/moment' | ||
|
||
export default { | ||
name: 'Moment', |
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.
Name is too generic
//const newComment = await NewComment(this.commentsType, this.ressourceId, message) | ||
const newComment = await NewComment('files', 3, message) | ||
// this.logger.debug('New comment posted', { commentsType: this.commentsType, ressourceId: this.ressourceId, newComment }) |
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.
Debug ?
src/sidebar.js
Outdated
// only load if needed | ||
if (ActivityTabView === null) { | ||
const { default: ActivityTab } = await import('./views/ActivityTab.vue') | ||
ActivityTabView = ActivityTabView ?? Vue.extend(ActivityTab) | ||
} | ||
// destroy previous instance if available | ||
const { default: ActivityTab } = await import(/* webpackPreload: true */ './views/ActivityTab.vue') | ||
ActivityTabView = ActivityTabView ?? Vue.extend(ActivityTab) |
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.
Won't this revert this optimisation?
#1363
Hello there, We hope that the review process is going smooth and is helpful for you. We want to ensure your pull request is reviewed to your satisfaction. If you have a moment, our community management team would very much appreciate your feedback on your experience with this PR review process. Your feedback is valuable to us as we continuously strive to improve our community developer experience. Please take a moment to complete our short survey by clicking on the following link: https://cloud.nextcloud.com/apps/forms/s/i9Ago4EQRZ7TWxjfmeEpPkf6 Thank you for contributing to Nextcloud and we hope to hear from you soon! |
Closing in favor of #1416 |
Issue: https://github.com/nextcloud-gmbh/server/issues/521
Mockups: nextcloud/server#658