Skip to content
This repository has been archived by the owner on May 1, 2019. It is now read-only.

Comment/Conversation View #80

Open
1 task done
didimitrie opened this issue Nov 19, 2018 · 0 comments
Open
1 task done

Comment/Conversation View #80

didimitrie opened this issue Nov 19, 2018 · 0 comments

Comments

@didimitrie
Copy link
Member

Step 0:

Add comments back in a conversation view of sorts. Ideally this would be separated from the stream view. When adding comments check:

  • If object is selected, add it to that object
  • If no object is selected, have the ability to select which stream to add it to (but default to the topmost one?)

Of course, camera views should be serialised along with everyhting else.

Ref: current comment model

var commentSchema = mongoose.Schema( {
  // ownership
  owner: { type: mongoose.Schema.Types.ObjectId, ref: 'User' },
  // threads
  comments: [ { type: mongoose.Schema.Types.ObjectId, ref: 'Comment' } ],

  // content
  text: { type: String, required: true },

  // parent resource
  resource: { 
    resourceType: { type: String, required: true },
    resourceId: { type: String, required: true }
  },

  // minimal issue-like functionality
  closed: { type: Boolean, default: false },
  assignedTo: [ { type: mongoose.Schema.Types.ObjectId, ref: 'User' } ],
  labels: [ { type: String } ],

  // camera view (can be expanded to hold other scene settings)
  view: { type: Object, default: {} },

  // screenshot
  screenshot: { type: String }

}, { timestamps: true } )

module.exports = mongoose.model( 'Comment', commentSchema )
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

1 participant