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

"assign to me" feature #544

Merged
merged 3 commits into from
Jul 25, 2018
Merged

"assign to me" feature #544

merged 3 commits into from
Jul 25, 2018

Conversation

philippe-levan
Copy link
Collaborator

Hi,

I suggest to add an "assign to me" feature on the contextual menu of each card.
Here is a PR.

Warnings :

  • I'm completely noob in angular. Is is possible to read this PR carefully ?
  • I just add a translation for french. I don't know how you manage translations.

Best regards,
Philippe

PS : here's a screnshot.
image

@@ -200,6 +200,27 @@ app.controller('BoardController', function ($rootScope, $scope, $stateParams, St
CardService.archive(card);
StackService.removeCard(card);
};
$scope.isCurrentUserAssigned = function (card) {
Copy link
Member

Choose a reason for hiding this comment

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

Please use tabs instead of spaces.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

fixed by 02c1807f622e81212a97843779a90ed9641e9a7c

l10n/fr.js Outdated
@@ -96,6 +96,8 @@ OC.L10N.register(
"Shared boards" : "Tableaux partagés",
"View more" : "Voir plus",
"Move board to archive" : "Déplacer le tableau vers l'archive",
"Create a new board" : "Créer un nouveau tableau"
"Create a new board" : "Créer un nouveau tableau",
Copy link
Member

Choose a reason for hiding this comment

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

Please remove the changes to the translation files, those are added by transifex.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

fixed in 02926d93cb1864e16c4c6d628af4afdadb17bf5b

.then(
function() {StackService.updateCard(card);}
);
$('.popovermenu').addClass('hidden');
Copy link
Member

Choose a reason for hiding this comment

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

We should avoid using jquery in that way. Maybe you can have a look why the popovermenu is not closed in the directive that is opening it (see js/directive/appPopoverMenuUtils.js)

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Hi,

I don't manage to make it work with appPopoverMenuUtils.js.
I believe the click event is stopped by several stopPropagation at different levels.

I don't manage to make it work without entering deeply in the application code. I believe I don't have the necessary JS skills to make it work without breaking all the app :-)

Can you help me debug that point ?

Best regards,
Philippe

Copy link
Member

@juliusknorr juliusknorr left a comment

Choose a reason for hiding this comment

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

Thanks for your pull request. I really like the idea. Can you have a look at the inline comments?

Please also make sure to add a sign-off message to your commits, as described here: https://github.com/nextcloud/deck#sign-your-work

codacy fix

codacy fix #2

revert translation files

coding style : spaces to tabs

Signed-off-by: Philippe Le Van <philippe.levan@kibatic.com>
@philippe-levan
Copy link
Collaborator Author

I squashed all the commits into a single one with my signed-off-by

@philippe-levan
Copy link
Collaborator Author

Hi @juliushaertl ,

I made the modifications I'm able to do right now. I'm blocked with your review on JQuery (see #544 (comment)).

Best regards,
Philippe

@juliusknorr
Copy link
Member

I made the modifications I'm able to do right now. I'm blocked with your review on JQuery (see #544 (comment)).

Ok, I'd be fine to keep it like this for now, I can have a look into that afterwards. Mind to just add a TODO comment there?

@philippe-levan
Copy link
Collaborator Author

I just added the TODO comments

@juliusknorr
Copy link
Member

Failing CI is fine, since it is about the missing signoff message on the merge commit and on a comment only commit.

@juliusknorr juliusknorr merged commit a131e46 into nextcloud:master Jul 25, 2018
@juliusknorr
Copy link
Member

Thank you very much for your great contribution @philippe-levan If you are interested in getting involved further, be sure to checkout the list of good first issues.

@philippe-levan
Copy link
Collaborator Author

Thanks for your merge (and sorry for the signoff message, I'm not used to add that :-) )
I will look at good first issues during my vacations :-)

Best regards and danke schön,
Philippe

@juliusknorr juliusknorr mentioned this pull request Oct 8, 2018
33 tasks
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.

2 participants