Add a button to add a field on the collection node in the diagram

XMLWordPrintableJSON

    • Type: Task
    • Resolution: Unresolved
    • Priority: Major - P3
    • None
    • Affects Version/s: None
    • Component/s: Data Modeling
    • 3
    • Iteration I (Aug 11 - Aug 25)
    • None
    • Developer Tools

      I'm thinking let's default to a string for now, open to any suggestions there though. Similar to how we're adding new collections/relationships let's have it automatically selected in the sidebar and focused with the name input. Let's chat with Ben on the interactions for when it's added and what the defaults for field name should be (if we want to give it an initial name).

       z.object(

      {    type: z.literal('AddField'),    ns: z.string(),    field: FieldPath,    jsonSchema: z.custom<MongoDBJSONSchema>,  }

      ),

      Figma: https://www.figma.com/design/reNpAkCcrtlHEgBoNDiY6P/Ben-s-playground?node-id=1446-15703&t=9DbplnJEhtYyUX9z-4 

              Assignee:
              Unassigned
              Reporter:
              Rhys Howell
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated: