vaadin / starters

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

Problem creating new starter #165

Closed nilandev closed 5 months ago

nilandev commented 6 months ago

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

This was the configuration used:

{
  "applicationConfiguration": {
    "projectName": "My App",
    "groupId": "com.myapp.stock",
    "vaadinVersion": "v24.4",
    "codeGeneration": "REACT",
    "dockerConfiguration": true,
    "kubernetesConfiguration": false,
    "alwaysGenerateBackend": true,
    "javaVersion": "17",
    "access": "PUBLIC",
    "experimentalFeatures": [],
    "git": true,
    "runOnRandomPort": false,
    "artifactId": "stock-dashboard",
    "sizingFeatureEnabled": true,
    "database": "POSTGRESQL",
    "generatedProjectId": "82fd3d8a-0e42-4550-a884-5f84f776059b"
  },
  "theme": {
    "componentStyles": {},
    "variant": "light",
    "styles": ""
  },
  "views": [
    {
      "name": "Main",
      "type": "menu-on-top-layout",
      "route": "",
      "entityId": -1,
      "children": [
        {
          "id": 1,
          "name": "Catalog",
          "type": "grid-with-filters-view",
          "route": "catalog",
          "icon": "filter-solid",
          "entityId": 1,
          "access": "PUBLIC",
          "children": [],
          "generateTestData": true,
          "generateUrlTemplate": false,
          "codeGeneration": "JAVA"
        },
        {
          "id": 2,
          "name": "Home",
          "type": "custom-view",
          "route": "home",
          "icon": "pencil-ruler-solid",
          "entityId": 1,
          "children": [],
          "generateTestData": true,
          "generateUrlTemplate": false,
          "codeGeneration": "JAVA",
          "componentModel": {
            "type": "layout-column",
            "parameters": {
              "gap": "m",
              "padding": "m"
            },
            "sizingParams": {
              "width": {
                "mode": "fill",
                "styles": {
                  "width": "100%"
                }
              },
              "height": {
                "mode": "fill",
                "styles": {
                  "flex-grow": "1"
                }
              }
            }
          }
        }
      ],
      "generateTestData": false,
      "generateUrlTemplate": false,
      "id": 3
    }
  ],
  "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": []
        }
      ]
    }
  ]
}
MarcinVaadin commented 5 months ago

Thank you for reporting issue. Top tabs layout is not yet supported in Start for hybrid Hilla + Flow apps, will be updated soon. For the moment please use Java (Flow) main layout type during export.

Or just change from Tabs to Drawer.

image
MarcinVaadin commented 5 months ago

New version with fix deployed. Please retest. Thank you for submitting issue!