Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[#50212] Convert file storage edit view to primer design #13866

Merged

Conversation

akabiru
Copy link
Member

@akabiru akabiru commented Oct 6, 2023

https://community.openproject.org/wp/50212

Primer Components

demo-2

@akabiru akabiru self-assigned this Oct 9, 2023
@akabiru akabiru force-pushed the implementation/50212-convert-the-edit-page-to-primer-design branch from 8c040ef to 72f557b Compare October 16, 2023 13:56
@akabiru akabiru force-pushed the implementation/50212-convert-the-edit-page-to-primer-design branch from 1bbda45 to 48a7eda Compare October 25, 2023 09:07
@akabiru akabiru requested a review from HDinger October 25, 2023 11:30
Copy link
Member

@Kharonus Kharonus left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In general I'm impressed by the work. good progress.

There is only a couple of issues I'd like to discuss or mention. But none of those are blockers for a merge from my pov.

@akabiru akabiru force-pushed the implementation/50212-convert-the-edit-page-to-primer-design branch from 6628edf to b1fec70 Compare October 25, 2023 14:11
@akabiru akabiru force-pushed the implementation/50212-convert-the-edit-page-to-primer-design branch from b1fec70 to f544fbe Compare October 25, 2023 14:17
Copy link
Contributor

@HDinger HDinger left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi @akabiru

nice job, it looks really awesome! I did not have a complete storage setup, so I could test only half of the things. It might be that some of the issues I found are a result of this half setup.

  • When I try to add a new storage, I get a black screen with a weird message of a missing parameter as soon as I press "Save":
Bildschirmfoto 2023-10-25 um 19 06 05
  • When trying to refresh an incomplete OAuthApplication via the arrows on the right, I get a routing error.
Bildschirmfoto 2023-10-25 um 19 06 44
  • On mobile, there are some overlappings
Bildschirmfoto 2023-10-25 um 19 07 44
  • Compared to the visuals, there is no breadcrumb shown for me. I asuume that is part of the other PR, right?

As I said, I don't know if these are actual issues or come due to my hacked setup. If you have problems reproducing the issues, I can also show you tomorrow.

Copy link
Contributor

@HDinger HDinger left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi @akabiru

I was able to test it better now. Some additional remarks I found:

  • Deleting the storage results in a routing error,
  • When saving the automatically saved folders, the section does not collapse, but stays open

@akabiru
Copy link
Member Author

akabiru commented Oct 26, 2023

Hi @akabiru

I was able to test it better now. Some additional remarks I found:

* [ ]  Deleting the storage results in a routing error,

Thanks @HDinger, the delete problem is a known issue unfortunately captured separately in (https://community.openproject.org/projects/openproject/work_packages/50739) - but I understand the expecation for it to work in this PR- I'll look into it 🔧

* [ ]  When saving the automatically saved folders, the section does not collapse, but stays open

Will reach out directly as I haven't observed this problem

@akabiru akabiru requested a review from HDinger October 26, 2023 13:38
Copy link
Member Author

@akabiru akabiru left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the review @HDinger 🙌🏾

Resolved

  • When I try to add a new storage, I get a black screen with a weird message of a missing parameter as soon as I press "Save":
    Bildschirmfoto 2023-10-25 um 19 06 05 c9d8297

  • When trying to refresh an incomplete OAuthApplication via the arrows on the right, I get a routing error.
    Bildschirmfoto 2023-10-25 um 19 06 44 manually created storage that did not have an oauth application

  • Why do you need a grid if there is only one element inside anyways? 11188f2

🚧 Separate Work Packages: followup work

Comment on lines +46 to +57
Primer::Beta::Button.new(
scheme: :danger,
size: :medium,
type: :submit,
aria: { label: I18n.t("storages.label_delete_storage") },
data: { confirm: I18n.t('storages.delete_warning.storage') },
test_selector: 'storage-delete-button'
)
) do |button|
button.with_leading_visual_icon(icon: :trash)
I18n.t('button_delete')
end
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⭐️

Copy link
Contributor

@HDinger HDinger left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi @akabiru

The changes look good to me. 👍 I found one other issue, but I am fine with moving that to a separate ticket if you want to:

  • When I change the name of a storage, the name is not updated on the page header (only with a hard reload). However, as there is no success message or anything to indicate that the change was accepted, it felt like a bug.

Additionally, I received another routing error when trying to change the name of one of my storages. However, it did happen only for this specifc storage, so that might be due to my setup.

Bildschirmaufnahme.2023-10-27.um.08.06.01.mov

@akabiru
Copy link
Member Author

akabiru commented Oct 27, 2023

Hi @akabiru

The changes look good to me. 👍 I found one other issue, but I am fine with moving that to a separate ticket if you want to:

* When I change the name of a storage, the name is not updated on the page header (only with a hard reload). However, as there is no success message or anything to indicate that the change was accepted, it felt like a bug.

Thanks @HDinger , the header name update is WIP separately in https://community.openproject.org/wp/50738

Additionally, I received another routing error when trying to change the name of one of my storages. However, it did happen only for this specifc storage, so that might be due to my setup.

Hmm, I suspect this is due to a manually created storage- as https://example.com is not a valid nextcloud URL, and would fail if created via the Form/API I will nonetheless track it as a bug to handle more gracefully. Confirmed if the storage is created manually via console, the dependent oauth application relation is not created which causes the crash above

Screenshot 2023-10-27 at 9 51 05 AM

@akabiru akabiru requested a review from HDinger October 27, 2023 08:45
Copy link
Contributor

@HDinger HDinger left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍 🌟

@akabiru akabiru merged commit 87ace40 into dev Oct 27, 2023
@akabiru akabiru deleted the implementation/50212-convert-the-edit-page-to-primer-design branch October 27, 2023 08:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Development

Successfully merging this pull request may close these issues.

5 participants