-
Notifications
You must be signed in to change notification settings - Fork 74
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
Add new service fields exposed by the API #667
Comments
Perhaps hide them by adding the |
As part of this update, just wanted to make sure we replace |
- In order to organize the location details spec better, this commit moves the location services tests to their own spec file. - Orders service tests to fit the order shown in the detail view (with the exception of the hours, which will be handled separately in #671) - Updates service_areas service partial name to be in the format field name prefixed by `service_`, which follows the format of the other partials. The file was named `service_areas`, which implies the field is `areas`, when in fact, it is `service_areas`. - Removes optional requirement from `how_to_apply` service field. - Edits `name` and adds `alternate_name` service field and tests. Removes optional check for the required `name` field. - Adds test for service description field and updates specificity of description test. - Makes location description test check the description selector contents as opposed to the whole page, since the checked content “Lorem Ipsum” appears in the service description fields as well. - Adds `email` service field and test. - Renames `urls` service field to `website`, since a service now only has one website. Also adds a test. - Adds a container and styles for the parent element around `website` and `email` service fields. -Adds `accepted_payments` service field, locale, and test. -Adds `required_documents` service field, locale, and test. - Adds `status` service field and test. - Renames name partial container and CSS from `title` to `name-box`.
- In order to organize the location details spec better, this commit moves the location services tests to their own spec file. - Orders service tests to fit the order shown in the detail view (with the exception of the hours, which will be handled separately in #671) - Updates service_areas service partial name to be in the format field name prefixed by `service_`, which follows the format of the other partials. The file was named `service_areas`, which implies the field is `areas`, when in fact, it is `service_areas`. - Removes optional requirement from `how_to_apply` service field. - Edits `name` and adds `alternate_name` service field and tests. Removes optional check for the required `name` field. - Adds test for service description field and updates specificity of description test. - Makes location description test check the description selector contents as opposed to the whole page, since the checked content “Lorem Ipsum” appears in the service description fields as well. - Adds `email` service field and test. - Renames `urls` service field to `website`, since a service now only has one website. Also adds a test. - Adds a container and styles for the parent element around `website` and `email` service fields. -Adds `accepted_payments` service field, locale, and test. -Adds `required_documents` service field, locale, and test. - Adds `status` service field and test. - Renames name partial container and CSS from `title` to `name-box`.
Now that the API has been updated with the new Service fields, most should probably be exposed on the Location details page. Read the docs for the full list of Service fields.
Also, note that there is now a required
status
field for Services that can either beactive
,inactive
, ordefunct
. This means that it should be checked so that onlyactive
services are displayed. Alternatively, inactive or defunct services could have special styling applied to them to indicate they are not active, but I think it's less confusing to just not show them at all.In addition, because it's possible for all of a Location's services to be inactive or defunct, that Location should probably not appear in search results, and if it were to be visited directly, a message should be shown that this Location is now inactive. See this API commit for more details: codeforamerica/ohana-api@3f0357f
The text was updated successfully, but these errors were encountered: