-
Notifications
You must be signed in to change notification settings - Fork 287
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adding support for assigning people in tasks and much more (#188)
* people-picker in task component basic functionality. TODO: filter people * [mgt-task] fixing styles of picker * [mgt-tasks] default state if nobody is assigned * fixing errors * [mgt-tasks] adding deletion or removing selected people * [Graph] adding assign people promise to planner * always show assigned to me * renamed drawers and dressers * filtering of tasks when target-id is set and clean up of mgt-tasks * added tasks templates and fied styles and utils * [mgt-tasks] updating method for handling people picker hiding * updating picker styles * [mgt-task] fixing null selected people case * [mgt-tasks] updating styles for better scss scaffolding and new logic for handling render of people-picker * task source documentation * [mgt-tasks] assings to default if no people are provided * [mgt-tasks] picker on new task issue * adding property to mgt-people for user id selectionfor use in tasks * minor layout fix for new task * [mgt-people] adding personCardInteraction property to people * restoring index.html * [mgt-people] adding 'no-people' template * [mgt-tasks] updating task and picker to inherit people from each other * [PersonCardInteraction] refactoring personcard interactions for specific definitions of hover and click for task components * removing and updating necessary imports * [mgt-people] refactor peopleid promise into promise.all * [mgt-tasks mgt-people] removed default html for no-people and moved template to task. updated picker hiding method * [mgt-tasks] adding taskClick custom event * fixed default person card on people * Added setter and getter for property isNewTaskVisible * [Graph.ts] changing order of assignPeopleToTask parameters * [mgt-tasks] fixing mgt-people styles * [mgt-tasks] disabled person-card inside of newTask people * [mgt-tasks] adding isEqual if picker chosen people aren't different not to update * assingPeopletoTask rather than person * rename nopeople template and click handler * Fix for images in people and people-picker not updating when people change * fix for person card in tasks * [mgt-tasks] refactor show and hid picker, removing self assigned task * [mgt-tasks] refactor peopleObj * [mgt-tasks] fixing typing in assign people and sort * [mgt-tasks] re-work of taskClick event * [mgt-tasks] allowing click on people to save and hide people-picker * update taskClick event with raw task results, and minor fixes
- Loading branch information
Showing
15 changed files
with
1,267 additions
and
959 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
/** | ||
* ------------------------------------------------------------------------------------------- | ||
* Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. | ||
* See License in the project root for license information. | ||
* ------------------------------------------------------------------------------------------- | ||
*/ | ||
|
||
/** | ||
* Defines how a person card is shown when a user interacts with | ||
* a person component | ||
* | ||
* @export | ||
* @enum {number} | ||
*/ | ||
export enum PersonCardInteraction { | ||
/** | ||
* Don't show person card | ||
*/ | ||
none, | ||
|
||
/** | ||
* Show person card on hover | ||
*/ | ||
hover, | ||
|
||
/** | ||
* Show person card on click | ||
*/ | ||
click | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.