ubuntu / app-center

App Store for Ubuntu made with Flutter 🧑 πŸ’™
GNU General Public License v3.0
653 stars 115 forks source link

Add an option to return to the other packageformat if it exists from the Snap/Packagepage #561

Closed Feichtmeier closed 1 year ago

Feichtmeier commented 1 year ago

Even if I do not like this idea semantically, I see no other room on the pages other than the dropdown for SnapPage

grafik

For PackagePage a simple button "Switch to Snap" would be enough grafik

madsrh commented 1 year ago

Do you mean like this? or perhaps with a label

change-format

If possible, I think it would be best no to have a button on one page and a popup/dropdown on the other. Can we use a popup/dropdown on the PackagePage too?

image

Feichtmeier commented 1 year ago

Yeah maybe. Or just a normal button that forwards you to the deb page. So you can keep the navigation intact

madsrh commented 1 year ago

Or just a normal button that forwards you to the deb page. So you can keep the navigation intact

Toggle buttons / segmented buttons

image

Feichtmeier commented 1 year ago

Woops, it's not really closed unless you guys say so, but the functionality is there. But I started with an outlined button because this is much easier with the navigator because it is now

banner > snap + deb > click > snap page first > switch to deb button > deb page

then

                                                 appbanner  <   snap page   <    back button 
Feichtmeier commented 1 year ago

grafik

anasereijo commented 1 year ago

grafik

Hey @Feichtmeier thanks for sharing the screenshot. I wonder if it's not possible to do the switch button as we proposed?

Feichtmeier commented 1 year ago

It is possible but it does not make so super much sense since you navigate from page to page. It's not really a state of one page but a navigation from one page to the other. If you really insist on the toggle I can do it but in my humble opinion it does not make too much sense from the feel of navigation

Jupi007 commented 1 year ago

@Feichtmeier Can't you use Navigator.pushReplacement to replace the current page?

madsrh commented 1 year ago

It is possible but it does not make so super much sense since you navigate from page to page. It's not really a state of one page but a navigation from one page to the other. If you really insist on the toggle I can do it but in my humble opinion it does not make too much sense from the feel of navigation

Good point @Feichtmeier. I think @anasereijo wants to give the illusion that the content is loaded dynamically (even if it's an entirely different page) so the container (with the name, icon,...) stays the same. Or at least what was what I understood 😁

anasereijo commented 1 year ago

It is possible but it does not make so super much sense since you navigate from page to page. It's not really a state of one page but a navigation from one page to the other. If you really insist on the toggle I can do it but in my humble opinion it does not make too much sense from the feel of navigation

Good point @Feichtmeier. I think @anasereijo wants to give the illusion that the content is loaded dynamically (even if it's an entirely different page) so the container (with the name, icon,...) stays the same. Or at least what was what I understood 😁

yes @madsrh that's exactly it! As we show the apps as one banner (on search results and explore page), it makes it look like it's one 'page' dedicated to the same app and then the user can select to see either the snap or deb.

anasereijo commented 1 year ago

@Feichtmeier is this already available to try it out?

Feichtmeier commented 1 year ago

Yes, should be usable after

sudo snap refresh snap-store

Feichtmeier commented 1 year ago

I would like to add that package formats are no secret in Linux land and we shpuld not try to hide them or abstract them away

Feichtmeier commented 1 year ago

@anasereijo

Another reason to not give the illusion that both apps are the same ( which they are not by any means ), is that you can also install the snap and not the deb, or both, or none, or the deb but not the snap. Little video demonstrating this (where I also found a little layout issue with the button :P )

https://user-images.githubusercontent.com/15329494/208296629-de8c0c8a-d357-4661-aec7-58cdf9cbe5c7.mp4

grafik

whiskeyPeak commented 1 year ago

There should probably also be a "switch to Snap" button if the user is currently on the deb version of a package. :D

Also, as things are right now, the apps page doesn't tell the user what package format it is currently using, albeit in an implicit way (switching to debian implies that it is a Snap). I feel like this should be made more obvious, maybe by having an "App Format" section next to the version number?

Feichtmeier commented 1 year ago

Yeah def a good idea to show the format on the AppPage - maybe in the AppBar?

GIMP (snap) GIMP (debian)

or with icons?

Anyways, those buttons are also unfinished I just wanted to point out that I think that the illusion of "one app" is a bad idea and we need the navigation for "muscle memory" and visualisation that you switch the app format

Feichtmeier commented 1 year ago

https://user-images.githubusercontent.com/15329494/208445340-c05db3ec-749a-4510-a9d5-c386d35fef13.mp4

anasereijo commented 1 year ago

Hi @Feichtmeier, first of all, happy new year!

I am sorry, but I don't understand why we can't have the 'switch' button as proposed. Might be easier/quicker to schedule a quick call to discuss this.

Feichtmeier commented 1 year ago

@madsrh @anasereijo

Now in main to test:

grafik

grafik

grafik

grafik

grafik

grafik

Feichtmeier commented 1 year ago

also increased default window size and reduced padding to avoid overflow of the buttons in the "default" size of the window grafik

madsrh commented 1 year ago

This looks very busy. Too many buttons IMHO.

image

I think I would still have preferred a dropdown here (not the latest/stable dropdown though πŸ˜‰) Shouldn't the Debian label be white?

I know this is just a test, but switching between the two packageformats has a short blank page (shimmer). Is that fixable somehow (caching the other page)?

anasereijo commented 1 year ago

Hey! I am having issues with the update – I don't see the changes. I will try again Monday.

In the meantime, I have some questions/feedback from what I can see on the screenshots:

thank you and have a nice weekend!

Hopefully I can test this on Monday (fingers crossed!)

Feichtmeier commented 1 year ago

This looks very busy. Too many buttons IMHO.

image

I think I would still have preferred a dropdown here (not the latest/stable dropdown though πŸ˜‰) Shouldn't the Debian label be white?

I know this is just a test, but switching between the two packageformats has a short blank page (shimmer). Is that fixable somehow (caching the other page)?

I agree. The more of I use this the more I'm almost sure we should return to the tab approach of snap/deb

But let's keep this approach for now maybe we find something that looks good and is useable for Ubuntu users

On the other points, let's keep this focused on the part that let's you switch between the app format. I'm already getting confused by all the notifications xD I will work on the app infos in a different issue / pull request

I can remove the update button if there is no update and then we get a bit more space, but as soon as there is an update we still get the crowded row

madsrh commented 1 year ago

I agree. The more of I use this the more I'm almost sure we should return to the tab approach of snap/deb

But let's keep this approach for now maybe we find something that looks good and is useable for Ubuntu users

On the other points, let's keep this focused on the part that let's you switch between the app format. I'm already getting confused by all the notifications xD I will work on the app infos in a different issue / pull request

I can remove the update button if there is no update and then we get a bit more space, but as soon as there is an update we still get the crowded row

@Feichtmeier perhaps it would be more "easy on the eyes" if the snap/deb toggle buttons had a dedicated line, like in Anas mockup (I can't find the link atm πŸ˜† ). Do you know what I mean? And ofc this would take up more height - it's just a thought

Feichtmeier commented 1 year ago

yes I try this! This super long line is horrible

Feichtmeier commented 1 year ago

Even if this looks somehow "ok"

grafik

This looks really not ok grafik grafik

Any other idea than the (snap|deb) button?

madsrh commented 1 year ago

This looks really not ok

Indeed that looks πŸ’© Could you try centering it below the website link?

image

whiskeyPeak commented 1 year ago

This looks really not ok

Indeed that looks hankey Could you try centering it below the website link?

image

Yeah I agree, this looks much better. Though by positioning those buttons on a new line, we run into this issue again https://github.com/ubuntu-flutter-community/software/issues/688

Feichtmeier commented 1 year ago

This looks really not ok

Indeed that looks hankey Could you try centering it below the website link?

image

this is good - any idea for the sm0l window?

Feichtmeier commented 1 year ago

eventually we need an exception for these kind of windows anyways grafik I mean, this is a really rare case and I dont know why you would want to do this. We could prevent this by increasing the min height of the window to for example this size grafik

madsrh commented 1 year ago

any idea for the sm0l window?

Well, I took the liberty of removing the "Installed date", because this information may be available in the "Additional information" section/widget (if we decide to go with that idea) AND as you said this is a really rare use case. If this isn't enough space, I would, as already suggested, resize the icon and the title.

image

Feichtmeier commented 1 year ago

Resizing is good and also move the Infos to their own section on the right, right?

madsrh commented 1 year ago

...Infos to their own section on the right, right?

πŸ€” I'm unsure about moving ALL the info. Wouldn't you want some information available without scrolling like version, filesize, ???

If there's room I would leave these three and we can revisit when the "additional info" section is done.

Feichtmeier commented 1 year ago

depends where we place this. we could place it above the media. currently working on this - looks good - I am optimistic

whiskeyPeak commented 1 year ago

Increasing the min window height feels more like placing a bandaid of the issue than actually fixing it head on. It's also worth keeping in mind that a large portion of users still use low resolution displays:

Screenshot_20230107-101355.png

By making the minimum height 870, we basically alienate all these users. I don't think that changing the size of the title and icon would be enough here. IMO the best solution would be to either place the additional information on the right, or make it scrollable.

Feichtmeier commented 1 year ago

yes, it was a band-aid fix just for now, as I said in the PR, no need to diverge this discussion even more ;)

currently working on the app page makeover, please do not panic, everyone relax and drink some beer. Thank you.

madsrh commented 1 year ago

@whiskeyPeak Just for reference: telemetry in Ubuntu https://ubuntu.com/desktop/statistics (all the 800x600 is proberly VM's)

... please do not panic, everyone relax and drink some beer. Thank you.

Still a bit too early for beer 🀣 but I'm completely relaxed ☺️

Feichtmeier commented 1 year ago

grafik

grafik

grafik

madsrh commented 1 year ago

Nice @Feichtmeier ! Much improved πŸ˜„ I think you should move the publisher back below the title, because it is sometimes very long (there's a comment somewhere from Ana)

Feichtmeier commented 1 year ago

but then the grid is always uneven :) Need to pull some other infos out of the toilet then :flushed: :hankey:

Edit: btw, ALL infos shown here can be super varying in length, so this is not really an argument. I push this now and you can test it. The main goal was to have the (snap|deb) button without fucking up the whole page, right?

madsrh commented 1 year ago

Yes, please push

There's a lot of spacing, so perhaps we should make it a bit tighter? But then again, this is an unusual huge window πŸ˜… image

Feichtmeier commented 1 year ago

@madsrh still did not figure out how to keep scaling but move the elements a bit more to the center, but here is the publisher name for wide and narrow windows

grafik

grafik

Let's wait for ana on monday and see if we can go with this (snap|deb) button now and then we can talk about all of this somewhere else

Feichtmeier commented 1 year ago

Fixed by several PRs