253 Commits

Author SHA1 Message Date
Stefan Breunig
79b917c8f1 divider bar too short 2013-02-13 03:22:01 +01:00
Stefan Breunig
4f931a11c7 Merge pull request #142 from saithis/tooltip
Added jQuery UI tooltips; fixes #42; patch by saithis
2013-02-12 18:19:33 -08:00
Stefan Breunig
360f6f8336 rework chat handling completely
The old system was getting too complicated to add new features to.
The new one should be easier to understand and will be explained
below. This patch should fix #140 and fix #16.

There are several places where new data requests may come from:
- chat.needMoreMessages checks if we are scrolled too far up or
  there is no scrollbar. It then requests new messages.
- scrolling up
- switching the chat tab via chat.chooser
- auto refresh
- once on boot
The latter two always request both types of chat.

Faction and public are handled the same way. Public is later split
into categories. I will explain the faction chat here because it’s
easier.

It starts in chat.requestFaction. This will initialize the query to
the server for data. The exact query is determined by chat.
genPostData. There can only be one faction chat request at a time.
Clearing on map move is handled automatically in code/requests.js.

Let’s assume the data query is successful. It is now passed to
chat.handleFaction which runs some basic checks before the data is
processed and stored in chat._factionData. This is done by chat.
writeDataToHash. The hash keys are the message GUIDs to avoid
duplicates. The hash values are an array of timestamp, processed
message and other meta data.

There is only one way to render faction chat, so data is directly
handed to chat.renderFaction which immediately hands it to chat
.renderData. renderData discards the GUIDs and sorts the values
by their timestamp. It then iterates over the data to insert
date break lines and finally renders the data in the DOM. It also
does some magic to keep the correct scrolling position.

