tables icon indicating copy to clipboard operation
tables copied to clipboard

feat(import): change column format during import

Open luka-nextcloud opened this issue 1 year ago • 10 comments

  • Resolves: #837

luka-nextcloud avatar Mar 19 '24 19:03 luka-nextcloud

@max-nextcloud @juliushaertl Regarding the column title issue, currently, we do not restrict the duplicate column title. I think we should not allow to create columns with the same title on same table. What do you think?

luka-nextcloud avatar Apr 24 '24 11:04 luka-nextcloud

@max-nextcloud @juliushaertl Regarding the column title issue, currently, we do not restrict the duplicate column title. I think we should not allow to create columns with the same title on same table. What do you think?

I think that would make sense to restrict, maybe we can when importing just add a number to the titles that have duplicates, e.g. having three columns called "title" will result in "title", "title (2)", "title (3)" like we do it in files

juliusknorr avatar Apr 24 '24 12:04 juliusknorr

Are there any screenshots or quick videos for easier design review, or is all good on that side? :)

jancborchardt avatar May 02 '24 11:05 jancborchardt

Are there any screenshots or quick videos for easier design review, or is all good on that side? :)

@jancborchardt Please check the video.

demo.webm

luka-nextcloud avatar May 02 '24 14:05 luka-nextcloud

@nextcloud/designers Could you have a look at this?

juliusknorr avatar Jun 12 '24 12:06 juliusknorr

🏓 @nextcloud/designers

juliusknorr avatar Jul 10 '24 10:07 juliusknorr

Sorry for the late review!

Overall it looks good! My first impression is that there is a lot of unused whitespace and that some of the wording is not clear, so we can do some changes to help with that: image

  • [ ] Move the type next to the column name
    • [ ] Column name remains bold, type is normal font weight
    • [ ] They are separated using a middle dot symbol ·
  • [ ] Move the example data into a subline and make it var(--color-text-maxcontrast)
  • [ ] Now that the column type is next to the title, the edit button can just be a pencil icon
  • [ ] Wording changes
    • [ ] "Import table" and "Preview" --> "Preview imported table"
    • [ ] "New column" --> "Create new column"
    • [ ] "Existing column" --> "Replace existing column" (if I understood the functionality correctly)

What do you think? :)

nimishavijay avatar Jul 16 '24 04:07 nimishavijay

@nimishavijay Thanks for your review. Your review looks good to me.

luka-nextcloud avatar Jul 16 '24 09:07 luka-nextcloud

@nimishavijay

  • "Existing column" --> "Replace existing column" -> I think it should be "Import to existing column".

  • When select "Existing column", users have to select column from select box. It is missing from last video. Please provide suggestion for that function also. image

  • Another behavior is disabling "Create missing columns" will show "Ignore" option at the preview step. image

  • Could you also give me suggestions regarding responsiveness?

luka-nextcloud avatar Jul 16 '24 16:07 luka-nextcloud

"Existing column" --> "Replace existing column" -> I think it should be "Import to existing column".

If that's the correct functionality then this sounds good!

When select "Existing column", users have to select column from select box. It is missing from last video. Please provide suggestion for that function also.

I see. Then:

  • [x] the "Create column" and "Import to existing column" can be in different rows
  • [x] the NcSelect component can appear on the right of the "Import to existing column" element
  • [x] The edit button can be on the top right

image

Another behavior is disabling "Create missing columns" will show "Ignore" option at the preview step.

That's perfect. Then it would just be "Import to existing column" and "Ignore column"

Could you also give me suggestions regarding responsiveness?

If all items are on different rows then it should automatically be responsive. Anyway this is a functionality that is unlikely to be widely used on mobile

  • [x] The example data can be ellipsised after one line
  • [x] The heading can be ellipsised after 2 lines

image

nimishavijay avatar Jul 19 '24 02:07 nimishavijay

@nimishavijay Please check the update:

demo.webm

image

luka-nextcloud avatar Jul 22 '24 15:07 luka-nextcloud

Pushed a quick fix for the stylelint error

juliusknorr avatar Jul 23 '24 10:07 juliusknorr

I'd say lets get this in and we can address further design feedback or pending points as follow ups. So far this works nicely already.

@luka-nextcloud Could you go over the checkboxes in this issue, check them off if done and file follow up issues for those that need to be done still?

juliusknorr avatar Jul 24 '24 11:07 juliusknorr