g1 issueshttps://code.gramener.com/cto/g1/-/issues2018-10-04T12:17:29Zhttps://code.gramener.com/cto/g1/-/issues/95Mapviewer: tooltip must support leaflet tooltip options2018-10-04T12:17:29ZTejeshMapviewer: tooltip must support leaflet tooltip optionsspec
```js
tooltip: 'just some tooltip text test',
tooltipOptions: {
opacity: 0.1,
permanent: true
}
```spec
```js
tooltip: 'just some tooltip text test',
tooltipOptions: {
opacity: 0.1,
permanent: true
}
```1.43TejeshTejeshhttps://code.gramener.com/cto/g1/-/issues/93FormHandler table: test cases for enhancements2018-10-04T12:17:44ZS AnandFormHandler table: test cases for enhancementsAdd test cases and documentation for the following features
- [x] Clicking on Add / Edit focuses on the first inpput
- [x] Pressing Enter when editing / adding saves the document
- [x] Custom action receive a `.notify(message)` that the...Add test cases and documentation for the following features
- [x] Clicking on Add / Edit focuses on the first inpput
- [x] Pressing Enter when editing / adding saves the document
- [x] Custom action receive a `.notify(message)` that they can use to send a notification
- [x] Custom actions can return a jQuery deferred (e.g. `return $.ajax(...)`). In that case, it shows a loading indicator, and after the deferred is complete (i.e. `.always()`), the loading indicator is removed1.43TejeshTejeshhttps://code.gramener.com/cto/g1/-/issues/86mapviewer: Support custom markers (divIcons)2018-10-04T12:17:18ZAnvesh Dasarimapviewer: Support custom markers (divIcons)### Summary
Integrate text labels on the map
### Benefits
User can see text labels on the map (easy to identify).
### Usage
![image](/uploads/23565d7858a13a554a5f9053a45a4006/image.png)
### Examples
(Add code samples of usage, wit...### Summary
Integrate text labels on the map
### Benefits
User can see text labels on the map (easy to identify).
### Usage
![image](/uploads/23565d7858a13a554a5f9053a45a4006/image.png)
### Examples
(Add code samples of usage, with expected output)
```
var my_icon2 = L.divIcon({
className:'current-location-icon2',
html:'<span class="label_text text-black '+sublayer.feature.properties.Id+'">'+sublayer.feature.properties.BLOCK_NAME+'</span>',
iconAnchor:[0,0],
iconSize:null,
popupAnchor:[0,0]
})
L.marker([sublayer.getCenter().lat, sublayer.getCenter().lng], {radius: 5,
icon : my_icon2, color:'blue',opacity:1,fillColor: 'blue',fillOpacity:.4 ,className : "map_circle2"}).addTo(map)
```
Depends on the layer centroid, added text on the map.
![image](/uploads/4c8f0ea1e04d1aada383536a931435e2/image.png)1.43TejeshTejeshhttps://code.gramener.com/cto/g1/-/issues/102Mapviewer: add test case for multiple map legends2018-10-30T06:04:11ZS AnandMapviewer: add test case for multiple map legendsWhen creating multiple maps, ensure that:
- options of one map legend do not bleed into another
- removing a map does not remove other map legendsWhen creating multiple maps, ensure that:
- options of one map legend do not bleed into another
- removing a map does not remove other map legends1.44TejeshTejeshhttps://code.gramener.com/cto/g1/-/issues/90Mapviewer: Tooltip must react and position itself to collision detections2018-10-14T05:29:21ZTejeshMapviewer: Tooltip must react and position itself to collision detections![image](/uploads/a2cb9296f5a1babba8fc6033b24d5690/image.png)
![image](/uploads/daf5389fedb99de3670314a255bf159d/image.png)![image](/uploads/a2cb9296f5a1babba8fc6033b24d5690/image.png)
![image](/uploads/daf5389fedb99de3670314a255bf159d/image.png)1.44TejeshTejeshhttps://code.gramener.com/cto/g1/-/issues/70mapviewer merge data doesnot work with topojson files2018-11-01T03:07:43ZTejeshmapviewer merge data doesnot work with topojson files1.44Bharat Rbharath.r@gramener.comBharat Rbharath.r@gramener.comhttps://code.gramener.com/cto/g1/-/issues/104g1.formhandler Editable table must render appropriate UI elements for corresp...2018-11-14T11:33:32ZTejeshg1.formhandler Editable table must render appropriate UI elements for corresponding data TypeUsecase:
* [x] dropdown in FormHandler table for use in the admin page. This will allow developers to specify a pre-defined list of roles users can pick from.
Will start with dropdown support and extend for
* [x] DatePicker
* [x] ...Usecase:
* [x] dropdown in FormHandler table for use in the admin page. This will allow developers to specify a pre-defined list of roles users can pick from.
Will start with dropdown support and extend for
* [x] DatePicker
* [x] restricted number type input element (Min, Max, etc)1.45TejeshTejeshhttps://code.gramener.com/cto/g1/-/issues/116Allow loading multiple pages via AJAX2018-11-27T03:51:26ZS AnandAllow loading multiple pages via AJAX### Summary
Create a `$.ajaxchain()` that allows chaining AJAX requests flexibly
### Benefits
- Lets you load FormHandler pages successively with a single call
- Loads multiple pages of data from APIs (e.g. YouTube, Twitter, etc) easily### Summary
Create a `$.ajaxchain()` that allows chaining AJAX requests flexibly
### Benefits
- Lets you load FormHandler pages successively with a single call
- Loads multiple pages of data from APIs (e.g. YouTube, Twitter, etc) easily1.46S AnandS Anandhttps://code.gramener.com/cto/g1/-/issues/115g1 template should support list creation2018-11-24T09:00:01ZS Anandg1 template should support list creation### Summary
`$().template()` replaces the target DOM element. Allow it to append to the target DOM element.
### Benefits
This helps in creating lists that can be extended. For example:
- Repeated AJAX loads append data to the target ...### Summary
`$().template()` replaces the target DOM element. Allow it to append to the target DOM element.
### Benefits
This helps in creating lists that can be extended. For example:
- Repeated AJAX loads append data to the target node
- Successive notifications can be appended to the target node
### Usage
`$().template({}, {append: true})` should enable this behavior.1.46S AnandS Anandhttps://code.gramener.com/cto/g1/-/issues/107Trigger simple hashchange events2018-11-16T14:40:57ZS AnandTrigger simple hashchange events### Summary
When the URL hash changes, trigger a `#?key` event on the window.
### Benefits
This makes it easier for developers to write URL-driven applications.
To change state, just add `<a href="#?key=val" class="urlfilter" data-ta...### Summary
When the URL hash changes, trigger a `#?key` event on the window.
### Benefits
This makes it easier for developers to write URL-driven applications.
To change state, just add `<a href="#?key=val" class="urlfilter" data-target="#">`
To respond to state, don't use `$('a').on('click')`. Instead, use `$(window).on('#?key')`.
### Usage
For example, if the URL changes from `/page` to `/page#?state=Goa`, you can listen to `$(window).on('#?state', function(state) { ... })` will be triggered with `Goa` as the `state`.
It will also trigger `$(window).on('#?', function(url) { ... })` where `url` is a g1 parsed URL.
To enable this, just run `$(window).urlchange(options)`.
Instead of `window`, we can run this on iframes and any other urlfilter target too.1.46S AnandS Anandhttps://code.gramener.com/cto/g1/-/issues/111remove dev dependencies from package.json2018-12-08T00:58:30ZTejeshremove dev dependencies from package.jsonjust a reminder!just a reminder!1.47TejeshTejeshhttps://code.gramener.com/cto/g1/-/issues/130g1 compatible Browser Version list2019-01-12T11:43:07ZSundeep Reddy Mallug1 compatible Browser Version list### Summary
Evaluate and publish list of compatible Browser version for g1
### Benefits
Establish clear line of communication from Sales, Marketing material and project teams on the compatible browser versions. This will ensure custome...### Summary
Evaluate and publish list of compatible Browser version for g1
### Benefits
Establish clear line of communication from Sales, Marketing material and project teams on the compatible browser versions. This will ensure customers don't have negative experience while using the Data Apps built on top of Gramex.
### Usage
Establish browser version that should be part of our delivery commitment
- Chrome
- Firefox
- Safari
- Microsoft Edge
Perform this action every-time g1 release is pushed.1.49S AnandS Anandhttps://code.gramener.com/cto/g1/-/issues/128Add urlchange event to path changes2019-01-11T15:03:06ZPratap Vardhanpratap.vardhan@gramener.comAdd urlchange event to path changesCurrently, `urlchange` detects query changes, would like to detect path changes as well
`#/path1/sub1/?q=1` -> `#/path2/sub2/?q=1`
```javascript
$(window).urlchange()
.on('#/', ... })
```
Also, add a note in the documentation about ...Currently, `urlchange` detects query changes, would like to detect path changes as well
`#/path1/sub1/?q=1` -> `#/path2/sub2/?q=1`
```javascript
$(window).urlchange()
.on('#/', ... })
```
Also, add a note in the documentation about when history changes and when it does not, and how this interacts with the back button.1.49S AnandS Anandhttps://code.gramener.com/cto/g1/-/issues/126Templates should only update changed elements via virtualdom2019-01-04T12:20:52ZS AnandTemplates should only update changed elements via virtualdomThis allows:
- Smooth animation via CSS style updates
- Lower CPU utilization
- Faster DOM updatesThis allows:
- Smooth animation via CSS style updates
- Lower CPU utilization
- Faster DOM updates1.49S AnandS Anandhttps://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/143BUG: Save after adding new row does not add data to source2019-01-30T06:58:52ZTejeshBUG: Save after adding new row does not add data to source1.50TejeshTejeshhttps://code.gramener.com/cto/g1/-/issues/106G1 Translate2019-01-23T11:09:13ZTejeshG1 Translatehttps://paper.dropbox.com/doc/Translation-in-Gramex-9xaf4qruopZHQthjfOU5ghttps://paper.dropbox.com/doc/Translation-in-Gramex-9xaf4qruopZHQthjfOU5g1.50Som Shubham SahooSom Shubham Sahoohttps://code.gramener.com/cto/g1/-/issues/148$.formhandler editable fails for columns which have spaces in name2019-02-15T05:56:30ZTejesh$.formhandler editable fails for columns which have spaces in nameraised by @venkata.reddyraised by @venkata.reddy1.51TejeshTejeshhttps://code.gramener.com/cto/g1/-/issues/145g1.mapviewer.js and g1.min.js are conflicting due to same namespace2019-02-04T11:13:34ZTejeshg1.mapviewer.js and g1.min.js are conflicting due to same namespace1.51TejeshTejeshhttps://code.gramener.com/cto/g1/-/issues/140g1.formhandler should clear all filters2019-02-07T03:59:35ZPratap Vardhanpratap.vardhan@gramener.comg1.formhandler should clear all filtersWhen the multiple `?a=1&a=2` query parameters with same keys are passed, `Clear All` filters doesn't remove all filters.When the multiple `?a=1&a=2` query parameters with same keys are passed, `Clear All` filters doesn't remove all filters.1.51TejeshTejesh