{"action":"closed","issue":{"url":"https://api.github.com/repos/publiclab/plots2/issues/100","repository_url":"https://api.github.com/repos/publiclab/plots2","labels_url":"https://api.github.com/repos/publiclab/plots2/issues/100/labels{/name}","comments_url":"https://api.github.com/repos/publiclab/plots2/issues/100/comments","events_url":"https://api.github.com/repos/publiclab/plots2/issues/100/events","html_url":"https://github.com/publiclab/plots2/issues/100","id":35433978,"number":100,"title":"display warning on power tag deletion with a \"confirm\" dialog box","user":{"login":"jywarren","id":24359,"avatar_url":"https://avatars.githubusercontent.com/u/24359?v=3","gravatar_id":"","url":"https://api.github.com/users/jywarren","html_url":"https://github.com/jywarren","followers_url":"https://api.github.com/users/jywarren/followers","following_url":"https://api.github.com/users/jywarren/following{/other_user}","gists_url":"https://api.github.com/users/jywarren/gists{/gist_id}","starred_url":"https://api.github.com/users/jywarren/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jywarren/subscriptions","organizations_url":"https://api.github.com/users/jywarren/orgs","repos_url":"https://api.github.com/users/jywarren/repos","events_url":"https://api.github.com/users/jywarren/events{/privacy}","received_events_url":"https://api.github.com/users/jywarren/received_events","type":"User","site_admin":false},"labels":[{"id":42345820,"url":"https://api.github.com/repos/publiclab/plots2/labels/enhancement","name":"enhancement","color":"84b6eb","default":true},{"id":342625116,"url":"https://api.github.com/repos/publiclab/plots2/labels/first-timers-only","name":"first-timers-only","color":"f7c6c7","default":false},{"id":173349489,"url":"https://api.github.com/repos/publiclab/plots2/labels/help-wanted","name":"help-wanted","color":"bfe5bf","default":false},{"id":343384842,"url":"https://api.github.com/repos/publiclab/plots2/labels/Ruby","name":"Ruby","color":"006b75","default":false}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":18,"created_at":"2014-06-10T22:49:29Z","updated_at":"2016-11-03T21:09:41Z","closed_at":"2016-11-03T21:09:41Z","body":"Hi, this is a `first-timers-only issue`. This means we've worked to make it more legible to folks who either **haven't contributed to our codebase before, or even folks who haven't contributed to open source before**. If you have contributed before, consider leaving this one for someone new, and looking through our general [help wanted](https://github.com/publiclab/plots2/labels/help-wanted) issues. Thanks!\n## The problem\n\nSome tags on PublicLab.org pages ([like this one](https://publiclab.org/wiki/aerial-photography)) trigger specific features -- we call these [power tags](https://publiclab.org/wiki/power-tags), and they always have a `key:value` format with a colon in them. See this screenshot:\n\n![screen shot 2016-10-25 at 1 40 04 pm](https://cloud.githubusercontent.com/assets/24359/19697289/c3ce9eca-9ab8-11e6-9310-747edb7708f8.png)\n\nWhen power tags are deleted, some page functions may be broken, so we should warn people before they do so. \n## Solution\n\nUse a confirm dialog box to alert people that they are deleting power tags, which may break something:\n\n> This is a power tag (see https://publiclab.org/wiki/power-tags) -- and may drive a specific function on this page. Are you sure you want to delete it?\n\nA confirm dialog box looks like this:\n\n![screen shot 2016-10-25 at 1 42 35 pm](https://cloud.githubusercontent.com/assets/24359/19697586/ecf96a36-9ab9-11e6-987f-db7ed0d2adf8.png)\n\nThis can be added using a `data-confirm='Message text goes here'` attribute on the `<a>` link tag, like this:\n\n``` ruby\n<a data-confirm=\"This is a power tag (see https://publiclab.org/wiki/power-tags) -- and may drive a specific function on this page. Are you sure you want to delete it?\" class=\"tag-delete\" data-remote=\"true\" href=\"/tag/delete/<%= @node.id %>/<%= tag.tid %>\" data-tag-id=\"<%= tag.tid %>\">x</a>\n```\n\nThe template for that `<a>` tag is on this line: https://github.com/publiclab/plots2/blob/master/app/views/tag/_tagging.html.erb#L9\n## Steps to Fix\n- [ ] claim this issue with a comment here, below\n- [ ] set up a repository locally and make sure that all tests pass\n- [ ] start a pull request (see contributing to Public Lab software) but mark it as \"in progress\"\n- [ ] fix the issue following the steps above\n- [ ] make sure all tests pass with `rake test`\n- [ ] alert someone via the developers list (see below) to have your pull request merged. This may take a few extra steps depending on when you do it, but we'll help you out!\n\nPlease email the developers list (see https://publiclab.org/developers) if you have questions!\n"}}
{"actor":{"display_login":"jywarren"}}