-
Notifications
You must be signed in to change notification settings - Fork 6
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
Solicitation report refactor #162
base: dev
Are you sure you want to change the base?
Conversation
… with UX team's suggestions.
very exciting!
…On Wed, Jan 15, 2025 at 10:08 AM collinschreyer-dev < ***@***.***> wrote:
image.png (view on web)
<https://github.com/user-attachments/assets/fefe18cb-8da9-4043-b4e9-a8b4e4711ce0>
Overview
Hey Team! 👋
This PR addresses several changes to the Daily Report (formerly
Solicitations) page, focusing on improving the layout, styling, and user
experience in accordance with the UI team's suggestions. The changes
include restructuring the main content area, refining the search and export
functionality, and updating the table display for better readability and
interaction. *Importantly, we've leveraged the U.S. Web Design System
(USWDS) wherever possible to ensure consistency with design standards and
accessibility best practices. The primary exception to USWDS components is
the PrimeNG table, which we've retained for its robust features like
sorting and filtering.*
Key Changes Layout and Structure
- *Main Container:*
- Wrapped the main content in a main-container div for better
layout control.
- Added padding, font family, and other styles to the main-container
for improved visual presentation, *using USWDS utilities where
applicable.*
- *Header Section:*
- Simplified the header with a clear title "Daily Report" and a
subheading indicating the date of the SRT results, *following USWDS
typography guidelines.*
- Added a descriptive paragraph explaining the purpose of the page, *utilizing
USWDS prose component styles.*
- *Search and Export:*
- Created a dedicated search-export-container to house the search
input, search button, and export link.
- Improved the styling of the search input and button, making them
more prominent *and aligning them with USWDS form control styles.*
- Added an "Export as CSV file" link with a download icon, *styled
using USWDS utility classes.*
- *Table Section:*
- Restructured the table header and body for improved clarity and
responsiveness.
- Added sortable columns for Solicitation #, Title, Notice Type,
Date, Review Result, Latest action date, and Office.
- Implemented filtering for the Review Result column.
- Updated the display of the Review Result with status indicators
(icons and text) for Compliant, Non-compliant, and Cannot Evaluate.
- *Note:* The table itself utilizes PrimeNG components to provide
advanced features, but we've styled it to be visually consistent with USWDS.
- *Loading State:*
- Maintained the visually engaging loading animation with improved
structure using an unordered list and individual list items for each
character, *using USWDS classes for positioning and animation.*
Styling Enhancements
- *Typography:*
- Consistent font family ("Source Sans Pro") applied throughout the
page.
- Adjusted font sizes and weights for headings and body text *according
to USWDS typography guidelines.*
- *Spacing and Padding:*
- Added appropriate margins and padding to various elements for
better visual spacing, *using USWDS spacing utility classes.*
- *Colors:*
- Used color to highlight important elements, such as the search
button, export link, and status indicators, *referencing USWDS
color tokens where appropriate.*
- *Table Styling:*
- Applied a clean and modern style to the table with clear headers
and row styles.
- Added hover effects to table rows for better interactivity.
Functionality Improvements
- *Search:*
- Enhanced the search functionality to filter table rows based on
user input.
- The search input and button are now more prominent and
user-friendly.
- *Export:*
- Replaced the old CSV export image with a more accessible and
styled "Export as CSV file" link.
- *Sorting:*
- Enabled sorting on multiple table columns.
- *Filtering:*
- Added a filter dropdown for the Review Result column.
- *Navigation:*
- Changed page name from "Solicitations" to "Daily Report".
Accessibility Considerations
- Status indicators now include text descriptions along with icons for
better screen reader compatibility.
- The export functionality is now triggered by a link element,
improving keyboard accessibility.
- *Throughout the page, we've adhered to USWDS guidelines for
accessibility, including proper ARIA attributes, semantic HTML, and
keyboard navigation, except within the confines of the PrimeNG table.*
Testing Notes
- Verified the layout and styling on different screen sizes.
- Tested the search, export, sorting, and filtering functionalities.
- Confirmed that the status indicators display correctly for different
review results.
- Validated accessibility with screen readers.
Please review and provide feedback on these enhancements. Thanks!
------------------------------
You can view, comment on, or merge this pull request online at:
#162
Commit Summary
- c12e30a
<c12e30a>
refactor: update header component styling and structure to be in-line with
UX team's suggestions.
- 52fffd7
<52fffd7>
Refactor: Update solicitation report to align with UI team's recommendations
File Changes
(5 files <https://github.com/GSA/srt-ui/pull/162/files>)
- *M* src/app/header/header.component.html
<https://github.com/GSA/srt-ui/pull/162/files#diff-fd8fcab33c868550ead96885cc3b9312b0a3a276fedf4a7b992ffcbc81945bd2>
(79)
- *M* src/app/header/header.component.scss
<https://github.com/GSA/srt-ui/pull/162/files#diff-97e5b0d952350708601c414da6abc689cf11920082e4dda48a33f2a588cc5488>
(204)
- *M*
src/app/solicitation/solicitation-report/solicitation-report.component.html
<https://github.com/GSA/srt-ui/pull/162/files#diff-ac25bebaaeb7218333a3a754e0c83ffdcb0813361b3cabef2e0c94fd9ae7b5b0>
(207)
- *M*
src/app/solicitation/solicitation-report/solicitation-report.component.scss
<https://github.com/GSA/srt-ui/pull/162/files#diff-3db145772e57557893b55808491f574df8edadde648fd9beb114364ae3343f29>
(548)
- *M*
src/app/solicitation/solicitation-report/solicitation-report.component.ts
<https://github.com/GSA/srt-ui/pull/162/files#diff-9662505a71d3c27dce208c2e4224e361ee75cab9b6a3d961d67972a5119b0d7f>
(2)
Patch Links:
- https://github.com/GSA/srt-ui/pull/162.patch
- https://github.com/GSA/srt-ui/pull/162.diff
—
Reply to this email directly, view it on GitHub
<#162>, or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AU5UIBCMMIUOJKF4QSZSQA32KZ2V7AVCNFSM6AAAAABVHO26O6VHI2DSMVQWIX3LMV43ASLTON2WKOZSG44TAMJQGU4DINQ>
.
You are receiving this because you are subscribed to this thread.Message
ID: ***@***.***>
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Seems like you added the header component changes in this PR as well. Also, I had a few comments I would like you to look at prior to approval.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Were the header files accidentally included in this push?
src/app/solicitation/solicitation-report/solicitation-report.component.html
Show resolved
Hide resolved
</li> | ||
<li class="usa-nav__primary-item" *ngIf="isGSAAdmin"> | ||
<a [routerLink]="['/admin']" class="usa-nav__link" [class.usa-current]="GetHash('admin')" | ||
(click)="menuClick('/admin')" [attr.tabindex]="isGSAAdmin ? 0 : -1">Administration</a> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please include back the menu_clicks since that is related to google analytics we are collecting.
border-bottom: none; | ||
} | ||
|
||
.grid-container-widescreen { | ||
max-width: 1400px; | ||
max-width: 1200px; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can't we just utilize 100% or utilize vh.
Overview
Hey Team! 👋
This PR addresses several changes to the Daily Report (formerly Solicitations) page, focusing on improving the layout, styling, and user experience in accordance with the UI team's suggestions. The changes include restructuring the main content area, refining the search and export functionality, and updating the table display for better readability and interaction. Importantly, we've leveraged the U.S. Web Design System (USWDS) wherever possible to ensure consistency with design standards and accessibility best practices. The primary exception to USWDS components is the PrimeNG table, which we've retained for its robust features like sorting and filtering.
Key Changes
Layout and Structure
main-container
div for better layout control.main-container
for improved visual presentation, using USWDS utilities where applicable.search-export-container
to house the search input, search button, and export link.Styling Enhancements
Functionality Improvements
Accessibility Considerations
Testing Notes
Please review and provide feedback on these enhancements. Thanks!