sudara / alonetone

A free, open source, non-commercial home for musicians and their music
https://alonetone.com
MIT License
349 stars 89 forks source link

Add Patrons and pagination to user browsing #1084

Closed sudara closed 3 years ago

sudara commented 3 years ago

Resolves #1074 Resolves #971 Resolves #837

TODO:

Frontend

Questions:

Extra credit:

QA

sudara commented 3 years ago

@ofsound Another one to check out here. The blank slate seems only happy in a .get_an_account_container but I'm trying to add one to the users page. I think I inadvertently used the .get_an_account_container class for the mass invites, which needs to change too. We also will need it blank slates working on the user home page and upload pages....

http://localhost:3000/users/by/patrons

ofsound commented 3 years ago

@ofsound Another one to check out here. The blank slate seems only happy in a .get_an_account_container but I'm trying to add one to the users page. I think I inadvertently used the .get_an_account_container class for the mass invites, which needs to change too. We also will need it blank slates working on the user home page and upload pages....

http://localhost:3000/users/by/patrons

I split up these responsibilities, so there's no more get_an_account anything.

.page_container_with_blank_slate is the class to modify a page container to include the fancy background.

One issue with this current implementation is that the background was designed to tuck underneath but still show around its following boxed content, on get_an_account and mass_edit. Maybe this page would call for a slight variation where the full cloud is visible and is completely above and clear from what's below it. As is, the blank slate implementation is linked to that background quirk.

Also, the sudara image, being not as tall as the ones previously used, leads to some un-ideal display states. I guess it's tempting to write a Javascript layout script which can use the aspect ratio of the desired image and the total height of the text included to better account for layout across all widths. They way that currently collapses at different widths using just CSS is sorta of hanging by the thread of having the images be like ALEC and the Text Content being about that length too.

sudara commented 3 years ago

I split up these responsibilities, so there's no more get_an_account anything.

Awesome!

One issue with this current implementation is that the background was designed to tuck underneath but still show around its following boxed content, on get_an_account and mass_edit.

Can we see what it looks like with the background tucked under the user grid? Might be fine...

I've added patrons to the db seeds (and more users generally). You can

bundle exec rake db:reset

Screenshot 2021-02-12 - Patrons - Musicians and Listeners | alonetone

Also, the sudara image, being not as tall as the ones previously used, leads to some un-ideal display states.

The image heights should be identical for all the contributor images (550px). Is it a problem that the widths are different? We could maybe make those consistent too, if so. Probably more ideal than working around with js.

Speaking of js, when switching between user pages on desktop I get flashes of (i think?) js resizing user images. I'm wondering if we can get rid of that jank somehow, maybe default to largest size?.... I'm going to add to the PR's todos...

Screenshot 2021-02-12 - New Artists - Musicians and Listeners | alonetone

sudara commented 3 years ago

@ofsound I added a "ben" blank slate on http://localhost:3000/upload to help test the blank slate stuff. You'll have to be on an account with 0 tracks (or temporarily remove the if statement)

sudara commented 3 years ago

@ofsound Ok, I should be done here with backend/seeds. You can run bundle rails db:reset again to get the updated seeds after pulling.

There are a couple open frontend todos. Happy to help on anything...

sudara commented 3 years ago

Screenshot 2021-03-04 - Last Seen - Musicians and Listeners | alonetone

I think the users not having any min height in css might be contributing to the flicker? This is how things load if i block the js...

Specs should be fixed....

sudara commented 3 years ago

A doozy! Nice werrrrrk. Going to merge this for now and we can followup with any details!