Paul Weidner
8510e71be1
Standardize minor code style issues in FarmTaxonomyTermEntityViewsAccessCheck constructor.
2022-11-12 11:00:54 -05:00
Paul Weidner
d08c3e2b09
Simplify derivative task link ids.
2022-11-12 11:00:54 -05:00
Paul Weidner
63a63935a3
Consolidate asset and log tab generation to deriver class.
2022-11-12 11:00:54 -05:00
Paul Weidner
7c55dfe8c1
Translate "All" text in default sub-tab.
2022-11-12 11:00:54 -05:00
Paul Weidner
5410d33acd
Add comments to each code block.
2022-11-12 11:00:54 -05:00
Paul Weidner
a9d1ae32a9
Remove unnecessary id from taxonomy term views task links.
2022-11-12 11:00:54 -05:00
Paul Weidner
c2290744a9
Update core map behaviors to properly depend on core/drupalSettings. #578
2022-09-27 14:21:50 -07:00
Michael Stenta
c0cedaf884
Set reduce_duplicates: true in Views exposed filters for multivalue fields #571
2022-09-27 14:49:04 -04:00
Paul Weidner
8c766f3f8e
Add log asset filter to all displays of farm_quantity view #569
2022-09-27 14:45:48 -04:00
Michael Stenta
f1dee545f6
Put owner in the right column of asset/log pages.
2022-09-27 14:15:27 -04:00
Michael Stenta
12c17b5c03
Change Log "Assigned to" field to "Owner" and make other strings/labels consistent.
2022-09-27 14:15:27 -04:00
Jotham Gates
f7b1edfe7f
Copying asset owner changes into clean branch
2022-09-27 14:15:27 -04:00
Michael Stenta
e8250a3987
Issue #3309198 : Allow users to override Gin theme settings
2022-09-17 09:39:56 -04:00
Michael Stenta
f3e9805871
Update farm_asset and farm_group_members Views for Drupal 9.4.
...
This enables lazy-loading of images in the Views.
2022-09-17 09:38:28 -04:00
Michael Stenta
ca1d19d80f
Fix undefined variable $exposed_filters.
2022-09-13 10:23:48 -04:00
Michael Stenta
9e829fc374
Use @phpstan-ignore-next-line on getAggregateQuery() lines to fix "Missing explicit access check on entity query" errors.
...
This is a temporary workaround pending resolution of this upstream issue:
https://github.com/mglaman/phpstan-drupal/issues/474
2022-09-13 10:23:48 -04:00
Michael Stenta
2a9d057f09
Fix "Variable might not be defined" PHPStan errors.
2022-09-13 10:23:48 -04:00
Michael Stenta
ff60b3164d
Fix \Drupal calls should be avoided in classes, use dependency injection instead.
2022-09-13 10:12:45 -04:00
Michael Stenta
d2a7d50029
Fix Interface Drupal\farm_map\LayerStyleLoaderInterface referenced with incorrect case: Drupal\farm_map\layerStyleLoaderInterface.
2022-09-12 19:46:38 -04:00
Michael Stenta
597e984fb4
Fix "always exists and is not falsy" PHPStan errors.
2022-09-12 19:46:27 -04:00
Michael Stenta
a4e8675b22
Fix Farm inventory view does not depend on farm_inventory module #559
2022-08-29 09:43:54 -04:00
Paul Weidner
44087ecd98
Implement uninstall hook to remove collapsible_filter display extender.
2022-08-28 19:10:13 -07:00
Paul Weidner
78c36b4681
Add post_update hook to enable collapsible_filter on existing sites.
2022-08-26 14:35:13 -07:00
Paul Weidner
f8ea3fe30f
Enable collapsible filter on farm views that have many exposed filters.
2022-08-26 14:23:59 -07:00
Paul Weidner
a3e27d34cc
Re-export farm_inventory views config (no functional changes).
2022-08-26 14:22:21 -07:00
Paul Weidner
f9eb9d6505
Enable the collapsible_filter display extender by default.
2022-08-26 14:21:39 -07:00
Paul Weidner
6d03d159ed
Add views display extender to configure collapsible filter.
2022-08-26 14:21:21 -07:00
Paul Weidner
cbd9875d66
Render farm entity views in collapsible details element.
2022-08-26 13:15:30 -07:00
Michael Stenta
29106edda9
Re-export farm_asset and farm_log Views config (no functional changes).
2022-08-26 08:29:06 -04:00
Michael Stenta
a1a015cc58
Remove geofield_widget map type.
2022-06-18 07:52:39 -04:00
Paul Weidner
029853883a
Only show active plans by default #529
2022-05-06 09:21:36 -04:00
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
paul121
8bde758565
Use a small dropbutton in the map popup.
2021-12-08 13:06:36 -05:00
paul121
6a9714f81e
Issue #3202226 : Show asset action links in asset details.
2021-12-08 13:06:36 -05:00
paul121
4e5fcd2747
Improve styling of the asset map_popup view mode within the iframe.
2021-12-08 13:06:36 -05:00
paul121
07a722fb48
Add styling for the map popup iframe.
2021-12-08 13:06:36 -05:00
paul121
6a99ec7747
Render the asset map_popup view mode in an iframe.
2021-12-08 13:06:36 -05:00
paul121
cef3033d9b
Implement html and page theme hooks for the asset map_popup view mode.
2021-12-08 13:06:36 -05:00
paul121
ddbaf1f7a5
Use $.when.apply instead of spread operator.
2021-12-08 10:15:05 -05:00
paul121
3ad1651d71
Wait for nested request within the success callback.
2021-12-08 10:15:05 -05:00
paul121
38292ff3b2
Refresh the location hierarchy after saving.
2021-12-08 10:15:05 -05:00
Paul Weidner
5ba4770ca0
Issue #3252348 : Bundle path arguments do not work in sqlite
2021-12-02 11:38:04 -08:00
Paul Weidner
1d8953a607
Use the farm_people entity_reference display for the farm_log assigned to exposed filter options.
2021-12-01 12:14:55 -05:00
Paul Weidner
203efa0938
Create a farm_people entity_reference display that excludes the admin user.
2021-12-01 12:14:54 -05:00
Paul Weidner
1422e7b188
Add assigned to filter to log views.
2021-12-01 12:14:54 -05:00
Michael Stenta
4a8fddd5af
Dynamically add the "Quick forms" index menu item only if quick forms exist.
2021-10-27 15:22:34 -04:00
Michael Stenta
c407ff70ac
Move farm.quick menu link under farm.base and style the toolbar icon.
2021-10-27 13:45:18 -04:00
Michael Stenta
22f7438447
Remove flags that don't apply from Views exposed filters.
2021-10-18 14:55:11 -04:00
Michael Stenta
a3c03fdcdf
Abstract the logic for getting the bundle from a "By Type" display's arguments.
2021-10-18 14:55:11 -04:00
Michael Stenta
840307e36d
Remove unnecessary remember_roles from Views config.
2021-10-04 19:21:00 -04:00
paul121
e6b76a7446
Issue #3240330 by paul121: Computed bundle fields break page_type views
...
Default to the entity type's base table if the table mapping does not find a table for the bundle field.
2021-10-04 16:28:29 -04:00