Skip to content
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

Reorganize Delegate panel links #10651

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

nsilvestri
Copy link
Member

@nsilvestri nsilvestri commented Jan 18, 2025

This commit:

  1. Moves the Delegate Handbook link to the Important Links section
  2. Removes the "All Delegates" link from the Delegate panel, because it is not necessary or useful here
  3. Adds sections to the Important Links so that they are better organized

There's still some jank with the CSS but this page wasn't pretty anyway and I don't want to mess with the styling rn

Desktop View:

Screenshot 2025-01-18 at 1 31 44 PM

Mobile View:

Screenshot 2025-01-18 at 1 31 58 PM

1. Moves the Delegate Handbook link to the Important Links section
2. Removes the "All Delegates" link from the Delegate panel, because it is not necessary or useful here
3. Adds sections to the Important Links so that they are better organized
Comment on lines +43 to +44
const DELEGATE_HANDBOOK_LINK =
'https://documents.worldcubeassociation.org/edudoc/delegate-handbook/delegate-handbook.pdf';
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Where is this constant being used. if you're deleting the delegateHandbook panel page further down?
(Sorry if this question is obvious, I just can't see it from the way GitHub renders the diff of this particular PR)

Comment on lines +64 to +71
<div key={section}>
<Header as='h3'>{section}</Header>
<List>
{links.map(({ title, link }) => (
<ListItemLink key={link} title={title} link={link} />
))}
</List>
</div>
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not too fond of "wild" divs appearing in our codebase. Lists in Semantic UI can do sub-lists, have you considered that?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Otherwise, React.Fragment should do as a last resort.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants