-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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
[#50212] Convert file storage edit view to primer design #13866
Conversation
This reverts commit 5d2cb41.
…model errors to the service
8c040ef
to
72f557b
Compare
…ove wrapper GitHub Discussion: #13866 (comment) https://community.openproject.org/wp/50212
modules/storages/app/controllers/storages/admin/storages_controller.rb
Outdated
Show resolved
Hide resolved
1bbda45
to
48a7eda
Compare
There was a problem hiding this 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.
modules/storages/app/components/storages/admin/storage_list_component.html.erb
Outdated
Show resolved
Hide resolved
modules/storages/spec/contracts/storages/storages/nextcloud_contract_spec.rb
Show resolved
Hide resolved
6628edf
to
b1fec70
Compare
b1fec70
to
f544fbe
Compare
There was a problem hiding this 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](https://private-user-images.githubusercontent.com/7457313/278094155-63be3e9e-5a5c-4589-b16b-c4bac8821a0b.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MzkyNjAzMjYsIm5iZiI6MTczOTI2MDAyNiwicGF0aCI6Ii83NDU3MzEzLzI3ODA5NDE1NS02M2JlM2U5ZS01YTVjLTQ1ODktYjE2Yi1jNGJhYzg4MjFhMGIucG5nP1gtQW16LUFsZ29yaXRobT1BV1M0LUhNQUMtU0hBMjU2JlgtQW16LUNyZWRlbnRpYWw9QUtJQVZDT0RZTFNBNTNQUUs0WkElMkYyMDI1MDIxMSUyRnVzLWVhc3QtMSUyRnMzJTJGYXdzNF9yZXF1ZXN0JlgtQW16LURhdGU9MjAyNTAyMTFUMDc0NzA2WiZYLUFtei1FeHBpcmVzPTMwMCZYLUFtei1TaWduYXR1cmU9MGY0OTgzOTI5MDZlODY5ZTc2YWIwOTc1NjdlYjMwZGQ3MTlkOGFlYjA3N2JjYzYwMjIxZmRjMzlkZWIxYjU2MSZYLUFtei1TaWduZWRIZWFkZXJzPWhvc3QifQ.iFx_3ul_Em9XKMOpTc1mOREl4qbwgpeykd46lQRl_js)
- 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](https://private-user-images.githubusercontent.com/7457313/278094114-11548b52-0390-43c0-9ac5-56f2bbb38a88.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MzkyNjAzMjYsIm5iZiI6MTczOTI2MDAyNiwicGF0aCI6Ii83NDU3MzEzLzI3ODA5NDExNC0xMTU0OGI1Mi0wMzkwLTQzYzAtOWFjNS01NmYyYmJiMzhhODgucG5nP1gtQW16LUFsZ29yaXRobT1BV1M0LUhNQUMtU0hBMjU2JlgtQW16LUNyZWRlbnRpYWw9QUtJQVZDT0RZTFNBNTNQUUs0WkElMkYyMDI1MDIxMSUyRnVzLWVhc3QtMSUyRnMzJTJGYXdzNF9yZXF1ZXN0JlgtQW16LURhdGU9MjAyNTAyMTFUMDc0NzA2WiZYLUFtei1FeHBpcmVzPTMwMCZYLUFtei1TaWduYXR1cmU9ZGY2ZTkzMmQ5OTQ0YWIxZmQyNjgzZmRkZjgxYzE3OWRmY2RhYWRjOThkMzVmN2ZmYTViNjkwZjdjMzljMzExYiZYLUFtei1TaWduZWRIZWFkZXJzPWhvc3QifQ.A2WoNKfl_VF64BBTQQaodUxfro0rBlNHo0YDMVFM19E)
- On mobile, there are some overlappings
![Bildschirmfoto 2023-10-25 um 19 07 44](https://private-user-images.githubusercontent.com/7457313/278094355-cc5bcb7f-05d3-4c2c-9dfc-dc914c0ea6bc.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MzkyNjAzMjYsIm5iZiI6MTczOTI2MDAyNiwicGF0aCI6Ii83NDU3MzEzLzI3ODA5NDM1NS1jYzViY2I3Zi0wNWQzLTRjMmMtOWRmYy1kYzkxNGMwZWE2YmMucG5nP1gtQW16LUFsZ29yaXRobT1BV1M0LUhNQUMtU0hBMjU2JlgtQW16LUNyZWRlbnRpYWw9QUtJQVZDT0RZTFNBNTNQUUs0WkElMkYyMDI1MDIxMSUyRnVzLWVhc3QtMSUyRnMzJTJGYXdzNF9yZXF1ZXN0JlgtQW16LURhdGU9MjAyNTAyMTFUMDc0NzA2WiZYLUFtei1FeHBpcmVzPTMwMCZYLUFtei1TaWduYXR1cmU9MDdiZGViZGY3ZWVjMDk1N2FkZmYyMzE1MjkwZTE3NzIwZDhkMmFiZTI3MzY4MDgxYzhkOGE1NzMyMjFiODRlNyZYLUFtei1TaWduZWRIZWFkZXJzPWhvc3QifQ.Ew59g98K5Cre1Nfj0az_D-fpMKnIDTorrK2t0ZT2vqY)
- 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.
modules/storages/app/components/storages/admin/storage_view_component.html.erb
Outdated
Show resolved
Hide resolved
There was a problem hiding this 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
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 🔧
Will reach out directly as I haven't observed this problem |
There was a problem hiding this 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":
c9d8297
-
When trying to refresh an incomplete OAuthApplication via the arrows on the right, I get a routing error.
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
-
On mobile, there are some overlappings
https://community.openproject.org/wp/50762
-
Compared to the visuals, there is no breadcrumb shown for me. I asuume that is part of the other PR, right? ✅ feat[#50499]: Add navigational elements (breadcrumb and back buttons) #13962
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 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
⭐️
There was a problem hiding this 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
Thanks @HDinger , the header name update is WIP separately in https://community.openproject.org/wp/50738
Hmm, I suspect this is due to a manually created storage- as |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍 🌟
https://community.openproject.org/wp/50212
PageHeader
title (https://community.openproject.org/wp/50739)Done, continue
button context awarePrimer Components
OpTurbo::FrameComponent
[Op#50212]: Add Turbo Stream and Frame View Components #13932OpPrimer::ClipboardCopyComponent
and primerise sizes (https://community.openproject.org/wp/50741)