Skip to content

staging into main - redesigned contest descriptions table for improved scannability and clarity#188

Merged
rsmoke merged 4 commits intomainfrom
staging
Feb 24, 2026
Merged

staging into main - redesigned contest descriptions table for improved scannability and clarity#188
rsmoke merged 4 commits intomainfrom
staging

Conversation

@rsmoke
Copy link
Member

@rsmoke rsmoke commented Feb 24, 2026

This pull request introduces a redesigned contest descriptions table for improved scannability and clarity, updates how eligibility rules are previewed, and refactors helper logic for better maintainability. The most important changes are grouped below:

UI Redesign and Usability Improvements

  • The contest descriptions table in app/views/containers/_contest_descriptions_table.html.erb is replaced with a card-based layout. This enhances readability and allows for easier scanning of contest names and details, including full names and active status.
  • Notes links are now conditionally rendered in the card layout if notes are present, improving user access to additional information.

Eligibility Rules Preview Logic

  • The eligibility rules preview in render_eligibility_rules was changed from character-based truncation to word-based truncation (first 8 words), and now displays a styled chip with a "Rules:" label and a modal link for longer rules.
  • Corresponding spec updates ensure the new preview logic is tested for both short and long eligibility rules, including visual treatments and modal functionality. [1] [2]

Helper Refactoring

  • The logic for rendering the active entries link was extracted into a new contest_description_entries_link helper in app/helpers/contest_descriptions_helper.rb, improving code reuse and clarity in summary rendering.

- Updated the rendering of eligibility rules in the ContainersHelper to display a preview of the first six words, enhancing user experience with a more concise view and a modal link for full details.
- Introduced a new helper method in ContestDescriptionsHelper to encapsulate the logic for generating active contest entries links, improving code modularity and readability.
- Refactored the contest descriptions table view to a card layout for better scannability and visual appeal, while maintaining all relevant information and actions.

These changes enhance the UI and improve the clarity of contest descriptions, making it easier for users to interact with the information presented.
…lity

- Adjusted card layout styles in the contest descriptions table to enhance visual appeal and scannability, including modifications to padding and alignment.
- Updated the rendering of eligibility rules and added a conditional link to view notes, improving user interaction and accessibility of information.
- Enhanced the overall structure of the card components to ensure a more responsive design and better alignment of elements.

These changes improve the user experience by providing a clearer and more organized display of contest descriptions.
…play

- Modified the preview of eligibility rules to display the first eight words instead of six, enhancing the amount of information presented to users.
- Adjusted the CSS class for better alignment of elements within the preview, ensuring a more visually appealing layout.

These changes improve the clarity and usability of eligibility rules in the contest descriptions.
…yout

Update contests in collection layout
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

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

Copilot encountered an error and was unable to review this pull request. You can try again by re-requesting a review.

@rsmoke rsmoke merged commit 0455816 into main Feb 24, 2026
12 checks passed
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