Skip to content

Refactor HTML and JavaScript so projects and projects-check pages can share the same files #4960

@roslynwythe

Description

@roslynwythe

Dependencies

Overview

We need to refactor the HTML and JavaScript for the Projects and Projects-Check pages, so that both pages share the same HTML and JavaScript files. The differences in filter options between the two pages will be implemented by adding conditional logic in JavaScript based on the current page URL.

Details

  1. The difference between the Projects page and the Projects-Check pages is that the Projects-Check page has only the Technologies, Languages, and Tools filter options, in order to enable testing.
  2. As time has passed and the Projects page has been developed, the JavaScript code in particular has diverged between the Projects and Projects-Check pages and some unintended differences have been observed in the Projects page.

Action Items

  • In the IDE, modify _pages/projects-check.html so that it includes current-projects.html instead of current-projects-check.html. As a result of this change, the projects-check page will reference the same HTML include and same JavaScript as the projects page.
  • Examine the differences in JavaScript between /assets/js/current-projects-check.js and /assets/js/current-projects.js. For each difference, determine if the difference is required to implement the distinct filter options required on the Projects-Check page.
    • If the difference is required, add conditional logic in the JavaScript to implement the desired behavior in the Projects Check page
    • If the difference is not required, do nothing
  • Confirm that the appearance and behavior of the projects-check page matches that of the projects page except for the filter selection
    • Confirm that if more than 8 categories exist in a filter section, only 8 are displayed but a "View All" link is displayed.
    • Confirm that as filters are applied, filter tags appear under the heading "Applied FIlters" and clicking the tags clears the filters.
    • Confirm that if more than 8 categores exist in both the Technology and Language (and Tools?) groups, it should be possible to view all the filters in both groups at once.

Resources/Instructions

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

Status

Done

Relationships

None yet

Development

No branches or pull requests

Issue actions