vaadin / starters

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

Problem creating new starter #154

Closed yiyux closed 11 months ago

yiyux commented 11 months ago

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

POST https://start.vaadin.com/connect/download net::ERR_ABORTED 400 (Bad Request)

This was the configuration used:

{
  "applicationConfiguration": {
    "projectName": "Agustinas",
    "groupId": "cl.yiyux",
    "vaadinVersion": "v24",
    "codeGeneration": "JAVA",
    "dockerConfiguration": true,
    "kubernetesConfiguration": false,
    "alwaysGenerateBackend": true,
    "javaVersion": "17",
    "access": "PUBLIC",
    "experimentalFeatures": [],
    "git": true,
    "runOnRandomPort": false,
    "artifactId": "agustinas",
    "sizingFeatureEnabled": true,
    "packageManager": "NPM",
    "database": "POSTGRESQL",
    "generatedProjectId": "caad1a96-98b1-4fdc-9943-97e3a5a0cc01"
  },
  "theme": {
    "componentStyles": {
      "vaadin-button": [
        "\n:host(:not([theme~=\"tertiary\"])) {\n  background-image: linear-gradient(var(--lumo-tint-5pct), var(--lumo-shade-5pct));\n  box-shadow: inset 0 0 0 1px var(--lumo-contrast-20pct);\n}\n:host(:not([theme~=\"tertiary\"]):not([theme~=\"primary\"]):not([theme~=\"error\"]):not([theme~=\"success\"])) {\n  color: var(--lumo-body-text-color);\n}\n:host([focus-ring]:not([theme~=\"tertiary\"])) {\n  box-shadow: 0 0 0 2px var(--lumo-primary-color-50pct), inset 0 0 0 1px var(--lumo-primary-color);\n}\n:host([focus-ring][theme~=\"primary\"]) {\n  box-shadow: 0 0 0 2px var(--lumo-primary-color-50pct), inset 0 0 0 1px var(--lumo-primary-contrast-color);\n}\n:host([theme~=\"primary\"]) {\n  text-shadow: 0 -1px 0 var(--lumo-shade-20pct);\n}"
      ],
      "vaadin-text-field": [
        "\n[part=\"input-field\"] {\n  box-shadow: inset 0 0 0 1px var(--lumo-contrast-30pct);\n  background-color: var(--lumo-base-color);\n}\n\n:host([focus-ring]) [part=\"input-field\"] {\n  box-shadow: 0 0 0 2px var(--lumo-primary-color-50pct), inset 0 0 0 1px var(--lumo-primary-color);\n}\n\n:host([invalid]) [part=\"input-field\"] {\n  box-shadow: inset 0 0 0 1px var(--lumo-error-color);\n}\n"
      ],
      "vaadin-text-area": [
        "\n[part=\"input-field\"] {\n  box-shadow: inset 0 0 0 1px var(--lumo-contrast-30pct);\n  background-color: var(--lumo-base-color);\n}\n\n:host([focus-ring]) [part=\"input-field\"] {\n  box-shadow: 0 0 0 2px var(--lumo-primary-color-50pct), inset 0 0 0 1px var(--lumo-primary-color);\n}\n\n:host([invalid]) [part=\"input-field\"] {\n  box-shadow: inset 0 0 0 1px var(--lumo-error-color);\n}\n"
      ],
      "vaadin-password-field": [
        "\n[part=\"input-field\"] {\n  box-shadow: inset 0 0 0 1px var(--lumo-contrast-30pct);\n  background-color: var(--lumo-base-color);\n}\n\n:host([focus-ring]) [part=\"input-field\"] {\n  box-shadow: 0 0 0 2px var(--lumo-primary-color-50pct), inset 0 0 0 1px var(--lumo-primary-color);\n}\n\n:host([invalid]) [part=\"input-field\"] {\n  box-shadow: inset 0 0 0 1px var(--lumo-error-color);\n}\n"
      ]
    },
    "variant": "light",
    "styles": ""
  },
  "views": [
    {
      "name": "Main",
      "type": "menu-on-left-layout",
      "route": "",
      "entityId": -1,
      "children": [
        {
          "name": "Hello World",
          "type": "hello-world-view",
          "route": "hello",
          "entityId": -1,
          "children": [],
          "generateTestData": false,
          "generateUrlTemplate": false,
          "icon": "globe-solid",
          "id": 1
        },
        {
          "name": "About",
          "type": "empty-view",
          "route": "about",
          "entityId": -1,
          "children": [],
          "generateTestData": false,
          "generateUrlTemplate": false,
          "icon": "file",
          "id": 2
        },
        {
          "id": 3,
          "name": "Profesional",
          "type": "person-form-view",
          "route": "profesional-form",
          "icon": "user",
          "entityId": 1,
          "access": "ADMIN_ROLE",
          "children": [],
          "generateTestData": false,
          "generateUrlTemplate": false,
          "componentModel": {
            "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": "Agregar Nuevo Profesional",
                      "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": "Nombre",
                          "parentLayoutType": "layout-column"
                        },
                        "type": "text-field"
                      },
                      {
                        "parameters": {
                          "label": "Apellido",
                          "parentLayoutType": "layout-column"
                        },
                        "type": "text-field"
                      },
                      {
                        "parameters": {
                          "label": "Fecha Nacimiento",
                          "parentLayoutType": "layout-column"
                        },
                        "type": "date-picker"
                      },
                      {
                        "parameters": {
                          "label": "Telefono",
                          "parentLayoutType": "layout-row"
                        },
                        "type": "text-field"
                      },
                      {
                        "parameters": {
                          "label": "Email",
                          "parentLayoutType": "layout-column"
                        },
                        "type": "email-field"
                      },
                      {
                        "parameters": {
                          "label": "Especialidad",
                          "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": "Grabar",
                          "parentLayoutType": "layout-row"
                        },
                        "type": "button-primary",
                        "sizingParams": {
                          "width": {
                            "mode": "hug",
                            "styles": {
                              "width": "min-content"
                            }
                          },
                          "height": {
                            "mode": "hug",
                            "styles": {}
                          }
                        }
                      },
                      {
                        "parameters": {
                          "text": "Cancelar",
                          "parentLayoutType": "layout-row"
                        },
                        "type": "button-secondary",
                        "sizingParams": {
                          "width": {
                            "mode": "hug",
                            "styles": {
                              "width": "min-content"
                            }
                          },
                          "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": "m",
              "alignItems": "start-center"
            },
            "sizingParams": {
              "width": {
                "mode": "fill",
                "styles": {
                  "width": "100%"
                }
              },
              "height": {
                "mode": "fill",
                "styles": {
                  "flex-grow": "1"
                }
              }
            },
            "type": "layout-column"
          }
        },
        {
          "id": 4,
          "name": "Paciente Detail",
          "type": "master-detail-view",
          "route": "paciente-detail",
          "icon": "columns-solid",
          "entityId": 1,
          "access": "",
          "children": [],
          "generateTestData": true,
          "generateUrlTemplate": true
        },
        {
          "id": 5,
          "name": "Pagos",
          "type": "grid-with-filters-view",
          "route": "pagos",
          "icon": "comment-dollar-solid",
          "entityId": 1,
          "access": "USER_ROLE",
          "children": [],
          "generateTestData": true,
          "generateUrlTemplate": false
        },
        {
          "id": 6,
          "name": "Banco Detail",
          "type": "master-detail-view",
          "route": "banco-detail",
          "icon": "columns-solid",
          "entityId": 2,
          "access": "ADMIN_ROLE",
          "children": [],
          "generateTestData": true,
          "generateUrlTemplate": true
        },
        {
          "id": 7,
          "name": "Configuración",
          "type": "custom-view",
          "route": "config",
          "icon": "pencil-ruler-solid",
          "entityId": 1,
          "children": [],
          "generateTestData": true,
          "generateUrlTemplate": false,
          "componentModel": {
            "type": "layout-column",
            "parameters": {
              "gap": "m",
              "padding": "m"
            },
            "children": [
              {
                "type": "layout-column",
                "parameters": {
                  "gap": "m",
                  "padding": "m",
                  "parentLayoutType": "layout-column"
                },
                "sizingParams": {
                  "width": {
                    "mode": "fill",
                    "styles": {
                      "width": "100%"
                    }
                  },
                  "height": {
                    "mode": "fill",
                    "styles": {
                      "flex-grow": "1"
                    }
                  }
                },
                "children": [
                  {
                    "type": "tab-sheet",
                    "sizingParams": {
                      "width": {
                        "mode": "fill",
                        "styles": {
                          "width": "100%"
                        }
                      },
                      "height": {
                        "mode": "hug",
                        "styles": {}
                      }
                    },
                    "parameters": {
                      "parentLayoutType": "layout-column"
                    }
                  }
                ]
              }
            ],
            "sizingParams": {
              "width": {
                "mode": "fill",
                "styles": {
                  "width": "100%"
                }
              },
              "height": {
                "mode": "fill",
                "styles": {
                  "flex-grow": "1"
                }
              }
            }
          }
        }
      ],
      "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
          }
        }
      ]
    }
  ]
}
MarcinVaadin commented 11 months ago

Issue assigned for investigation

MarcinVaadin commented 11 months ago

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