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

add comment functionality to activity tab #1387

Closed

Conversation

sorbaugh
Copy link

@sorbaugh sorbaugh commented Oct 30, 2023

Signed-off-by: Stephan Orbaugh <stephan.orbaugh@nextcloud.com>
Signed-off-by: Louis Chemineau <louis@chmn.me>
@artonge artonge force-pushed the feature/sorbaugh/combine-comments-and-activity-tabs branch from fe2d8b8 to 2db136a Compare November 2, 2023 14:37
Copy link
Collaborator

@artonge artonge left a 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 -->
Copy link
Collaborator

Choose a reason for hiding this comment

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

TODO

Copy link
Collaborator

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',
Copy link
Collaborator

Choose a reason for hiding this comment

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

Name is too generic

Comment on lines +102 to +104
//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 })
Copy link
Collaborator

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
Comment on lines 44 to 45
// 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)
Copy link
Collaborator

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

Copy link
Contributor

Hello there,
Thank you so much for taking the time and effort to create a pull request to our Nextcloud project.

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!

@susnux
Copy link
Contributor

susnux commented Nov 15, 2023

Closing in favor of #1416

@susnux susnux closed this Nov 15, 2023
@susnux susnux deleted the feature/sorbaugh/combine-comments-and-activity-tabs branch November 15, 2023 12:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants