staging into main - redesigned contest descriptions table for improved scannability and clarity#188
Conversation
- 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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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
app/views/containers/_contest_descriptions_table.html.erbis 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.Eligibility Rules Preview Logic
render_eligibility_ruleswas 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.Helper Refactoring
contest_description_entries_linkhelper inapp/helpers/contest_descriptions_helper.rb, improving code reuse and clarity in summary rendering.