Added ability to add people to tags when viewing the tag details page #2875
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Contributor Agreement
By contributing your code, you agree to license your contribution under the Rock Community License Agreement.
Context
What is the problem you encountered that lead to you creating this pull request?
Inability to add people directly to a tag without going to their profile page. See #556.
Goal
What will this pull request achieve and how will this fix the problem?
Grant ability to do so.
Strategy
How have you implemented your solution?
When viewing the members of a tag, if the tag entity type is a Person then the Add button becomes available in the action bar. Upon clicking a modal dialog opens with the person picker expanded by default and ready to type in a person's name. You can then either Save and it will close the modal or Save And Add and it will add the person and then re-open the drop down for typing another name.
Tests
If your code is a new method or function (that doesn't need a mock database or SqlServerTypes library) and can be Xunit tested see example be sure your pull request includes the corresponding unit tests in the Rock.Tests project. In all cases you MUST test your code before submitting a pull request.
Possible Implications
What could this change potentially impact? Are there any security considerations? Where could this potentially affect backwards compatibility?
Screenshots
Provide us some screenshots if your pull request either alters existing UI or provides new UI. Arrows and labels are helpful.
Documentation
If your change effects the UI or needs to be documented in one of the existing user guides, please provide the brief write-up here:
Migrations
Should your pull request require a migration, please exclude the migration from the Rock.Migration project, but submit it in your pull request. Please add a note to your pull request that provides a heads up that a migration file is present.