Questions #108
Labels
enhancement
New feature or request
member-avatar
MyLife-provided Core Member Intelligence
required
functionality required for primary pre-alpha release to family and friends
system-avatar
MyLife Core Intelligence
Question Objects/Processes
question.json
: when creating question objectscope
: oneOf ["universal", "global", "public", "private", ] (listed in terms of ubiquity, see notes)purpose
:$def/question_response
: responses need to be archived independently unfortunately, but would be stored under the members id, as they are affiliated with it; don't anticipate managing a separate class yetclass-extenders.mjs
server.js
MyLifeMemberSession.getQuestionsUniversal()
: upon session creation or member login version ofinit()
:MyLifeMemberSession.questions
foruniversal
questionstrue
:ctx.state.universalQuestions
array[0]
false
: voidsession.js
init()
getQuestionsUniversal()
: returns {array} | queries Maht for universal questionsfunctions.js
,routes.mjs
: provide access points for displaying questions; note that all of the scopes presume visitor except for private, which indicates they will be operating on their affiliate questionsgetQuestions()
: getsall
question-types (up to max) that user may engage with that they themselves are not parentscope
desc [currently just based on index]getQuestionsUniversal()
: gets universal questionsgetQuestionsGlobal()
: gets global questions [member-only]getQuestionsRelations(_type='known')
: start with full list, but can winnow down either on front-end or withindex.html
, 'members.html', 'sidebar-universal-questions.html'core.mjs
Question Scopes:
This system reflects MyLife's commitment to digital privacy and personalized experience, allowing members to choose how their stories and memories are shared and accessed within the platform.
notes
assistant-related
consent-related
object
data alteration, i.e., storing that question was answeredconsent_setting
: attach node literal to object (not strictly required yet, still working out kinks, but premise is that if exists, provides direct additional annotation to consent that is durable, since consent objects are ephemeral); could add this to context, but simple enough to partition, seems preferable at moment. Additionally, it could ultimately get crafted inside of object.settings once we have a settings assistant in place, but not knowing it's full functionality, this is the best first stabquestion-related
Members/Membership
is selected,relational
is the typeawait
for now)The text was updated successfully, but these errors were encountered: