Commit Graph

105 Commits

Author SHA1 Message Date
Paul Weidner 79822dc7ba Re-export farm_plan Views config per https://www.drupal.org/node/3230199 (no changes). 2022-05-06 09:20:36 -04:00
Paul Weidner 3bbad9bb36
Remove GinSidebarOpen setting. 2022-05-05 11:31:11 -07:00
Paul Weidner 305e8f76b7 Update toolbar logo spacing for gin beta #527 2022-04-22 14:38:43 -04:00
Symbioquine a760005c7c Link from entities to their referenced terms and show entity views on taxonomy terms #458
**Why?** Make it possible for novice users to find data and explore connections
between assets/logs without needing to totally grok the farmOS data model first.

i.e.

* Navigate from a plant asset to a list of all the seed/plant assets with the same crop/variety
* Navigate from a plant asset to a list of all the seed/plant assets from the same season
* Navigate from a log in the compost category to a list of all the logs in the compost category
* Navigate from a material asset to a list of all the materials with the same material type
2022-04-13 06:17:56 -07:00
Michael Stenta 94d766604d Replace deprecated drupal_get_path() with \Drupal::service('extension.list.module')->getPath(). 2022-04-07 19:28:26 -04:00
Michael Stenta af8d34a2fb Add an update hook to update Gin logo settings. 2022-04-07 18:03:09 -04:00
Paul Weidner b1a5fc20be Remove the body top padding in the map popup. 2022-04-07 16:25:04 -04:00
Paul Weidner 5c9858f5b9 Update to new gin logo settings schema. 2022-04-07 16:25:04 -04:00
Paul Weidner e9307ea3f7 Include list_string, timestamp and boolean bundle fields in views #516 2022-03-23 21:00:48 -04:00
Paul Weidner 8a562d673e Do not add views handlers for unsupported field types #512 2022-03-21 19:49:21 -04:00
Paul Weidner 6cb3959c9c Add case for string fields. 2022-03-21 19:48:57 -04:00
Michael Stenta 15c2133a57 Merge farm_flag_allowed_values() into farm_flag_options(). Return an array of flag IDs+labels instead of Flag entities, for consistency with other *_options() functions. 2022-02-28 15:32:32 -05:00
Paul Weidner 0e5ec48662 Use farm_flag_allowed_values in farm_ui_views_form_views_exposed_form_alter. 2022-02-28 14:20:38 -05:00
Michael Stenta 426ef150e8 Revert "Add JS to remove IDs from entity autocomplete form elements." Fixes #502
This reverts commit 3365fc5b23.
2022-02-10 10:53:11 -05:00
Michael Stenta 6cca1b15af Do not use JS nullish coalescing operators. Fixes #501 2022-02-07 15:06:12 -05:00
Michael Stenta 2e914bb66f Issue #3262752: Record type menu items lose translations 2022-02-06 12:55:57 -05:00
Michael Stenta 4cdc881743 Add type-specific fields and filters to quantity CSV export display. 2022-01-26 12:11:57 -05:00
Michael Stenta 7b65b7d8c0 Only show "Export CSV" link on "All" and "By type" quantity displays. 2022-01-26 12:10:06 -05:00
Michael Stenta c637eae02b Display all items in farm_quantity View CSV export display. 2022-01-26 12:06:56 -05:00
Michael Stenta 1bc06a0eb2 Re-export farm_quantity View config per https://www.drupal.org/node/3230199 (no changes). 2022-01-26 12:05:40 -05:00
Michael Stenta 9766833649 Add enforced module dependencies to farm_people and farm_inventory Views. 2022-01-19 15:10:21 -05:00
Michael Stenta 39ac7b9470 Add asset/log type to exposed filters so that "Export CSV" link filters by type. 2022-01-19 12:51:55 -05:00
Michael Stenta bcef32f2ce Add tests of "Export CSV" links. 2022-01-19 12:51:55 -05:00
Michael Stenta a5394f2038 Add type-specific fields and filters to asset/log CSV export displays. 2022-01-19 12:51:55 -05:00
Michael Stenta cba7601e56 Add general tests of the farm_ui_views module. 2022-01-19 12:51:55 -05:00
Michael Stenta b54d85d0ad Only show "Export CSV" link on "All" and "By type" asset/log displays. 2022-01-19 12:51:55 -05:00
Michael Stenta c4d439c204 Re-export farm_asset and farm_log Views config per https://www.drupal.org/node/3230199 (no changes). 2022-01-19 12:51:55 -05:00
Michael Stenta 3365fc5b23 Add JS to remove IDs from entity autocomplete form elements. 2022-01-17 07:42:00 -05:00
Michael Stenta 95fe93572d Sort locations by name, using natural sort algorithm. 2022-01-14 14:50:46 -05:00
Michael Stenta 7508c8d4f8 Disable default field wrapper elements in entity_reference Views displays.
Before this, when using these Views in entity_autocomplete form
widgets, the form field content ends up with <span> tags wrapping
the entity label.
2022-01-14 11:05:51 -05:00
Michael Stenta fe0bc23f85 Re-export Views config per https://www.drupal.org/node/3230199 (no changes). 2022-01-14 11:05:51 -05:00
Michael Stenta fd8cbe902e Use getCollectionLabel() for Assets and Logs labels in metrics block. 2022-01-11 09:07:11 -05:00
Michael Stenta 02e6913cfe Translate "Assets (active)" and "Logs" in dashboard metrics block. 2022-01-11 09:07:11 -05:00
Michael Stenta b0debe0289 Do not include archived assets in metrics count. 2022-01-11 09:07:11 -05:00
Michael Stenta 8916763b02 The farm_ui_action module depends on farm_log because it prepopulates assets. 2022-01-11 09:06:50 -05:00
Michael Stenta 45a51daf70 Use getLabel() for "Add [entity_type]" label instead of Unicode::ucfirst($type). 2022-01-11 08:57:15 -05:00
Jan Sonntag 3b1c98f136 Remove the conversion to lowercase. This shouldn't be done in code, but rather in translation. 2022-01-11 08:57:15 -05:00
Jan Sonntag e7a3178a46 Fix: "Add [entity-type]" button on the dashboard was untranslatable 2022-01-11 08:57:15 -05:00
Michael Stenta be5d41916e Prepare for the next release of Gin, which changes the local storage variable name. 2022-01-05 12:18:55 -05:00
Michael Stenta 3baca17f1b Open the Gin toolbar by default 2022-01-05 12:18:47 -05:00
Michael Stenta 5260df0b70 Fix asset_type_layers map behavior when farmOS is installed in a subdirectory.
The URL() constructor's optional second `base` parameter only
gets used if the first `url` parameter is a relative path.

https://developer.mozilla.org/en-US/docs/Web/API/URL#usage_notes
2021-12-23 06:27:45 -05:00
Michael Stenta 8e19bf0a8e Fix "All locations" link when farmOS is installed in a subdirectory. 2021-12-22 08:33:18 -05:00
Michael Stenta 91c61c6f40 Add comments to JavaScript to make it more readable. 2021-12-08 13:52:28 -05:00
Michael Stenta 662f7801e0 Perform location hierarchy changes in form submit instead of AJAX. 2021-12-08 13:52:28 -05:00
Michael Stenta 3fd2f9c893 Convert location hierarchy controller to a form. 2021-12-08 13:52:28 -05:00
Michael Stenta bc10ba32c8 Remove spinner from location drag and drop save button.
This is just a separate commit to keep the next one cleaner.
2021-12-08 13:16:00 -05:00
Paul Weidner 6984812ac4 Make dropbutton items align to the left. 2021-12-08 13:06:36 -05:00
paul121 fdf5097bc3 Increase size of asset map popup for local actions. 2021-12-08 13:06:36 -05:00
paul121 76d68e01cf Create local action to view assets and view logs in the asset map popup. 2021-12-08 13:06:36 -05:00
paul121 71e8d3ed0e Sort local actions by their weight property. 2021-12-08 13:06:36 -05:00