PursuanceProject / pursuance

Pursuance: end-to-end encrypted task management optimized for large numbers of volunteers. We are building a vast and formidable ecosystem of opposition to institutionalized injustice.
https://pursuanceproject.org/
Other
134 stars 15 forks source link

Allow users to edit assignee. #144

Closed Moe-Shoman closed 6 years ago

Moe-Shoman commented 6 years ago

Closes #126. Create Assigner Component that allows user to assign or reassign a task. Style task icons and adjust spacing.

elimisteve commented 6 years ago

@Moe-Shoman The TaskHierarchy now looks dope as fuck!

elimisteve commented 6 years ago

Couple more tweaks, please:

  1. When editing the assignee, please add the FaUserTimes icon to the right of the AssignerInput that can be used to unassign a task

  2. When user hovers over an Assigner button whose text begins with PURSUANCE_DISPLAY_PREFIX/with the task assigned to another pursuance, display full name in tooltip

    • Even if the full pursuance name isn't super long, that's fine; let's show the full name on hover anyway, but we don't need to get super fancy and detect how long the name is
      • ...or we could display the full name on hover if pursuance.name.length > 20 or something like that
elimisteve commented 6 years ago

@Moe-Shoman Please pull https://github.com/PursuanceProject/pursuance/tree/mo-edit-assignee into your branch by running this from your edit-assignee branch:

git pull git@github.com:PursuanceProject/pursuance.git mo-edit-assignee
elimisteve commented 6 years ago

@Moe-Shoman The core logic looks great, except isFromCurrentPursuance needs to be true when task.pursuance_id == currentPursuanceId, and I don't see how to do that from within AssignerInput.js without subscribing to tasks.

Thoughts?