UI: Improve multi OS display #205

Merged
Oleg-Komarov merged 40 commits from ui/multi-os into main 2024-07-16 07:24:07 +02:00

This PR improves UI display of extensions with multiple platform variants.

The following items are work in progress, and will be added later:

  • Showing the item that is relevant to the current platform in the Other versions dropdown, while fading out the non-active items
  • Detect macOS architecture if possible, and only show the relevant item on the platform
  • Merging the display of platforms with different architectures in extensions details' Supported Platforms list
This PR improves UI display of extensions with multiple platform variants. The following items are work in progress, and will be added later: - [x] Showing the item that is relevant to the current platform in the _Other versions_ dropdown, while fading out the non-active items - [ ] Detect macOS architecture if possible, and only show the relevant item on the platform - [x] Merging the display of platforms with different architectures in extensions details' _Supported Platforms_ list
Márton Lente added 30 commits 2024-07-12 17:55:25 +02:00
Show multi OS install buttons dynamically,
based on present active platform.
Add multi OS all versions dropdown to enable donwnload of other versions
for non-active platforms.
Improve template multi OS install buttons display based on coversation IRL.
File size display is work in progress.
Show the extension's size for the active platform in
the install button's details.
This reverts commit 2c550392cc.
Show the extension's size for the active platform in
the install button's details.
Refactor of #2c55039
Fix extension-detail dropdowns being overflown by subsequent panels.
Fix data-platform attribute for js function copyInstall URL
after database and back-end changes.
Fix btn-install-action-items separator styles when multiple OS-specific
install buttons are present.
Don't display size in extensions' details for extensions that have
multiple platform variant.
Oleg-Komarov added 1 commit 2024-07-13 20:44:35 +02:00
Márton Lente added 1 commit 2024-07-15 11:19:25 +02:00
Show active platform in multi OS Other versions list with a dot indicator.
Part of #205
Owner

@dfelinto about grouping architectures per OS in the "supported platforms" list
image

once we get extensions for windows-arm64, it would make sense to do grouping for windows, not only for macOS

to implement this with the current data model, it will be easier if we had a more specific platform.name for windows-x64, then we could rely on the methods name_first_word and name_rest for grouping.
the problem is that currently name_rest for windows-x64 is empty, so it would look weird if we join an empty string and the "Arm" part of windows-arm64

to solve this we could just update the name field for windows-x64 to something other than "Windows", e.g. "Windows x64", what do you think?

@dfelinto about grouping architectures per OS in the "supported platforms" list ![image](/attachments/cf5cd38c-c10b-4b94-bc4f-d7b3d68921d9) once we get extensions for windows-arm64, it would make sense to do grouping for windows, not only for macOS to implement this with the current data model, it will be easier if we had a more specific platform.name for windows-x64, then we could rely on the methods `name_first_word` and `name_rest` for grouping. the problem is that currently `name_rest` for windows-x64 is empty, so it would look weird if we join an empty string and the "Arm" part of windows-arm64 to solve this we could just update the name field for windows-x64 to something other than "Windows", e.g. "Windows x64", what do you think?
Márton Lente added 1 commit 2024-07-15 12:05:08 +02:00
This commit is part of a work in progress and is needed for testing.
Part of #205
Oleg-Komarov added 1 commit 2024-07-15 14:19:40 +02:00
Oleg-Komarov added 1 commit 2024-07-15 14:20:32 +02:00
Márton Lente added 1 commit 2024-07-15 15:17:22 +02:00
Márton Lente added 1 commit 2024-07-15 16:21:53 +02:00
Márton Lente added 1 commit 2024-07-15 17:12:48 +02:00
Márton Lente added 1 commit 2024-07-15 17:22:37 +02:00
Style dropdown multi OS download buttons based on active platform.
Part of #205
Márton Lente added 1 commit 2024-07-15 17:29:06 +02:00
Oleg-Komarov merged commit 5ace0a8251 into main 2024-07-16 07:24:07 +02:00
Oleg-Komarov deleted branch ui/multi-os 2024-07-16 07:24:08 +02:00
Sign in to join this conversation.
No reviewers
No Milestone
No project
No Assignees
2 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: infrastructure/extensions-website#205
No description provided.