Closed semihsalihoglu-uw closed 1 month ago
I do not think this is a good design.
Hmm, I thought in my simple cases, since there is no other option auto-filling is safe but sure. I'm closing the option for now, if others independently open a similar issue, we can take that as evidence that autofilling such cases is a good idea.
In several scenarios I noticed that in the UI there is a single possible option but the dropdowns are not auto-filled. 2 cases I ran into are: 1) When there is a single node table and we create a new rel table in the Schema view, we can autofill the From and To dropdowns.
2) When importing a csv/parquet file to a relationship table, on the "file selection" panel, you select "Type" as "Relationship". Then in the file upload panel if you select "Use existing table", then it can autofill the table name if there is a single relationship table (same for importing to a single node table).
Similarly when there is no option to take certain actions, we should disable those options. For example, if a db does not have a relationship table, you can still select "Relationship" under "Type" in a selected file. There are probably other cases like this but it would be good to stick to these principles when we can.