g1 issueshttps://code.gramener.com/cto/g1/-/issues2020-06-22T08:16:39Zhttps://code.gramener.com/cto/g1/-/issues/129g1.urlfilter does not work for checkboxes2020-06-22T08:16:39ZTejeshg1.urlfilter does not work for checkboxes```html
<li class="state_dropdown" filter-name="state_level" data-val="Odisha">
<label class="custom-control custom-checkbox h5 mb-0 text-nowrap cursor-pointer">
<input type="checkbox" class="custom-control-input urlfilter" d...```html
<li class="state_dropdown" filter-name="state_level" data-val="Odisha">
<label class="custom-control custom-checkbox h5 mb-0 text-nowrap cursor-pointer">
<input type="checkbox" class="custom-control-input urlfilter" data-mode="toggle" data-target="#" checked>
<span class="custom-control-label"></span>
<span class="custom-control-description sm2">Odisha</span>
</label>
</li>
```
is expected to update url and also, toggle the state of checkbox. It does neither.
g1.urlfilter's `e.preventDefault` intrudes bootstrap checkbox events.
Possible solutions:
Apply preventDefault only for anchor tags.
```js
if(e.target.tagName.toLowerCase() === 'a') {
e.preventDefault()
}
```
raised by @naveen.manukonda1.52TejeshTejesh2019-07-31https://code.gramener.com/cto/g1/-/issues/112Highlight/Log name mismatches for data and map files2019-01-14T11:28:09ZBhanu Kbhanu.kamapantula@gramener.comHighlight/Log name mismatches for data and map files### Summary
Highlighting mismatches in data and map files. In the below map, the name mismatches (J&K and Telangana) are silently ignored and not notified for the user
![map_screenshot__4_.svg](/uploads/de47ae8bef948e9b65ef7eab7facb21b...### Summary
Highlighting mismatches in data and map files. In the below map, the name mismatches (J&K and Telangana) are silently ignored and not notified for the user
![map_screenshot__4_.svg](/uploads/de47ae8bef948e9b65ef7eab7facb21b/map_screenshot__4_.svg)Bharat Rbharath.r@gramener.comBharat Rbharath.r@gramener.comhttps://code.gramener.com/cto/g1/-/issues/8Implement $().highlight()2018-02-03T16:25:40ZS AnandImplement $().highlight()See README.md on 8fc265d for specsSee README.md on 8fc265d for specshttps://code.gramener.com/cto/g1/-/issues/125Implement a FormHandler form editor2019-02-07T10:42:47ZS AnandImplement a FormHandler form editorAllow users to design a form that updates a single row. Use this to
- edit rows
- as a modal, a separate section, or as an iframe
- rapidly flip between rows using submit / keyboard navigation
- learn from data already typed to ease the...Allow users to design a form that updates a single row. Use this to
- edit rows
- as a modal, a separate section, or as an iframe
- rapidly flip between rows using submit / keyboard navigation
- learn from data already typed to ease the process of filling the form
- support automated columns (e.g. updated time, editor)https://code.gramener.com/cto/g1/-/issues/16Implement a FormHandler matrix - Spec Creation2019-03-05T10:35:21ZS AnandImplement a FormHandler matrix - Spec CreationFor scenarios like:
- https://learn.gramener.com/codogram/#contribution/
- https://learn.gramener.com/groups#matrix
Accept a sparse node-link structure.For scenarios like:
- https://learn.gramener.com/codogram/#contribution/
- https://learn.gramener.com/groups#matrix
Accept a sparse node-link structure.https://code.gramener.com/cto/g1/-/issues/13Implement a FormHandler network chart2018-07-16T11:28:56ZS AnandImplement a FormHandler network charthttps://code.gramener.com/cto/g1/-/issues/12Implement a FormHandler Sankey2018-07-16T11:29:06ZS AnandImplement a FormHandler Sankeyhttps://code.gramener.com/cto/g1/-/issues/11Implement a FormHandler sunburst2018-07-16T11:29:11ZS AnandImplement a FormHandler sunbursthttps://code.gramener.com/cto/g1/-/issues/78Implement a formhandler Tree View2018-12-19T16:08:43ZTejeshImplement a formhandler Tree ViewReferences:
https://docs.webix.com/desktop__treetable.html
https://frappe.io/datatable - Tree View section
https://gramener.invisionapp.com/d/main#/console/13753225/303473425/preview - BMGF project design linkReferences:
https://docs.webix.com/desktop__treetable.html
https://frappe.io/datatable - Tree View section
https://gramener.invisionapp.com/d/main#/console/13753225/303473425/preview - BMGF project design linkhttps://code.gramener.com/cto/g1/-/issues/10Implement a formhandler treemap2018-07-16T11:29:40ZS AnandImplement a formhandler treemaphttps://code.gramener.com/cto/g1/-/issues/50Implement a time slider component2019-03-05T03:02:19ZTejeshImplement a time slider componenthttps://code.gramener.com/cto/g1/-/issues/33Implement G1 search filter2019-01-11T10:13:42ZTejeshImplement G1 search filter## $.search
Highlight elements by searching as you type.
Example:
### $.search attributes
`.search` triggers use these attributes:
- `data-toggle="search"`
Currently, search is mentioned in Readme but feature is not available.## $.search
Highlight elements by searching as you type.
Example:
### $.search attributes
`.search` triggers use these attributes:
- `data-toggle="search"`
Currently, search is mentioned in Readme but feature is not available.1.49S AnandS Anandhttps://code.gramener.com/cto/g1/-/issues/29Implement URL targets other than hash (e.g. pushState)2019-02-04T10:05:42ZTejeshImplement URL targets other than hash (e.g. pushState)https://code.gramener.com/cto/g1/-/issues/18Integrate Mapviewer component2018-08-15T14:22:58ZTejeshIntegrate Mapviewer componentMapviewer to have features:
* [x] Drilldown and reset of map view
* [x] Tooltip and hover
* [ ] Summary count
* [ ] filters and sliders
* [ ] overlay metrics - multiple (TBD)
* [x] custom markers and svg shapes for geo points
* [ ]...Mapviewer to have features:
* [x] Drilldown and reset of map view
* [x] Tooltip and hover
* [ ] Summary count
* [ ] filters and sliders
* [ ] overlay metrics - multiple (TBD)
* [x] custom markers and svg shapes for geo points
* [ ] cluster markers (TBD)
* [ ] legend on mapTejeshTejeshhttps://code.gramener.com/cto/g1/-/issues/108Mapviewer - drilldown and tooltip bugfixes2019-01-16T04:23:13ZTejeshMapviewer - drilldown and tooltip bugfixesTejeshTejeshhttps://code.gramener.com/cto/g1/-/issues/91Mapviewer - Legend integration2018-10-30T06:04:29ZTejeshMapviewer - Legend integration_Features_
- position of legend
- legend tiles will be interactive. That is, clicking on a legend item will filter only those map regions
- option to control legend labels: show/hide_Features_
- position of legend
- legend tiles will be interactive. That is, clicking on a legend item will filter only those map regions
- option to control legend labels: show/hidePragnya Reddypragnya.reddy@gramener.comPragnya Reddypragnya.reddy@gramener.comhttps://code.gramener.com/cto/g1/-/issues/144Mapviewer automated tests fail on selenium2019-02-04T07:41:20ZS AnandMapviewer automated tests fail on selenium### Summary
### Steps to reproduce
Run `npm run test-chrome` and `npm run test-firefox` after [installing the relevant webdrivers](https://www.seleniumhq.org/download/).
### What is the current *bug* behavior?
Chrome fails. Some of...### Summary
### Steps to reproduce
Run `npm run test-chrome` and `npm run test-firefox` after [installing the relevant webdrivers](https://www.seleniumhq.org/download/).
### What is the current *bug* behavior?
Chrome fails. Some of the errors are:
```
⨯ ok
not ok 569 test/test-mapviewer-data-mismatch.html
⨯ g1.mapviewer test if popup is added to the marker
not ok 603 should be truthy
not ok 604 should be truthy
not ok 605 should be truthy
not ok 606 should be truthy
not ok 607 should be truthy
...
```
Firefox fails. Some of the errors are:
```
⨯ ok
not ok 317 test/test-formhandler-editable.html
⨯ ok
not ok 569 test/test-mapviewer-data-mismatch.html
⨯ $().template() with type=text/vdom animates nodes
not ok 678 x < 95 # This is because Firefox does not support SVG animation via CSS
```TejeshTejeshhttps://code.gramener.com/cto/g1/-/issues/22MapViewer Component2018-03-06T08:14:12ZSundeep Reddy MalluMapViewer Component* [ ] overlay of other shapefiles like constituency
* [ ] ability to add multiple datasets for drill down
* [ ] logs must show if there is a data mismatch -(server side)
* [ ] integrate with formhandler
* [ ] Test cases* [ ] overlay of other shapefiles like constituency
* [ ] ability to add multiple datasets for drill down
* [ ] logs must show if there is a data mismatch -(server side)
* [ ] integrate with formhandler
* [ ] Test casesTejeshTejeshhttps://code.gramener.com/cto/g1/-/issues/51mapviewer fails on valid TopoJSON2018-06-04T03:50:05ZS Anandmapviewer fails on valid TopoJSONRun this code:
```
<div id="topojson-map" style="height:300px">
<script>
var map = g1.mapviewer({
id: 'topojson-map',
layers: {
worldMap: { type: 'tile', url: 'http://{s}.tile.openstreetmap.org/{z}/{x}/{y}.pn...Run this code:
```
<div id="topojson-map" style="height:300px">
<script>
var map = g1.mapviewer({
id: 'topojson-map',
layers: {
worldMap: { type: 'tile', url: 'http://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png' },
usopojson: {
type: 'topojson',
url: 'us-10m.v1.json',
}
}
})
</script>
```
... with [us-10m.v1.json](https://github.com/d3/d3.github.com/blob/master/us-10m.v1.json)
This raises the following error:
![image](/uploads/49e4f787df9a494f48fa09d34f12b5d1/image.png)TejeshTejeshhttps://code.gramener.com/cto/g1/-/issues/60mapviewer issues2018-07-20T04:21:37ZTejeshmapviewer issuesscale: option is ignored now. (Linear scales)
zoom: is not disabled
attribution: is not disabled
scale: option is ignored now. (Linear scales)
zoom: is not disabled
attribution: is not disabled
TejeshTejesh