3
0
Fork 0
mirror of https://github.com/farmOS/farmOS.git synced 2024-02-23 11:37:38 +01:00
Commit graph

1035 commits

Author SHA1 Message Date
paul121
bf3f97d984 Add log_category exposed filter to farm_log views. 2021-04-21 14:26:25 -04:00
paul121
7358e4d64c Extend entity views data to configure the correct filter for all taxonomy_term reference fields. 2021-04-21 14:26:23 -04:00
paul121
eed6503455 Add bundle plugin for movement log type used in tests. 2021-04-21 08:21:02 -04:00
paul121
6642f2bc08 Add bundle plugins for asset types used in tests. 2021-04-21 08:21:02 -04:00
paul121
5136e378e5 Remove todo referencing issue #3197363.
This should have been listed above the next code block.
2021-04-21 08:21:02 -04:00
paul121
ec5156876f Update the map size when the map's field wrapper display state changes. 2021-04-21 08:21:02 -04:00
paul121
85e7449cb6 Render the intrinsic_geometry form field below is_fixed in forms. 2021-04-21 08:21:02 -04:00
paul121
014bea7e5c Hide the intrinsic_geometry field in asset forms if is_fixed is unchecked. 2021-04-21 08:21:01 -04:00
paul121
88a975d9cc Add test for group field visibility. 2021-04-21 07:03:58 -04:00
paul121
294aa639e4 Hide the group field in log forms if is_group_assignment is unchecked. 2021-04-21 07:03:58 -04:00
paul121
683019cd7a Render the is_group_assignment filter before the status filter. 2021-04-21 07:03:58 -04:00
paul121
c456697e89 Add is_group_assignment exposed filter to farm_log views. 2021-04-21 07:03:58 -04:00
paul121
e82ac54474 Allow access to the view label operation on bundle entity types. 2021-04-20 09:22:02 -07:00
paul121
f4c8a7116e Do not display the entity type field in entity forms. 2021-04-20 09:21:59 -07:00
paul121
7668715633 Add page view of asset children in the Children tab. 2021-04-19 13:34:00 -04:00
Michael Stenta
ef2b36790d Adjust plant and animal bundle field view display weights. 2021-04-19 13:25:55 -04:00
paul121
0042e53bc2 Add entity type field to entity view pages. 2021-04-19 13:16:16 -04:00
paul121
1828edfb91 Grant access farm_asset entity browser pages to all managed roles. 2021-04-19 13:06:40 -04:00
Michael Stenta
2e43c1a7f2 Remove old color config, logic, and schema. 2021-04-16 08:09:27 -04:00
Michael Stenta
709e8daa02 Refactor asset type and land/structure type layer color logic to use layer style definitions. 2021-04-16 07:47:25 -04:00
Michael Stenta
e569f74918 Provide a layer style loader service for loading styles based on conditions. 2021-04-16 07:46:59 -04:00
Michael Stenta
7f5050681f Create a simple LayerStyle config entity for creating map layer style definitions. 2021-04-16 07:39:13 -04:00
Michael Stenta
69d9d88714 Add a color property to structure types. 2021-04-14 08:57:21 -04:00
Michael Stenta
6a57e282bd Add a color property to land types. 2021-04-14 08:57:21 -04:00
Michael Stenta
48bd659273 Set map layer colors for all asset types. 2021-04-14 08:57:21 -04:00
Michael Stenta
98ffd94b5a Add a third-party setting for asset map layer color. 2021-04-14 08:57:21 -04:00
Michael Stenta
44f4767420 Fix caching of breadcrumbs. 2021-04-13 09:56:07 -04:00
Michael Stenta
595b6ff742 Translate breadcrumb links. 2021-04-13 09:53:45 -04:00
Michael Stenta
239467d123 Build breadcrumbs on asset/log/plan pages. 2021-04-09 07:20:21 -04:00
Michael Stenta
256deb62e6 Split asset layers into two groups: Assets and Location assets. 2021-04-08 19:34:03 -04:00
paul121
9d287f351c Test multiple allowed origins. 2021-04-08 19:05:36 -04:00
paul121
8734e3d276 Add CORS headers for allowed origins configured on consumers. 2021-04-08 19:05:36 -04:00
paul121
08857be054 Add an allowed_origins string field to consumer entities. 2021-04-08 19:05:36 -04:00
paul121
2a9084c1e2 Only add bundle fields to the consumer entity. 2021-04-08 17:10:06 -04:00
paul121
a972ee23c2 Move map buttons to the top when focused.
Prevents surrounding control buttons from covering up the :focus
box-shadow. A position is required.
2021-04-08 16:36:16 -04:00
paul121
0274820b86 Override the geocoder input to work with Gin :focus box-shadow. 2021-04-08 16:36:16 -04:00
paul121
b63be44b98 Alphabetize library definitions. 2021-04-08 16:36:16 -04:00
paul121
e7978e89e8 Set the text color of map control buttons to match the SVG path fill color. 2021-04-08 16:36:16 -04:00
paul121
2c5a38dc6f Issue #3207716 by paul121: Use BundleFieldDefinition for additional Consumer fields 2021-04-08 15:57:27 -04:00
Michael Stenta
2cfb5ba402 Remove popup dependency from asset_type_layers behavior. 2021-04-08 15:37:23 -04:00
Michael Stenta
930df73049 Revert "Add a setting to configure if the map popup behavior is enabled."
This reverts commit 19f8851543.
2021-04-08 15:37:23 -04:00
Michael Stenta
c7ddaab912 Add land/structure type layers to land/structure asset Views. 2021-04-08 15:37:23 -04:00
Michael Stenta
a27225e383 Ensure that farm_ui_map's hook_views_pre_render() runs first. 2021-04-08 15:37:23 -04:00
Michael Stenta
76b46403f3 Add support for array parameters in asset_type_layers.js. 2021-04-08 15:37:23 -04:00
Michael Stenta
5ee898f819 Add bundle-specific exposed filters to the farm_asset_geojson View. 2021-04-08 15:37:23 -04:00
Michael Stenta
82a77648c8 Create a helper function for adding bundle-specific field and filter formatters. 2021-04-08 15:37:23 -04:00
Michael Stenta
9481dd7207 Only add a single asset cluster layer to maps.
When there are multiple cluster layers the meaning of the
numbers becomes less discernible. Setting different cluster
icon colors may improve this, but a single layer is simple
for now. The exposed and contextual type filter allows
limiting the cluster counts by type if necessary.
2021-04-08 15:37:23 -04:00
Michael Stenta
b4b19147a9 Allow multiple asset type contextual filters in farm_asset_geojson View. 2021-04-08 15:37:23 -04:00
Michael Stenta
a415eb0714 Refactor bundle filtering logic to take exposed type filter into account. 2021-04-08 15:37:23 -04:00
Michael Stenta
4f8583593a Dynamically copy all exposed filters from farm_asset View to farm_asset_geojson Views.
This allows the map on /assets/% to be filtered with the same
exposed filters as the farm_asset View itself.
2021-04-08 15:37:23 -04:00
Michael Stenta
33c47849b8 Remove logic for adding separate land/structure type layers.
This needs to be refactored/moved to the land/structure modules.
2021-04-08 15:37:23 -04:00
Michael Stenta
ce2a6304c8 Remove "Other locations" layer from dashboard. 2021-04-08 15:37:23 -04:00
Michael Stenta
fe95745153 Remove farmOS-map version from farm_map.libraries.yml.
We don't need to keep this up-to-date alongside the composer.json version constraint.
2021-04-08 15:37:23 -04:00
Michael Stenta
c82536d4d0 Move asset_type_layers behavior to farm_ui_map. 2021-04-08 15:37:23 -04:00
Michael Stenta
2e4d0bef1d Move logic for disabling zoom when WKT is present to farm_ui_map. 2021-04-08 15:37:23 -04:00
Michael Stenta
83e6d3abfb Add "all locations" layers to default and geofield maps via farm_ui_map instead of default behaviors. 2021-04-08 15:37:23 -04:00
Michael Stenta
b58f4f8b1a Move dashboard map and block to farm_ui_map. 2021-04-08 14:59:39 -04:00
Michael Stenta
07b06b3a5f Move subscriber logic for adding dashboard map asset layers to farm_ui_map. 2021-04-08 11:24:55 -04:00
Michael Stenta
746e189664 Split map logic out of farm_ui_views to a new farm_ui_map module. 2021-04-08 11:24:55 -04:00
Michael Stenta
f57cebd68f Split Asset GeoJSON Views displays out to their own View provided by the farm_location module. 2021-04-08 11:24:55 -04:00
Michael Stenta
577f04fa0c Patch Geofield to add support for centroid WKT in LatLon formatter (Issue #3207078), and remove custom geofield_centroid formatter. 2021-04-08 11:24:55 -04:00
paul121
19f8851543 Add a setting to configure if the map popup behavior is enabled. 2021-04-08 11:24:55 -04:00
paul121
848f271882 Add the asset_type_layers behavior to the asset_list map config. 2021-04-08 11:24:55 -04:00
paul121
d2d42f3811 Add an "Other locations" layer to the dashboard map. 2021-04-08 11:24:55 -04:00
paul121
a51c58185a Add layers for location asset types to the dashboard map. 2021-04-08 11:24:55 -04:00
paul121
8b4e1eeb9f Add cache tag on the map type. 2021-04-08 11:24:55 -04:00
paul121
7487a782e0 Remove redundant div. 2021-04-08 11:24:55 -04:00
paul121
e066abfd49 Zoom to WKT if it exists else zoom to all locations vectors. 2021-04-08 11:24:55 -04:00
paul121
b5a56381b4 Use array_replace_recursive to allow overriding of values. 2021-04-08 11:24:55 -04:00
paul121
dd423d2208 Dynamically add asset layers to the dashboard map. 2021-04-08 11:24:55 -04:00
paul121
42d1e75535 Add helper function to get the map target ID. 2021-04-08 11:24:55 -04:00
paul121
2baa65eeba Display asset cluster layers in a separate layer group. 2021-04-08 11:24:55 -04:00
paul121
515352ef4e Create a geojson feed of asset centroids. Change paths to be assets/geojson/{geom_type}/{asset_type} 2021-04-08 11:24:55 -04:00
paul121
e6f3ec7ece Provide a centroid formatter to format geofield centroids as a WKT point. 2021-04-08 11:24:55 -04:00
paul121
0ad329e5fd Add an All locations layer to default and geofield maps. 2021-04-08 11:24:55 -04:00
paul121
1383434df9 Do not default to the Assets layer group, make this optional. 2021-04-08 11:24:55 -04:00
paul121
fb09715727 Change asset geojson path to /assets/geojson/type and default to all. 2021-04-08 11:24:55 -04:00
paul121
214d9e9c1f Recreate the exposed_filters array before creating each map layer. 2021-04-08 11:24:55 -04:00
paul121
191caffb52 Reverse layers array before adding to the map instance. 2021-04-08 11:24:55 -04:00
paul121
1178422f75 Create individual layers for land_type and structure_type assets. 2021-04-08 11:24:55 -04:00
paul121
bdfd2546c2 Add land_type and structure_type exposed filters to asset geojson display. 2021-04-08 11:24:55 -04:00
paul121
8cf638cd33 Allow the layer group to be specified. 2021-04-08 11:24:55 -04:00
paul121
325dec86a6 Render area assets on the dashboard map. 2021-04-08 11:24:55 -04:00
paul121
aa5e956717 Assemble geojson url client side. 2021-04-08 11:24:55 -04:00
paul121
ea235f2207 Render a map with asset geometries as an attachment before asset views. 2021-04-08 11:24:55 -04:00
paul121
7b17007e69 Create asset_list map type. 2021-04-08 11:24:55 -04:00
paul121
ced32098f6 Depend on farm_map. 2021-04-08 11:24:54 -04:00
paul121
5d1d7aa324 Provide an asset_type_layers map behavior. 2021-04-08 11:24:54 -04:00
paul121
90080daa90 Add geojson feed of asset geometry to the farm_assets view. 2021-04-08 11:24:54 -04:00
paul121
75ddc435b4 Add dependency on drupal/views_geojson to create views geojson feeds. 2021-04-08 11:24:54 -04:00
paul121
dc5dd3e2fa Include the computed asset geometry field in views. 2021-04-08 11:24:54 -04:00
paul121
bdc0a3bb00 Allow map types to define default behaviors. 2021-04-08 11:24:54 -04:00
Michael Stenta
50560e74bf Issue #3186746: Add views filter handlers for bundle fields defined in views data. 2021-04-08 11:24:54 -04:00
Michael Stenta
46f4545fee Move Quantity field after Assets and Locations in Log View. 2021-04-06 08:31:25 -04:00
paul121
deb0dc13c4 Issue #3186746: Add views field handlers for bundle fields defined in views data. 2021-04-06 08:31:02 -04:00
Paul Weidner
7556535271 Fix farm_structure_types module info. 2021-04-06 08:07:26 -04:00
Michael Stenta
ee080f2e00 Fix "Wrong class casing" warning in PHPStorm. 2021-04-05 10:59:04 -04:00
paul121
bb02b4259b Use array_replace_recursive to prevent merging duplicate values into arrays. 2021-04-01 11:22:28 -04:00
Michael Stenta
3cf61d4c88 Remove LegacySensorApiInterface and call apiHandleRequest() directly. 2021-04-01 11:22:28 -04:00
Michael Stenta
2a12fb4e3d DataStreamPrivateKeyAccess trait is not necessary in LegacyListener because it is in the parent class. 2021-04-01 11:22:28 -04:00