Chat data will be cleared on map move or zoom. However, the
display is not refreshed, so the old, invalid chat data is still
displayed. Only once the data query is finished the data is
rendered. The upside is that small map operations within your
local area appear to never lose their chat data. Downside is that
there’s invalid chat for some time when changing cities.
2013-02-13 02:52:27 +01:00
Stefan Breunig
4c07fb12ae properly check if portal details are available 2013-02-13 02:49:13 +01:00
Stefan Breunig
847a3d5fc1 warn when chat message didn’t make it but the server actually send a response 2013-02-12 23:22:45 +01:00
saithis
039f9c14b5 * The jQuery UI js/css file is now taken from ajax.googleapis.com instead of code.jquery.com
* Table or not is now autodetected, removed data-tooltip attributes
* Empty table cells are now possible
* Removed duplicated \t's on some titles
* Some tooltip code cleanup
2013-02-12 23:16:12 +01:00
Stefan Breunig
139e06d86c fix typo 2013-02-12 23:12:41 +01:00
Stefan Breunig
0d0bd4b26a fix indenting 2013-02-12 23:12:28 +01:00
saithis
e0bb10f989 Added missing space between 'span' and 'title' 2013-02-12 19:46:04 +01:00
saithis
10da1dee83 Added jQuery UI tooltips 2013-02-12 19:34:16 +01:00
Stefan Breunig
6edf2210f8 add example for decay message JSON (see #137) 2013-02-12 11:54:58 +01:00
Stefan Breunig
8fc2a891db Merge branch 'gh-pages' of github.com:breunigs/ingress-intel-total-conversion into gh-pages 2013-02-12 10:01:49 +01:00
Stefan Breunig
331d9a3781 add debugging/console capability to devices where it is not available or easily accessibile 2013-02-12 10:01:21 +01:00
Stefan Breunig
52306b033d fix indenting 2013-02-12 09:20:08 +01:00
Stefan Breunig
bad7bc5cbe Merge pull request #126 from cmrn/bug/124
Added details on how to find updates to error message (Fixes #124)
2013-02-11 14:39:33 -08:00
Cameron Moon
f9f1cc1266 Added details on how to find updates to error message 2013-02-12 09:23:28 +11:00
Stefan Breunig
20ac194d90 Merge pull request #125 from cmrn/sidebar-css-fixes
Fixed various minor sidebar layout issues
2013-02-11 14:10:31 -08:00
Cameron Moon
e761a01aed fixed various minor sidebar layout issues 2013-02-12 08:58:06 +11:00
Stefan Breunig
7112e74a8a don’t put version number in title because this leads to multiple installations on chrome 2013-02-11 20:07:12 +01:00
Stefan Breunig
dcc860fa14 remove superfluous delete function 2013-02-11 19:48:23 +01:00
Stefan Breunig
f3bcc3ef03 release v0.51 which contains some fixes for recent breakages 2013-02-11 19:37:35 +01:00
Stefan Breunig
90e35ab7dd fix typo here as well 2013-02-11 19:34:35 +01:00
Stefan Breunig
b9a4f05adb ignore new build file 2013-02-11 19:27:16 +01:00
Stefan Breunig
de89e689bf fix range link not working 2013-02-11 19:25:02 +01:00
Stefan Breunig
de7f1e9754 fix leaflet layer selector not being usable with sidebar collapsed 2013-02-11 19:18:42 +01:00
Stefan Breunig
eb41b6a4cd another typo 2013-02-11 19:12:12 +01:00
Stefan Breunig
1efb30d73f typos 2013-02-11 19:10:15 +01:00
Stefan Breunig
4d0c0356fe fix breakage in Chrome 2013-02-11 18:55:14 +01:00
Stefan Breunig
e778dc8800 also apply for 0.5 users 2013-02-11 18:20:01 +01:00
Stefan Breunig
43245bf425 add update notice for old users and hide it for all on the current version 2013-02-11 18:17:52 +01:00
Stefan Breunig
5b07537cca debug build should not use dist/style.css 2013-02-11 18:07:33 +01:00
Stefan Breunig
ca736d6678 update news for 0.5 2013-02-11 18:03:57 +01:00
Stefan Breunig
71bc7c9dab update README.md to dist/ related changes 2013-02-11 18:03:39 +01:00
Stefan Breunig
4be5f1fea1 small release script. 2013-02-11 17:47:49 +01:00
Stefan Breunig
a9812085c1 update paths 2013-02-11 17:47:40 +01:00
Stefan Breunig
a917227a4b update old build path. This path is deprecated though and will be removed in the future. 2013-02-11 17:41:15 +01:00
Stefan Breunig
35312293cd debug build gets new filename 2013-02-11 17:40:42 +01:00
Stefan Breunig
3a45b560f5 release 0.5 2013-02-11 17:39:43 +01:00
Stefan Breunig
fdd5de3143 move all files for a specific version in dist. This should prevent updating issues in the future 2013-02-11 17:39:15 +01:00
Stefan Breunig
9416aeb50f replace unicode arrows with CSS tricks that should work on all platforms (patch by mledoze). Fixes #98, #116 2013-02-11 17:32:02 +01:00
Stefan Breunig
14cc1263f3 undo backwards compat changes, they break the sidebar 2013-02-11 17:31:14 +01:00
Stefan Breunig
84718fe37b add to contribs 2013-02-11 16:53:06 +01:00
Stefan Breunig
f2ae68bf0e Merge branch 'gh-pages' of github.com:breunigs/ingress-intel-total-conversion into gh-pages 2013-02-11 16:51:46 +01:00
Stefan Breunig
4ecb7c66d7 make uniqueArray its own function 2013-02-11 16:51:14 +01:00
Stefan Breunig
bbdd0ac520 Merge branch '107' of git://github.com/phoenixsong6/ingress-intel-total-conversion into phoenixsong6-107 2013-02-11 16:46:43 +01:00
Stefan Breunig
50762bcc39 Merge pull request #112 from cmrn/sidebar-back-compat
Make sidebar look less broken when using out of date plugin
2013-02-11 05:24:59 -08:00
Stefan Breunig
0f6422b48e add Pirozek to contribs 2013-02-11 14:23:17 +01:00
Stefan Breunig
5e4b3c94ba clean up Pirozek 'show AP' patch a bit and handle random details differently. 2013-02-11 14:22:14 +01:00
Cameron Moon
6599f1375a Remove border on #scrollwrapper as it was duplicating border on #sidebar 2013-02-12 00:20:22 +11:00
Cameron Moon
0c3a9ef4fc Made sidebar look less broken when using out-of-date plugin 2013-02-12 00:14:27 +11:00