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

Workflow assignment messaging #3590

Open
srallen opened this issue Apr 8, 2021 · 2 comments
Open

Workflow assignment messaging #3590

srallen opened this issue Apr 8, 2021 · 2 comments

Comments

@srallen
Copy link
Contributor

srallen commented Apr 8, 2021

Gravity Spy has a hardcoded message for when a volunteer is assigned a new workflow:

Screen Shot 2021-04-08 at 9 43 47 AM

Right now, this is Gravity Spy specific and is the same message between each 'level'. I'm less certain of the utility to allow projects to customize this message versus us coming up with good generic language and I think specifics on the workflows should rather go into the tutorials and task help. It's possible there may be a good reason I'm not thinking of to allow customization of the message here, though, so I'm opening this issue as as placeholder for this. If so, I'm unsure if we should support a single message (maybe on the project resource?) or a message per workflow.

@camallen
Copy link
Contributor

There are configuration JSON fields on both the Project and the Workflow resources that would suffice for adding a single language string for this use case.

However if the project volunteers require the strings to be presented in translated languages then we will have to add a special field ('promotion_message' perhaps) to an existing resource and ensure that it is set to be a translated field

def self.translatable_attributes
%i(display_name strings)
end

The resources we can support are either

  • Workflow (supports more granular messages as progression through the workflows)
  • Project (supports on generic message across all workflows)

Once we have the new field we can add it to the list of strings to be translated for that resource. Thus this resource & associated translations are fetched to the client when wiring up the classifier and when a user receives a promotion message while classifying we can show the translated 'promotion' message in the UI.

The above assume there will be only 1 (2 max) messages ('promotion') per resource for translation, if there are more then we can support that but it will be a more complex json structure (similar to workflow tasks) and worth revisiting the ideas here.

@srallen
Copy link
Contributor Author

srallen commented May 28, 2021

I'd prefer to avoid the complexity, so I'd like to first have a strong case made if we should allow customization at all before work begins on this piece.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants