Created
July 26, 2022 05:33
-
-
Save ryanjyost/5cb09a900785e538a4b41718c1c004e8 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Questions for Guy | |
// 1. What to do with bulk deletion branch | |
// 2. What to do with tags branch | |
// Any prefs for design of creator view? Especially stuff in the sidebar? Hannah mentioned a cog situation, | |
// and I know the redesign is happening | |
// How is a collection different from a form? | |
// Is a collection similar to a review form? Or are these just types of forms. | |
// Collections need to know collection folder, that data seems unique to collection concept vs. just a form | |
const currentDesign = { | |
docs: { | |
$itemAccessCode: { | |
deleted: true, | |
deletedBy: { | |
timestamp: 1658797312180, | |
userId: "5g7XWAhuTPPvlcFgqtfPL3WPOmx2", | |
}, | |
details: { | |
author: "Ryan", | |
confirmationMessage: "", | |
description: "", | |
draftName: "Week 2: Short Form", | |
header: "Week 2: Short Form", | |
image: "", | |
isCollection: true, | |
overview: "", | |
ownerId: "5g7XWAhuTPPvlcFgqtfPL3WPOmx2", | |
timeCreated: 1658797625950, | |
timeUpdated: 1658797625950, | |
// TODO timeViewed: ts | |
title: "Week 2: Short Form", | |
}, | |
formFields: { | |
Ga9kT0HFm9bNO0AuZnMsiYYVe0Zl60: { | |
fieldId: "Ga9kT0HFm9bNO0AuZnMsiYYVe0Zl60", | |
fieldType: "doc", | |
index: 0, | |
inputs: { | |
"6cmPlTMr7OS1SOnym7kcLZlr431D0a": { | |
index: 1, | |
inputId: "6cmPlTMr7OS1SOnym7kcLZlr431D0a", | |
inputType: "short", | |
label: "Author", | |
placeholder: "Author", | |
required: true, | |
}, | |
J5mqKWRhu6PH5DjSwpAxp3eD2CqNkf: { | |
index: 0, | |
inputId: "J5mqKWRhu6PH5DjSwpAxp3eD2CqNkf", | |
inputType: "short", | |
label: "Document Title", | |
placeholder: "Title", | |
required: true, | |
}, | |
}, | |
label: "Add Document", | |
required: false, | |
}, | |
}, | |
privateDetails: { | |
collectionFolderAccessCode: "Cy4cbSg4EOayELL9eYydleg1aLWju5", | |
creatorId: "5g7XWAhuTPPvlcFgqtfPL3WPOmx2", | |
}, | |
settings: { | |
allowPublicAccess: true, | |
allowSubmissions: false, | |
}, | |
users: { | |
"5g7XWAhuTPPvlcFgqtfPL3WPOmx2": { | |
admin: true, | |
is_guest: false, | |
read_only: false, | |
}, | |
}, | |
}, | |
}, | |
}; | |
// New Design Questions | |
// Nest forms inside items, or have forms be kept in separate location | |
// Forms only live inside doc records | |
const designChangeIdea1 = { | |
docs: { | |
$itemAccessCode: { | |
forms: { | |
$formId: { | |
formFields: { | |
//... All the same | |
}, | |
}, | |
}, | |
}, | |
}, | |
}; | |
// formIds tracked on the doc in special section, data is in top-level forms area | |
const designChangeIdea2 = { | |
docs: { | |
$itemAccessCode: { | |
forms: { | |
$formId: { | |
formId: "$formId", | |
// anything else | |
}, | |
}, | |
}, | |
}, | |
forms: { | |
$formId: { | |
formFields: { | |
//... All the same nested in here | |
}, | |
}, | |
}, | |
}; | |
// formIds tracked as children, flag that it's a form | |
const designChangeIdea3 = { | |
docs: { | |
$itemAccessCode: { | |
children: { | |
$formId: { | |
formId: "$formId", | |
isForm: true, | |
// anything else | |
}, | |
}, | |
}, | |
}, | |
forms: { | |
$formId: { | |
formFields: { | |
//... All the same nested in here | |
}, | |
}, | |
}, | |
}; | |
// forms are just docs | |
const designChangeIdea4 = { | |
docs: { | |
$itemAccessCode: { | |
children: { | |
$formAccessCode: { | |
accessCode: "$formAccessCode", | |
// anything else | |
}, | |
}, | |
}, | |
$formAccessCode: { | |
parents: { | |
$itemAccessCode: { | |
accessCode: "$formId", | |
// anything else? | |
}, | |
}, | |
inputs: { | |
//... same | |
}, | |
}, | |
}, | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment