vaadin / starters

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

Problem creating new starter #148

Closed FossilCollectMe closed 9 months ago

FossilCollectMe commented 10 months ago

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

This was the configuration used:

Please paste configuration here. It was automatically added to your clipboard.
{
  "applicationConfiguration": {
    "projectName": "Fossility",
    "groupId": "com.example",
    "vaadinVersion": "v24",
    "codeGeneration": "JAVA",
    "dockerConfiguration": false,
    "kubernetesConfiguration": false,
    "alwaysGenerateBackend": false,
    "javaVersion": "17",
    "access": "PUBLIC",
    "experimentalFeatures": [],
    "git": false,
    "runOnRandomPort": false,
    "artifactId": "test",
    "generatedProjectId": "2c0c947e-06e9-484b-9b3b-4e17ed3cbc90"
  },
  "theme": {
    "componentStyles": {},
    "variant": "light",
    "styles": "\n    [theme~=\"dark\"] {\n      --lumo-base-color: hsl(214, 35%, 12%);\n\n    }\n",
    "fontFamily": ""
  },
  "views": [
    {
      "name": "Main",
      "type": "menu-on-left-layout",
      "route": "",
      "entityId": -1,
      "children": [
        {
          "id": 11,
          "name": "Login",
          "type": "custom-view",
          "route": "login",
          "icon": "user-lock-solid",
          "entityId": 1,
          "children": [],
          "generateTestData": true,
          "generateUrlTemplate": false,
          "componentModel": {
            "type": "layout-column",
            "parameters": {
              "mainLength": "100%",
              "crossLength": "100%",
              "gap": "m",
              "padding": "m"
            },
            "children": [
              {
                "parameters": {
                  "crossLength": "100%",
                  "mainLength": "100%",
                  "gap": "m",
                  "padding": "m"
                },
                "type": "layout-column",
                "children": [
                  {
                    "parameters": {
                      "crossLength": "100%",
                      "mainLength": "100%",
                      "gap": "m",
                      "padding": "m"
                    },
                    "type": "layout-column",
                    "children": [
                      {
                        "parameters": {
                          "mainLength": "100%",
                          "gap": "m",
                          "alignItems": "center-center",
                          "padding": "",
                          "crossLength": "100%"
                        },
                        "type": "layout-row",
                        "children": [
                          {
                            "type": "login-form"
                          }
                        ]
                      },
                      {
                        "parameters": {
                          "crossLength": "100%",
                          "mainLength": "100%",
                          "gap": "m"
                        },
                        "type": "layout-row",
                        "children": []
                      }
                    ]
                  }
                ]
              }
            ]
          }
        },
        {
          "id": 6,
          "name": "Collections",
          "type": "card-list-view",
          "route": "collections",
          "icon": "list-solid",
          "entityId": -1,
          "access": "USER_ROLE",
          "children": [],
          "generateTestData": true,
          "generateUrlTemplate": false
        },
        {
          "id": 14,
          "name": "Fossils",
          "type": "master-detail-view",
          "route": "fossils",
          "icon": "hammer-solid",
          "entityId": 1,
          "children": [],
          "generateTestData": true,
          "generateUrlTemplate": true
        },
        {
          "id": 13,
          "name": "Image Gallery",
          "type": "image-list-view",
          "route": "image-gallery",
          "icon": "image",
          "entityId": -1,
          "children": [],
          "generateTestData": false,
          "generateUrlTemplate": false,
          "access": ""
        },
        {
          "id": 16,
          "name": "Shop",
          "type": "image-list-view",
          "route": "shop",
          "icon": "shopping-bag-solid",
          "entityId": -1,
          "access": "",
          "children": [],
          "generateTestData": false,
          "generateUrlTemplate": false
        },
        {
          "id": 7,
          "name": "User Form",
          "type": "person-form-view",
          "route": "user-form",
          "icon": "user",
          "entityId": 1,
          "access": "USER_ROLE",
          "children": [],
          "generateTestData": false,
          "generateUrlTemplate": false,
          "componentModel": {
            "children": [
              {
                "type": "layout-row",
                "parameters": {
                  "crossLength": "100%"
                },
                "children": [
                  {
                    "type": "layout-column",
                    "parameters": {
                      "mainLength": "100%"
                    }
                  },
                  {
                    "type": "layout-column",
                    "parameters": {
                      "mainLength": "100%",
                      "gap": "m"
                    },
                    "children": [
                      {
                        "parameters": {
                          "text": "Personal Information"
                        },
                        "type": "h3"
                      },
                      {
                        "parameters": {
                          "crossLength": "100%",
                          "gap": "l"
                        },
                        "type": "layout-row",
                        "children": [
                          {
                            "parameters": {
                              "gap": "m",
                              "mainLength": "100%"
                            },
                            "type": "layout-column",
                            "children": [
                              {
                                "parameters": {
                                  "label": "First Name",
                                  "crossLength": "100%"
                                },
                                "type": "text-field"
                              },
                              {
                                "parameters": {
                                  "label": "Birthday",
                                  "crossLength": "100%"
                                },
                                "type": "date-picker"
                              },
                              {
                                "parameters": {
                                  "label": "Email",
                                  "crossLength": "100%"
                                },
                                "type": "email-field"
                              }
                            ]
                          },
                          {
                            "parameters": {
                              "mainLength": "100%",
                              "gap": "m"
                            },
                            "type": "layout-column",
                            "children": [
                              {
                                "parameters": {
                                  "label": "Last Name",
                                  "crossLength": "100%"
                                },
                                "type": "text-field"
                              },
                              {
                                "parameters": {
                                  "gap": "m",
                                  "crossLength": "100%"
                                },
                                "type": "layout-row",
                                "children": [
                                  {
                                    "parameters": {
                                      "label": "Phone Number",
                                      "mainLength": "100%"
                                    },
                                    "type": "text-field"
                                  }
                                ]
                              },
                              {
                                "parameters": {
                                  "label": "Occupation",
                                  "crossLength": "100%"
                                },
                                "type": "text-field"
                              }
                            ]
                          }
                        ]
                      },
                      {
                        "parameters": {
                          "gap": "m"
                        },
                        "type": "layout-row",
                        "children": [
                          {
                            "parameters": {
                              "text": "Save"
                            },
                            "type": "button-primary"
                          },
                          {
                            "parameters": {
                              "text": "Cancel"
                            },
                            "type": "button-secondary"
                          }
                        ]
                      }
                    ]
                  },
                  {
                    "type": "layout-column",
                    "parameters": {
                      "mainLength": "100%",
                      "gap": "m"
                    }
                  }
                ]
              }
            ],
            "default": {
              "type": "layout-column",
              "parameters": {
                "crossLength": "100%",
                "padding": "l"
              },
              "children": [
                {
                  "type": "layout-row",
                  "parameters": {
                    "crossLength": "100%"
                  },
                  "children": [
                    {
                      "type": "layout-column",
                      "parameters": {
                        "mainLength": "100%"
                      }
                    },
                    {
                      "type": "layout-column",
                      "parameters": {
                        "mainLength": "100%",
                        "gap": "m"
                      },
                      "children": [
                        {
                          "parameters": {
                            "text": "Personal Information"
                          },
                          "type": "h3"
                        },
                        {
                          "parameters": {
                            "crossLength": "100%",
                            "gap": "l"
                          },
                          "type": "layout-row",
                          "children": [
                            {
                              "parameters": {
                                "gap": "m",
                                "mainLength": "100%"
                              },
                              "type": "layout-column",
                              "children": [
                                {
                                  "parameters": {
                                    "label": "First Name",
                                    "crossLength": "100%"
                                  },
                                  "type": "text-field"
                                },
                                {
                                  "parameters": {
                                    "label": "Birthday",
                                    "crossLength": "100%"
                                  },
                                  "type": "date-picker"
                                },
                                {
                                  "parameters": {
                                    "label": "Email",
                                    "crossLength": "100%"
                                  },
                                  "type": "email-field"
                                }
                              ]
                            },
                            {
                              "parameters": {
                                "mainLength": "100%",
                                "gap": "m"
                              },
                              "type": "layout-column",
                              "children": [
                                {
                                  "parameters": {
                                    "label": "Last Name",
                                    "crossLength": "100%"
                                  },
                                  "type": "text-field"
                                },
                                {
                                  "parameters": {
                                    "gap": "m",
                                    "crossLength": "100%"
                                  },
                                  "type": "layout-row",
                                  "children": [
                                    {
                                      "parameters": {
                                        "label": "Phone Number",
                                        "mainLength": "100%"
                                      },
                                      "type": "text-field"
                                    }
                                  ]
                                },
                                {
                                  "parameters": {
                                    "label": "Occupation",
                                    "crossLength": "100%"
                                  },
                                  "type": "text-field"
                                }
                              ]
                            }
                          ]
                        },
                        {
                          "parameters": {
                            "gap": "m"
                          },
                          "type": "layout-row",
                          "children": [
                            {
                              "parameters": {
                                "text": "Save"
                              },
                              "type": "button-primary"
                            },
                            {
                              "parameters": {
                                "text": "Cancel"
                              },
                              "type": "button-secondary"
                            }
                          ]
                        }
                      ]
                    },
                    {
                      "type": "layout-column",
                      "parameters": {
                        "mainLength": "100%",
                        "gap": "m"
                      }
                    }
                  ]
                }
              ]
            },
            "parameters": {
              "crossLength": "100%",
              "padding": "l"
            },
            "type": "layout-column"
          }
        },
        {
          "id": 9,
          "name": "Address Form",
          "type": "address-form-view",
          "route": "address-form",
          "icon": "map-marker-solid",
          "entityId": 2,
          "access": "USER_ROLE",
          "children": [],
          "generateTestData": false,
          "generateUrlTemplate": false
        },
        {
          "id": 10,
          "name": "Credit Card Form",
          "type": "credit-card-form-view",
          "route": "credit-card-form",
          "icon": "credit-card",
          "entityId": -1,
          "access": "USER_ROLE",
          "children": [],
          "generateTestData": false,
          "generateUrlTemplate": false
        },
        {
          "id": 3,
          "name": "Checkout Form",
          "type": "checkout-form-view",
          "route": "checkout-form",
          "icon": "credit-card",
          "entityId": -1,
          "access": "USER_ROLE",
          "children": [],
          "generateTestData": false,
          "generateUrlTemplate": false
        },
        {
          "id": 8,
          "name": "User Details",
          "type": "master-detail-view",
          "route": "master-detail",
          "icon": "columns-solid",
          "entityId": 1,
          "access": "ADMIN_ROLE",
          "children": [],
          "generateTestData": true,
          "generateUrlTemplate": true
        },
        {
          "id": 17,
          "name": "User Administration",
          "type": "grid-with-filters-view",
          "route": "user-administration",
          "icon": "address-book-solid",
          "entityId": 1,
          "access": "ADMIN_ROLE",
          "children": [],
          "generateTestData": true,
          "generateUrlTemplate": false
        },
        {
          "name": "About",
          "type": "empty-view",
          "route": "about",
          "entityId": -1,
          "children": [],
          "generateTestData": false,
          "generateUrlTemplate": false,
          "icon": "accusoft",
          "id": 2,
          "access": ""
        }
      ],
      "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": []
        }
      ]
    },
    {
      "id": 2,
      "name": "SampleAddress",
      "fields": [
        {
          "name": "id",
          "dataType": "ID",
          "editorType": "vaadin-text-field",
          "fieldType": "Integer",
          "uiType": "Text",
          "validators": []
        },
        {
          "name": "street",
          "dataType": "ADDRESS",
          "editorType": "vaadin-text-field",
          "fieldType": "String",
          "uiType": "Text",
          "validators": []
        },
        {
          "name": "postalCode",
          "dataType": "ZIP_CODE",
          "editorType": "vaadin-text-field",
          "fieldType": "String",
          "uiType": "Text",
          "validators": []
        },
        {
          "name": "city",
          "dataType": "CITY",
          "editorType": "vaadin-text-field",
          "fieldType": "String",
          "uiType": "Text",
          "validators": []
        },
        {
          "name": "state",
          "dataType": "STATE",
          "editorType": "vaadin-text-field",
          "fieldType": "String",
          "uiType": "Text",
          "validators": []
        },
        {
          "name": "country",
          "dataType": "COUNTRY",
          "editorType": "vaadin-text-field",
          "fieldType": "String",
          "uiType": "Text",
          "validators": []
        }
      ]
    },
    {
      "id": 5,
      "name": "User",
      "fields": [
        {
          "name": "id",
          "dataType": "ID",
          "editorType": "vaadin-text-field",
          "fieldType": "Integer",
          "uiType": "Text",
          "validators": []
        },
        {
          "name": "username",
          "dataType": "FIRST_NAME",
          "editorType": "vaadin-text-field",
          "fieldType": "String",
          "uiType": "Text",
          "validators": []
        },
        {
          "name": "name",
          "dataType": "FULL_NAME",
          "editorType": "vaadin-text-field",
          "fieldType": "String",
          "uiType": "Text",
          "validators": []
        },
        {
          "name": "hashedPassword",
          "dataType": "TWO_WORDS",
          "editorType": "vaadin-text-field",
          "fieldType": "Password",
          "uiType": "Text",
          "validators": []
        },
        {
          "name": "roles",
          "dataType": "WORD",
          "editorType": "vaadin-text-field",
          "fieldType": "String",
          "uiType": "Text",
          "validators": []
        },
        {
          "name": "profilePicture",
          "dataType": "PROFILE_PICTURE_URL",
          "editorType": "vaadin-upload",
          "fieldType": "ImageData",
          "uiType": "Image",
          "validators": [],
          "uiHints": {
            "gridColumnWidth": "96px",
            "height": "MEDIUM",
            "roundImage": true
          }
        }
      ]
    }
  ]
}
FossilCollectMe commented 10 months ago

The ERROR occurs when you switch the view access on a page from public to something different. Afterwards all the pages have the same view access, you can only select one for all pages. After switching the generator is broken.

MarcinVaadin commented 9 months ago

Issue assigned for investigation

MarcinVaadin commented 9 months ago

Same issue as in https://github.com/vaadin/starters/issues/157, fix implemented, will be released today.