-
Notifications
You must be signed in to change notification settings - Fork 7
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
Disabling edits on Document elements #1220
Comments
The model has the foundation of this feature at the https://github.com/PathwayCommons/factoid/blob/unstable/src/model/syncher.js#L814-L828 It would suffice to add a |
Another consideration is the editor view if you go back to the edit link. If it's locked, then some UI feedback would be useful. |
Since there is more logic around status changes, need to cleanup: #1223 |
Definition of what "disabled editing" encompasses:
|
@maxkfranz I wonder if it's better fit to change the Document model |
Currently We could change |
Right now, if an element is locked, can't (obviously) set fields like |
Notes re. locking, if needed in future: Syncher:
Element:
Document:
|
Decision for now: The doc has an https://github.com/PathwayCommons/factoid/blob/unstable/src/model/document/document.js#L149 Currently, this is based on if you have the secret/password to edit the doc (i.e. you're the author who was sent the edit link). Let's add in a condition so if the doc is submitted, then it can only go to the explore view. editable(){
return this.syncher.hasCorrectSecret() && this.submitted();
} Open questions: (1) Would this glitch out the editor once you hit submit as an author? Maybe it's fine as-is. But we need to test. (2) Should we just use a new flag so that it's more fine-grained, more controllable/changeable in future? |
Related to #1197 |
Description
Q: What is the name of the feature?
A: Disabling edits on Document elements
Q: What does this feature enable the user to do?
A: Provide for a stable representation of the elements in a Document
Q: What information must the user provide to use the feature?
A: Author confirmation via Document submission
Q: What are the applicable constraints, e.g. compatibility or performance?
A: Edge cases and considerations:
Q: How does this feature affect each class of user (persona)?
A:
Specification
Mockup
Status:
initiated
Showing warning message about submitting. This would be a problematic record (not public).
Status:
submitted
Details
// TODO - Frankly, most of the information in the submission popup (tweet, explore) is in the Explorer view anyways.
The text was updated successfully, but these errors were encountered: