massgov / massgov/feature-requests

Add "suppress search on location listing page" on organization and service page

Open
#99 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Location listing
Dominant language
No language data
Stars
12
Forks
8
PR merge metrics
No merged PRs in 30d

Description

User story
As a user of the Mass.gov website, I do not want to do a search for a a state location and be sent to the wrong one, since the right one to go to is sometimes based on jurisdiction and not distance.

As an author, I want to not show the search feature of a specific location page so that users don't get misled.

Business problem
Creating a search for location pages that searches by jurisdiction instead of distance seems to be a significant effort. But a location listing that hid the search bar so a user would instead have to scroll the list for the location in their town would cut down on the chance that they would go to the wrong one.

Done when:

A checkbox field is added to service and organization page types named "Suppress search from location listing page" with help text "If location is selected by jurisdiction and not by proximity, you may check this box to suppress search on the location listing page." Field should be on the map tab as the bottom field. Default should be unchecked.
When a location listing page loads when clicked from an organization page or a service page, if the box above is check on the org/service page then the location page will not display the shaded search box. It will be the equivalent of this style: .ma_location-listing_filters {display: none;}

Reference
JIRA DP-7598

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by locating the service and organization page types, their map-tab fields, and the location listing filter represented by .ma_location-listing_filters. Done means the new unchecked checkbox and help text are available on both page types, and a location listing opened from either page hides its shaded search box when the checkbox is selected.

Written by the indexing model from the issue text.

Assessment

Domain
frontend
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.