worldcubeassociation.org icon indicating copy to clipboard operation
worldcubeassociation.org copied to clipboard

[Migrate React] Static Pages: Teams Committees

Open revers3ntropy opened this issue 2 years ago • 6 comments

revers3ntropy avatar Oct 08 '22 14:10 revers3ntropy

Interestingly, this fails on my machine on this test:

Capybara.using_wait_time(15) do
    # The 3D secure challenge is in a modal in an iframe in an iframe
    within_frame(page.find("body>div>iframe")) do
      within_frame(page.find("#challengeFrame")) do
        within_frame(page.find("iframe[name='acsFrame']")) do
          find(:button, id: button_id).click
        end
      end
    end
    expect(page).to have_text(message)
  end

Changing 15 to 60 makes it pass, but apparently works fine in CI, so I'm not sure if this is a problem?

revers3ntropy avatar Oct 09 '22 10:10 revers3ntropy

This is the test that clicks through a Stripe payment process. Navigating the iFrames has been a pain in the a** for a long time, as long as CI passes on the second or third attempt it's fine.

gregorbg avatar Oct 09 '22 10:10 gregorbg

Ah ok, thanks

revers3ntropy avatar Oct 09 '22 13:10 revers3ntropy

Cool! Can I haz screenshots? :smile:

gregorbg avatar Oct 10 '22 23:10 gregorbg

image image image image image

How's that? I definitely changed up the design a little but I think it is fairly reasonable...

revers3ntropy avatar Oct 11 '22 07:10 revers3ntropy

How's that? I definitely changed up the design a little but I think it is fairly reasonable...

I love it! 😍 Two minor remarks:

  1. I'm not too wild about the popup inside a popup when copying the mail address. See if there is some other design / mechanism that you can use. (Completely random thought: Have the mail icon "roll open" on mouseover, i.e. just enlarge it horizontally so that the mail address can fit next to the envelope icon whenever you move the mouse there)
  2. The black frame around the Board profile pictures might be interpreted as "this person passed away" depending on the culture. Could you either consider another color (there's no law or WCA Motion mandating these frames to be black) or another design instead of the frame?

gregorbg avatar Oct 11 '22 08:10 gregorbg

I've got the email address to expand on hover now and only use one popup (absolute pain, ended up using css transitions after trying to do it with Semantic UI).

I only copied the colours around the different roles from the current UI. Personally I feel that all the colours in the user badges detract from the design and just make it feel more cluttered, but I can see why you might want to highlight certain people. I'm especially happy to treat the board members as normal team members in the UI, as I think if colours are used it should be to highlight members in teams not an entire team.

revers3ntropy avatar Oct 15 '22 18:10 revers3ntropy

Please rebase to resolve the conflicts, and then we're good to merge!

gregorbg avatar Oct 29 '22 10:10 gregorbg

It still says "This branch cannot be rebased due to conflicts". If you can hit the button on your end, please go ahead. Otherwise, please make sure to rebase cleanly.

gregorbg avatar Oct 31 '22 01:10 gregorbg

Yep I should be able to, I'll just also tweak the background colours...

Thanks so much for the review, I know you're very busy at the moment.

revers3ntropy avatar Oct 31 '22 08:10 revers3ntropy

Quick note, it seems like many avatars are displayed poorly because the regular user defined thumbnail isn't used, but rather some custom crop/minimisation.

DanielEgdal avatar Nov 03 '22 20:11 DanielEgdal

I can't see what you mean... Screenshots maybe?

revers3ntropy avatar Nov 03 '22 20:11 revers3ntropy

Look at the difference in zoom and centering of WRC. Of course some people don't have the same picture anymore, but focus on the ones that do (Antonio, Han, Oliver, Patrick as examples) Staging: image WCA now image

DanielEgdal avatar Nov 03 '22 22:11 DanielEgdal

Ah yes I do see what you mean. It appears that the thumbnail should be ..._thumb.jpeg, thanks for noticing that!

revers3ntropy avatar Nov 04 '22 10:11 revers3ntropy

Not sure if this was a desired design change, but it looks like the colours on badges on individual profiles have gone. Personally speaking, the orange on grey is pretty hard to read. image

EdHollingdale avatar Nov 05 '22 06:11 EdHollingdale

@revers3ntropy I may have been a bit premature with merging your recent CSS fixes PR. Please investigate the issue described by Edward because it still persists even after your recent round of fixes (and is definitely not intended!)

gregorbg avatar Nov 05 '22 10:11 gregorbg

Senior members are not being ordered correctly (i.e. they should be listed after the team Leader) image

Randomno avatar Nov 08 '22 00:11 Randomno

Interesting... This isn't happening for me on prod 😅 What is your environment?

revers3ntropy avatar Nov 08 '22 09:11 revers3ntropy

I'm using the website on Firefox. Works on Edge.

Randomno avatar Nov 08 '22 13:11 Randomno

Great thanks, I'll look into it :)

revers3ntropy avatar Nov 08 '22 19:11 revers3ntropy