Skip to content

Commit

Permalink
UHF-9659: Emphasize the Views module with capitalization when talking…
Browse files Browse the repository at this point in the history
… about it
  • Loading branch information
teroelonen committed Jul 22, 2024
1 parent a748770 commit 724d0b5
Showing 1 changed file with 14 additions and 14 deletions.
28 changes: 14 additions & 14 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ The KASKO instance has multiple React searches and features provided by the Grou

This search paragraph lists TPR units that are tagged with the `unit_type` vocabulary term _After-school activity_.

- The filter search is a _view_ (`after_school_activity_search`) with exposed filters. The view configuration can be
- The filter search is a _View_ (`after_school_activity_search`) with exposed filters. The View configuration can be
found in [here](https://github.com/City-of-Helsinki/drupal-helfi-kasvatus-koulutus/blob/dev/conf/cmi/views.view.after_school_activity_search.yml).
- No React front.
- The paragraph has editable title and description fields
Expand All @@ -63,18 +63,18 @@ found in [here](https://github.com/City-of-Helsinki/drupal-helfi-kasvatus-koulut

This search paragraph lists TPR units that are tagged with the `unit_type` vocabulary term _Daycare_.

- The filter search is a _view_ (`daycare_search`) with exposed filters. The view configuration can be found in [here](https://github.com/City-of-Helsinki/drupal-helfi-kasvatus-koulutus/blob/dev/conf/cmi/views.view.daycare_search.yml).
- The filter search is a _View_ (`daycare_search`) with exposed filters. The View configuration can be found in [here](https://github.com/City-of-Helsinki/drupal-helfi-kasvatus-koulutus/blob/dev/conf/cmi/views.view.daycare_search.yml).
- No React front.
- The paragraph has editable title and description fields
- Can be added to landing pages and the lower content region of standard pages.

#### Group news (group_news)

The _Group news_ paragraph lists latest news of a selected group. The block uses a view called `latest_group_news` that
has two displays for different amount of news listed.
The _Group news_ paragraph lists latest news of a selected group. The block uses a _View_ called `latest_group_news`
that has two displays for different amount of news listed.

The number of news items to be displayed can be selected from the paragraph field `field_group_news_number_of_news`.
This selection determines the view display to be used. The related logic can be found in the `hdbt_subtheme` under the
This selection determines the _View_ display to be used. The related logic can be found in the `hdbt_subtheme` under the
group news paragraph template [here](https://github.com/City-of-Helsinki/drupal-helfi-kasvatus-koulutus/blob/dev/public/themes/custom/hdbt_subtheme/templates/paragraph/paragraph--group-news.html.twig).

Additionally, the paragraph has a field called `field_group_news_group_id` that is used to identify the group whose
Expand All @@ -87,7 +87,7 @@ You can add the paragraph to landing pages and the higher and lower content regi

The _Group news archive_ is simple paged list of all news the selected group has. The paragraph includes only one field
called `field_group_news_group_id` that is used to identify the group whose news should be displayed. The list is
a view called `group_news_archive` and its configuration can be found [here](https://github.com/City-of-Helsinki/drupal-helfi-kasvatus-koulutus/blob/dev/conf/cmi/views.view.group_news_archive.yml).
a _View_ called `group_news_archive` and its configuration can be found [here](https://github.com/City-of-Helsinki/drupal-helfi-kasvatus-koulutus/blob/dev/conf/cmi/views.view.group_news_archive.yml).
You can add the paragraph to landing pages.

#### High school search (high_school_search)
Expand All @@ -96,15 +96,15 @@ The _High school search_ lists high schools, also referred to as upper secondary
was one of the first implementations of the unit searches, and it has a slightly different structure compared to the
[After-school activity search](#after-school-search), [Daycare search](#daycare-search), and [Playground search](#playground-search).

The units are selected manually in the paragraph field `field_hs_search_units`, and the view filters the TPR units to
The units are selected manually in the paragraph field `field_hs_search_units`, and the _View_ filters the TPR units to
display based on the field's content. It is also possible to change the form's submit button text by writing the desired
text in the `field_hs_search_meta_button` field. The results are displayed in two tabs, allowing users to either list
schools or display them on a map.

The exposed form has additional functionality provided by `high-school-search.js`, which makes it possible to select a
value only for the _Emphasis_ or _Mission_ drop-down. This helps avoid searches that yield no results.

- The filter search is a _view_ (`high_school_search`) with exposed filters. The view configuration can be found in
- The filter search is a _View_ (`high_school_search`) with exposed filters. The View configuration can be found in
[here](https://github.com/City-of-Helsinki/drupal-helfi-kasvatus-koulutus/blob/dev/conf/cmi/views.view.high_school_search.yml).
- The results can be displayed as a list or on a map.
- No React front.
Expand All @@ -116,7 +116,7 @@ value only for the _Emphasis_ or _Mission_ drop-down. This helps avoid searches

This search paragraph lists TPR units that are tagged with the `unit_type` vocabulary term _Playground_.

- The filter search is a _view_ (`playground_search`) with exposed filters.
- The filter search is a _View_ (`playground_search`) with exposed filters.
- No React front.
- The paragraph has editable title and description fields
- Can be added to landing pages and lower content regions of standard pages.
Expand All @@ -127,12 +127,12 @@ The _School search_ paragraph provides a tabbed interface that allows users to e
entering a street address or find any school by filtering through the school's information. The search results are
displayed in a tabbed format, offering both a list view and a map view.

This search functionality is built with React and utilizes a views listing (`comprehensive_school_search`) as a
This search functionality is built with React and utilizes a _Views_ listing (`comprehensive_school_search`) as a
fallback when JavaScript is disabled. All React-based searches are located in the `hdbt` theme, where most of the
related logic is implemented.

- The fallback listing is a _view_ called (`comprehensive_school_search`) and it doesn't have any filters. The fallback
view configuration can be found in [here](https://github.com/City-of-Helsinki/drupal-helfi-kasvatus-koulutus/blob/dev/conf/cmi/views.view.comprehensive_school_search.yml).
- The fallback listing is a _View_ called (`comprehensive_school_search`) and it doesn't have any filters. The fallback
View configuration can be found in [here](https://github.com/City-of-Helsinki/drupal-helfi-kasvatus-koulutus/blob/dev/conf/cmi/views.view.comprehensive_school_search.yml).
- The search has a React front and the code can be found [here](https://github.com/City-of-Helsinki/drupal-hdbt/tree/main/src/js/react/apps/school-search).
- The paragraph has editable title and description fields.
- Can be added to landing pages.
Expand All @@ -142,11 +142,11 @@ view configuration can be found in [here](https://github.com/City-of-Helsinki/dr
The _Vocational school search_ was created based on the [High school search](#high-school-search-high_school_search), so it has
similarities in the implementation details.

The units are selected manually in the paragraph field `field_vs_search_units`, and the view filters the TPR units to
The units are selected manually in the paragraph field `field_vs_search_units`, and the _View_ filters the TPR units to
display based on the field's content. It is also possible to change the form's submit button text by writing the desired
text in the `field_vs_search_meta_button` field.

- The filter search is a _view_ (`vocational_school_search`) with exposed filter. The view configuration can be found in
- The filter search is a _View_ (`vocational_school_search`) with exposed filter. The View configuration can be found in
[here](https://github.com/City-of-Helsinki/drupal-helfi-kasvatus-koulutus/blob/dev/conf/cmi/views.view.vocational_school_search.yml).
- No React front.
- The paragraph has editable title, description, units and search button fields.
Expand Down

0 comments on commit 724d0b5

Please sign in to comment.