-
-
Notifications
You must be signed in to change notification settings - Fork 868
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: organization tags UI (GSoC) (#2175)
* add organization tags UI * corrections * add tag serial number * remove unwanted change * minor changes
- Loading branch information
Showing
19 changed files
with
1,453 additions
and
0 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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,74 @@ | ||
import gql from 'graphql-tag'; | ||
|
||
/** | ||
* GraphQL mutation to create a user tag. | ||
* | ||
* @param name - Name of the tag. | ||
* @param tagColor - Color of the tag. | ||
* @param parentTagId - Id of the parent tag. | ||
* @param organizationId - Organization to which the tag belongs. | ||
*/ | ||
|
||
export const CREATE_USER_TAG = gql` | ||
mutation CreateUserTag( | ||
$name: String! | ||
$tagColor: String | ||
$parentTagId: ID | ||
$organizationId: ID! | ||
) { | ||
createUserTag( | ||
input: { | ||
name: $name | ||
organizationId: $organizationId | ||
parentTagId: $parentTagId | ||
tagColor: $tagColor | ||
} | ||
) { | ||
_id | ||
} | ||
} | ||
`; | ||
|
||
// /** | ||
// * GraphQL mutation to unsssign a user tag from a user. | ||
// * | ||
// * @param tagId - Id the tag. | ||
// * @param userId - Id of the user to be unassigned. | ||
// */ | ||
|
||
// export const UNASSIGN_USER_TAG = gql` | ||
// mutation UnassignUserTag($tagId: ID!, $userId: ID!) { | ||
// unassignUserTag(input: { tagId: $tagId, userId: $userId }) { | ||
// _id | ||
// } | ||
// } | ||
// `; | ||
|
||
// /** | ||
// * GraphQL mutation to update a user tag. | ||
// * | ||
// * @param tagId - Id the tag. | ||
// * @param name - Updated name of the tag. | ||
// */ | ||
|
||
// export const UPDATE_USER_TAG = gql` | ||
// mutation UpdateUserTag($tagId: ID!, $name: String!) { | ||
// updateUserTag(input: { tagId: $tagId, name: $name }) { | ||
// _id | ||
// } | ||
// } | ||
// `; | ||
|
||
/** | ||
* GraphQL mutation to remove a user tag. | ||
* | ||
* @param id - Id of the tag to be removed . | ||
*/ | ||
|
||
export const REMOVE_USER_TAG = gql` | ||
mutation RemoveUserTag($id: ID!) { | ||
removeUserTag(id: $id) { | ||
_id | ||
} | ||
} | ||
`; |
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
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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.