vaadin / starters

Issue repository for all the starter projects in https://vaadin.com/start
3 stars 0 forks source link

Problem creating new starter #157

Closed Locasina closed 9 months ago

Locasina commented 9 months ago

I was unable to download my application from start.vaadin.com.

This was the configuration used:

{
  "applicationConfiguration": {
    "projectName": "My App",
    "groupId": "com.example.application",
    "vaadinVersion": "v24",
    "codeGeneration": "JAVA",
    "dockerConfiguration": false,
    "kubernetesConfiguration": false,
    "alwaysGenerateBackend": false,
    "javaVersion": "17",
    "access": "PUBLIC",
    "experimentalFeatures": [],
    "git": false,
    "runOnRandomPort": false,
    "artifactId": "my-app",
    "sizingFeatureEnabled": true,
    "generatedProjectId": "628ba2ad-fefe-470a-9f92-ff76550fed0e"
  },
  "theme": {
    "componentStyles": {},
    "variant": "light",
    "styles": "",
    "fontFamily": ""
  },
  "views": [
    {
      "name": "Main",
      "type": "menu-on-left-layout",
      "route": "",
      "entityId": -1,
      "children": [
        {
          "name": "About",
          "type": "empty-view",
          "route": "about",
          "entityId": -1,
          "children": [],
          "generateTestData": false,
          "generateUrlTemplate": false,
          "icon": "file",
          "id": 2,
          "access": ""
        },
        {
          "id": 3,
          "name": "Hello World",
          "type": "hello-world-view",
          "route": "hello-world",
          "icon": "globe-solid",
          "entityId": -1,
          "children": [],
          "generateTestData": false,
          "generateUrlTemplate": false,
          "access": ""
        },
        {
          "id": 6,
          "name": "Person Form",
          "type": "person-form-view",
          "route": "person-form",
          "icon": "user",
          "entityId": 1,
          "children": [],
          "generateTestData": false,
          "generateUrlTemplate": false,
          "componentModel": {
            "children": [
              {
                "parameters": {
                  "crossLength": "100%",
                  "mainLength": "100%",
                  "gap": "m",
                  "parentLayoutType": "layout-column",
                  "alignItems": "start-start",
                  "padding": "xs"
                },
                "type": "layout-row",
                "sizingParams": {
                  "width": {
                    "mode": "fill",
                    "styles": {
                      "width": "100%"
                    }
                  },
                  "height": {
                    "mode": "fixed",
                    "styles": {
                      "height": "75px"
                    },
                    "fixedValue": "75"
                  }
                },
                "children": [
                  {
                    "parameters": {
                      "label": "answers",
                      "parentLayoutType": "layout-row",
                      "alignSelf": "center"
                    },
                    "items": [
                      {
                        "label": "First",
                        "value": "first"
                      },
                      {
                        "label": "Second",
                        "value": "second"
                      },
                      {
                        "label": "Third",
                        "value": "third",
                        "disabled": true
                      },
                      {
                        "label": "Fourth",
                        "value": "fourth"
                      }
                    ],
                    "type": "combo-box",
                    "sizingParams": {
                      "width": {
                        "mode": "hug",
                        "styles": {
                          "width": "min-content"
                        }
                      },
                      "height": {
                        "mode": "fixed",
                        "styles": {
                          "height": "55px"
                        },
                        "fixedValue": "55"
                      }
                    }
                  },
                  {
                    "parameters": {
                      "text": "First statement and some text just so here would be more letters",
                      "parentLayoutType": "layout-row",
                      "alignSelf": "end"
                    },
                    "type": "h3",
                    "sizingParams": {
                      "width": {
                        "mode": "fill",
                        "styles": {
                          "flex-grow": "1"
                        }
                      },
                      "height": {
                        "mode": "hug",
                        "styles": {}
                      }
                    }
                  }
                ]
              },
              {
                "parameters": {
                  "crossLength": "100%",
                  "mainLength": "100%",
                  "gap": "m",
                  "parentLayoutType": "layout-column",
                  "padding": "xs"
                },
                "type": "layout-row",
                "sizingParams": {
                  "width": {
                    "mode": "fill",
                    "styles": {
                      "width": "100%"
                    }
                  },
                  "height": {
                    "mode": "fixed",
                    "styles": {
                      "height": "75px"
                    },
                    "fixedValue": "75"
                  }
                },
                "children": [
                  {
                    "parameters": {
                      "label": "answers",
                      "parentLayoutType": "layout-row",
                      "alignSelf": "center"
                    },
                    "items": [
                      {
                        "label": "First",
                        "value": "first"
                      },
                      {
                        "label": "Second",
                        "value": "second"
                      },
                      {
                        "label": "Third",
                        "value": "third",
                        "disabled": true
                      },
                      {
                        "label": "Fourth",
                        "value": "fourth"
                      }
                    ],
                    "type": "combo-box",
                    "sizingParams": {
                      "width": {
                        "mode": "hug",
                        "styles": {
                          "width": "min-content"
                        }
                      },
                      "height": {
                        "mode": "fixed",
                        "styles": {
                          "height": "55px"
                        },
                        "fixedValue": "55"
                      }
                    }
                  },
                  {
                    "parameters": {
                      "text": "Second statement and some text just so here would be more letters",
                      "parentLayoutType": "layout-row",
                      "alignSelf": "end"
                    },
                    "type": "h3",
                    "sizingParams": {
                      "width": {
                        "mode": "fill",
                        "styles": {
                          "flex-grow": "1"
                        }
                      },
                      "height": {
                        "mode": "hug",
                        "styles": {}
                      }
                    }
                  }
                ]
              },
              {
                "parameters": {
                  "crossLength": "100%",
                  "mainLength": "100%",
                  "gap": "m",
                  "parentLayoutType": "layout-column",
                  "padding": "xs"
                },
                "type": "layout-row",
                "sizingParams": {
                  "width": {
                    "mode": "fill",
                    "styles": {
                      "width": "100%"
                    }
                  },
                  "height": {
                    "mode": "fixed",
                    "styles": {
                      "height": "75px"
                    },
                    "fixedValue": "75"
                  }
                },
                "children": [
                  {
                    "parameters": {
                      "label": "answers",
                      "parentLayoutType": "layout-row",
                      "alignSelf": "center"
                    },
                    "items": [
                      {
                        "label": "First",
                        "value": "first"
                      },
                      {
                        "label": "Second",
                        "value": "second"
                      },
                      {
                        "label": "Third",
                        "value": "third",
                        "disabled": true
                      },
                      {
                        "label": "Fourth",
                        "value": "fourth"
                      }
                    ],
                    "type": "combo-box",
                    "sizingParams": {
                      "width": {
                        "mode": "hug",
                        "styles": {
                          "width": "min-content"
                        }
                      },
                      "height": {
                        "mode": "fixed",
                        "styles": {
                          "height": "55px"
                        },
                        "fixedValue": "55"
                      }
                    }
                  },
                  {
                    "parameters": {
                      "text": "Third statement and some text just so here would be more letters",
                      "parentLayoutType": "layout-row",
                      "alignSelf": "end"
                    },
                    "type": "h3",
                    "sizingParams": {
                      "width": {
                        "mode": "fill",
                        "styles": {
                          "flex-grow": "1"
                        }
                      },
                      "height": {
                        "mode": "hug",
                        "styles": {}
                      }
                    }
                  }
                ]
              },
              {
                "parameters": {
                  "crossLength": "100%",
                  "mainLength": "100%",
                  "gap": "m",
                  "parentLayoutType": "layout-column",
                  "alignItems": "center-start",
                  "padding": "xs"
                },
                "type": "layout-row",
                "sizingParams": {
                  "width": {
                    "mode": "fill",
                    "styles": {
                      "width": "100%"
                    }
                  },
                  "height": {
                    "mode": "fixed",
                    "styles": {
                      "height": "75px"
                    },
                    "fixedValue": "75"
                  }
                },
                "children": [
                  {
                    "parameters": {
                      "label": "answers",
                      "parentLayoutType": "layout-row"
                    },
                    "items": [
                      {
                        "label": "First",
                        "value": "first"
                      },
                      {
                        "label": "Second",
                        "value": "second"
                      },
                      {
                        "label": "Third",
                        "value": "third",
                        "disabled": true
                      },
                      {
                        "label": "Fourth",
                        "value": "fourth"
                      }
                    ],
                    "type": "combo-box",
                    "sizingParams": {
                      "width": {
                        "mode": "hug",
                        "styles": {
                          "width": "min-content"
                        }
                      },
                      "height": {
                        "mode": "fixed",
                        "styles": {
                          "height": "55px"
                        },
                        "fixedValue": "55"
                      }
                    }
                  },
                  {
                    "parameters": {
                      "text": "Fourth statement and some text just so here would be more letters",
                      "parentLayoutType": "layout-row",
                      "alignSelf": "end"
                    },
                    "type": "h3",
                    "sizingParams": {
                      "width": {
                        "mode": "fill",
                        "styles": {
                          "flex-grow": "1"
                        }
                      },
                      "height": {
                        "mode": "hug",
                        "styles": {}
                      }
                    }
                  }
                ]
              }
            ],
            "default": {
              "children": [
                {
                  "parameters": {
                    "gap": "m",
                    "padding": "m",
                    "parentLayoutType": "layout-column"
                  },
                  "type": "layout-column",
                  "sizingParams": {
                    "width": {
                      "mode": "fill",
                      "styles": {
                        "width": "100%",
                        "max-width": "800px"
                      },
                      "maxValue": "800px"
                    },
                    "height": {
                      "mode": "hug",
                      "styles": {
                        "height": "min-content"
                      }
                    }
                  },
                  "children": [
                    {
                      "parameters": {
                        "text": "Personal Information",
                        "parentLayoutType": "layout-column"
                      },
                      "type": "h3",
                      "sizingParams": {
                        "width": {
                          "mode": "fill",
                          "styles": {
                            "width": "100%"
                          }
                        },
                        "height": {
                          "mode": "hug",
                          "styles": {}
                        }
                      }
                    },
                    {
                      "parameters": {
                        "parentLayoutType": "layout-column"
                      },
                      "type": "form-layout-2-col",
                      "sizingParams": {
                        "width": {
                          "mode": "fill",
                          "styles": {
                            "width": "100%"
                          }
                        },
                        "height": {
                          "mode": "hug",
                          "styles": {}
                        }
                      },
                      "children": [
                        {
                          "parameters": {
                            "label": "First Name",
                            "parentLayoutType": "layout-column"
                          },
                          "type": "text-field"
                        },
                        {
                          "parameters": {
                            "label": "Last Name",
                            "parentLayoutType": "layout-column"
                          },
                          "type": "text-field"
                        },
                        {
                          "parameters": {
                            "label": "Birthday",
                            "parentLayoutType": "layout-column"
                          },
                          "type": "date-picker"
                        },
                        {
                          "parameters": {
                            "label": "Phone Number",
                            "parentLayoutType": "layout-row"
                          },
                          "type": "text-field"
                        },
                        {
                          "parameters": {
                            "label": "Email",
                            "parentLayoutType": "layout-column"
                          },
                          "type": "email-field"
                        },
                        {
                          "parameters": {
                            "label": "Occupation",
                            "parentLayoutType": "layout-column"
                          },
                          "type": "text-field"
                        }
                      ]
                    },
                    {
                      "parameters": {
                        "parentLayoutType": "layout-column",
                        "gap": "m"
                      },
                      "type": "layout-row",
                      "sizingParams": {
                        "width": {
                          "mode": "fill",
                          "styles": {
                            "width": "100%"
                          }
                        },
                        "height": {
                          "mode": "fill",
                          "styles": {
                            "flex-grow": "1"
                          }
                        }
                      },
                      "children": [
                        {
                          "parameters": {
                            "text": "Save",
                            "parentLayoutType": "layout-row"
                          },
                          "type": "button-primary",
                          "sizingParams": {
                            "width": {
                              "mode": "hug",
                              "styles": {
                                "width": "min-content"
                              }
                            },
                            "height": {
                              "mode": "hug",
                              "styles": {}
                            }
                          }
                        },
                        {
                          "parameters": {
                            "text": "Cancel",
                            "parentLayoutType": "layout-row"
                          },
                          "type": "button-secondary",
                          "sizingParams": {
                            "width": {
                              "mode": "hug",
                              "styles": {
                                "width": "min-content"
                              }
                            },
                            "height": {
                              "mode": "hug",
                              "styles": {}
                            }
                          }
                        }
                      ]
                    }
                  ]
                }
              ],
              "parameters": {
                "gap": "m",
                "padding": "m",
                "alignItems": "start-center"
              },
              "sizingParams": {
                "width": {
                  "mode": "fill",
                  "styles": {
                    "width": "100%"
                  }
                },
                "height": {
                  "mode": "fill",
                  "styles": {
                    "flex-grow": "1"
                  }
                }
              },
              "type": "layout-column"
            },
            "parameters": {
              "gap": "m",
              "padding": "xs",
              "alignItems": "start-start"
            },
            "sizingParams": {
              "width": {
                "mode": "fill",
                "styles": {
                  "width": "100%"
                },
                "minValue": "",
                "maxValue": ""
              },
              "height": {
                "mode": "fill",
                "styles": {
                  "flex-grow": "1"
                }
              }
            },
            "type": "layout-column"
          }
        }
      ],
      "generateTestData": false,
      "generateUrlTemplate": false,
      "id": 0
    }
  ],
  "entities": [
    {
      "id": 1,
      "name": "SamplePerson",
      "fields": [
        {
          "name": "id",
          "dataType": "ID",
          "editorType": "vaadin-text-field",
          "fieldType": "Integer",
          "uiType": "Text",
          "validators": []
        },
        {
          "name": "firstName",
          "dataType": "FIRST_NAME",
          "editorType": "vaadin-text-field",
          "fieldType": "String",
          "uiType": "Text",
          "validators": []
        },
        {
          "name": "lastName",
          "dataType": "LAST_NAME",
          "editorType": "vaadin-text-field",
          "fieldType": "String",
          "uiType": "Text",
          "validators": []
        },
        {
          "name": "email",
          "dataType": "EMAIL",
          "editorType": "vaadin-text-field",
          "fieldType": "String",
          "uiType": "Text",
          "validators": [
            "jakarta.validation.constraints.Email"
          ]
        },
        {
          "name": "phone",
          "dataType": "PHONE_NUMBER",
          "editorType": "vaadin-text-field",
          "fieldType": "String",
          "uiType": "Text",
          "validators": []
        },
        {
          "name": "dateOfBirth",
          "dataType": "DATE_OF_BIRTH",
          "editorType": "vaadin-date-picker",
          "fieldType": "LocalDate",
          "uiType": "Text",
          "validators": [
            "jakarta.annotation.Nullable"
          ]
        },
        {
          "name": "occupation",
          "dataType": "OCCUPATION",
          "editorType": "vaadin-text-field",
          "fieldType": "String",
          "uiType": "Text",
          "validators": []
        },
        {
          "name": "role",
          "dataType": "WORK_ROLE",
          "editorType": "vaadin-text-field",
          "fieldType": "String",
          "uiType": "Text",
          "validators": []
        },
        {
          "name": "important",
          "dataType": "BOOLEAN_10_90",
          "editorType": "vaadin-checkbox",
          "fieldType": "boolean",
          "uiType": "Checkbox",
          "validators": []
        }
      ]
    }
  ]
}
brunovianarezende commented 9 months ago

this is causing the problem:

"access": ""

it can't be deserialized by starter.

MarcinVaadin commented 9 months ago

Fix implemented, will be released today.