Skip to content

Commit

Permalink
Resolve issue with dropdown filters
Browse files Browse the repository at this point in the history
  • Loading branch information
bmarchena committed Aug 3, 2023
1 parent 4b4dca4 commit f3ca807
Show file tree
Hide file tree
Showing 4 changed files with 610 additions and 231 deletions.
11 changes: 0 additions & 11 deletions client/app/app.js
Original file line number Diff line number Diff line change
@@ -1,19 +1,8 @@
import Application from '@ember/application';
import Resolver from 'ember-resolver';
import loadInitializers from 'ember-load-initializers';
import Model from '@ember-data/model';
import config from './config/environment';

const ALLOWED_MISSING_MODEL_KEYS = ['nodeType', 'size', 'length', 'setUnknownProperty', 'didCommit', 'then', 'willMergeMixin', 'concatenatedProperties', 'mergedProperties', 'isQueryParams'];

Model.reopen({
unknownProperty(key) {
if (ALLOWED_MISSING_MODEL_KEYS.includes(key)) return;

throw new Error(`Unexpected access of ${key} on ${this}`);
},
});

export default class App extends Application {
modulePrefix = config.modulePrefix

Expand Down
3 changes: 3 additions & 0 deletions client/app/templates/show-geography.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -271,6 +271,7 @@
placeholder="Select some names..."
searchField='searchField'
onChange=(action section.delegate-mutation (action 'replaceProperty' 'community-districts'))
renderInPlace=true
as |district|
}}
{{district.boro}} {{district.num}}
Expand All @@ -294,6 +295,7 @@
placeholder="Select some actions..."
searchField='searchField'
onChange=(action section.delegate-mutation (action 'replaceProperty' 'action-types'))
renderInPlace=true
as |action|
}}
{{action.code}}
Expand Down Expand Up @@ -323,6 +325,7 @@
placeholder="Select some zoning resolutions..."
searchField='name'
onChange=(action section.delegate-mutation (action 'replaceProperty' 'zoning-resolutions'))
renderInPlace=true
as |zoningResolution|
}}
{{zoningResolution.name}}
Expand Down
11 changes: 7 additions & 4 deletions client/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@
"babel-eslint": "^10.1.0",
"broccoli-asset-rev": "^3.0.0",
"broccoli-clean-css": "~2.0.1",
"ember-auto-import": "^1.12.0",
"ember-auto-import": "^2.0.0",
"ember-changeset-validations": "^2.1.0",
"ember-clean-project": "1.0.1",
"ember-cli": "~3.28.6",
Expand Down Expand Up @@ -103,7 +103,7 @@
"eslint-plugin-node": "^11.1.0",
"eslint-plugin-prettier": "^3.4.1",
"eslint-plugin-qunit": "^6.2.0",
"foundation-sites": "^6.3.1",
"foundation-sites": "^6.7.5",
"husky": "^6.0.0",
"lint-staged": ">=10",
"loader.js": "^4.7.0",
Expand All @@ -114,6 +114,7 @@
"prettier": "^2.5.1",
"qunit": "^2.17.2",
"tooltipster": "4.2.6",
"webpack": "^5.75.0",
"workerpool": "2.3.4"
},
"engines": {
Expand All @@ -123,8 +124,8 @@
"edition": "octane"
},
"dependencies": {
"@babel/core": "^7.0.0",
"@babel/plugin-transform-block-scoping": "^7.12.1",
"@ember/jquery": "0.6.0",
"@turf/bbox": "^6.0.1",
"@turf/boolean-point-in-polygon": "6.0.1",
"@turf/buffer": "^5.1.5",
Expand All @@ -139,7 +140,9 @@
"underscore": "^1.9.1"
},
"resolutions": {
"ember-cli-babel": "^7.26.10"
"ember-cli-babel": "7.26.11",
"ember-fetch": "8.1.2",
"ember-basic-dropdown": "7.0.0"
},
"lint-staged": {
"*.js": "eslint --cache --fix"
Expand Down
Loading

0 comments on commit f3ca807

Please sign in to comment.