Commit graph

68 commits

Author SHA1 Message Date
Tyler Renelle
da4738ac1a move the subscriptions setup into index.coffee 2013-05-08 15:14:41 +01:00
Tyler Renelle
2ebde9bc1a possible fix to dleting models post empty 2013-05-08 15:03:46 +01:00
Tyler Renelle
cf3f960c93 tidy up some party-subscription comments 2013-05-08 13:43:14 +01:00
Tyler Renelle
fedc5b6a0d small functional overhaul of party.coffee to accomodate new party
subscriptions, still need to run a migration
2013-05-08 12:47:10 +01:00
Tyler Renelle
745612d2f4 optimize the initial subscription process by first sbuscribing to
parties. this will require a small overhaul of the party system, which
I'll do next
2013-05-08 12:17:41 +01:00
Tyler Renelle
06be572220 Merge remote-tracking branch 'switz/chat' into develop
Conflicts:
	src/app/helpers.coffee
2013-05-05 23:17:17 +01:00
Tyler Renelle
b0b90f686c add back in model.id(), modified lefnire/racer#habitrpg model.id() instead 2013-05-05 23:04:09 +01:00
Tyler Renelle
d055f68c5b temporary fix to #891, model.id() isn't working for some reason.
Provide custom `helpers.uuid()` function until I can figure this out
2013-05-05 22:03:26 +01:00
Daniel Saewitz
669cdb35b6 Cleanup model code 2013-05-05 13:47:50 -04:00
Daniel Saewitz
3526cd6f72 Keep relative times updated every 60 seconds 2013-05-05 13:44:24 -04:00
Daniel Saewitz
c1c2f025ad Merge develop and add functionality to party chat 2013-05-05 13:07:36 -04:00
Tyler Renelle
7ebe611078 adjust achievement view logic for previous commit 2013-05-04 16:41:07 +01:00
Tyler Renelle
0f1ec096ef add backer.contributor & backer.npc for tavern & party chat 2013-05-04 16:03:03 +01:00
Daniel Saewitz
63495a647b Send chat message on enter and disallow empty messages 2013-05-03 14:59:37 -04:00
Tyler Renelle
c48d6bde13 add tavern chat 2013-05-02 21:09:50 +01:00
Tyler Renelle
c3eadab4dc notify of new chat messages 2013-05-02 20:23:50 +01:00
Tyler Renelle
f8e592d68f begin implementing party chat. still need notifications 2013-05-02 19:26:25 +01:00
Tyler Renelle
70243614c8 also flag error 2013-04-24 18:21:59 +01:00
Tyler Renelle
855372ae7a try deleting model.session.userId when session is corrupted, first
attempting just by redirecting user to logout
2013-04-24 18:21:01 +01:00
Tyler Renelle
7f2d309eb5 BREAKING CHANGE! partySubscribe: setup subscriptions incrementally to remove unecessary fetches. 2013-04-18 20:19:34 -04:00
Tyler Renelle
251890f7b6 BREAKING CHANGE! partySubscribe: setup subscriptions incrementally to
remove unecessary fetches. Unsubscribe from first selfQ in the
end (see notes about that bug). IIRC @SLaks recommended subscribing to
all queries in one function call (I can't remember where he said that,
maybe I'm imagining) - but this old code had at least 3 superfluous
fetches that seemed to be causing performance issues
2013-04-18 16:46:56 -04:00
Tyler Renelle
7e0329ef3a move all feature-unlocking popover notifications into unlock.coffee,
so we can better manage from one location and share some code. @switz
notice my change to scoring.coffee - see the comment added for the
reasoning. This before/after checking change is required for the
API
2013-04-16 13:46:44 -04:00
Tyler Renelle
6522badaa6 rename _view.* to _* - don't know why I did that whole _view.* thing
in the first place, but whatevs
2013-04-07 20:29:13 -04:00
Tyler Renelle
584759bd25 shift some require() statements around, attempt to get things out of
app.coffee top-level scope - working towards mem leak fix
2013-04-04 16:44:54 -04:00
Tyler Renelle
76512eef46 parties: bunch of bug fixes. enable parties by default, just notify
them at lvl 3 if they haven't started using it. Show a bell-icon
notification in user, reset dom properly after invitation
2013-03-26 14:54:14 -07:00
Tyler Renelle
77e696554a bug: popovers where being attached to ".main-avatar" which was changed
to ".main-herobox" in the redesign
2013-03-26 12:54:34 -07:00
Tyler Renelle
545e5fc2a4 allow manually unlocking party system 2013-03-15 18:39:39 -04:00
Tyler Renelle
c9a7330002 unlock parties for users who get invited, regardless of level 2013-02-27 16:40:17 -05:00
Tyler Renelle
9a0ac02102 fixes to party bugs 2013-02-27 16:21:06 -05:00
Tyler Renelle
7c0abe4a47 remove "testing party bug" 2013-02-26 16:54:31 -05:00
Tyler Renelle
63392d644f use derby-auth new findOne() motif spec (aka, no more
res.at(0).get()). Also, try tripple subscription on parties instead of
multiple individual subs
2013-02-26 16:37:47 -05:00
Tyler Renelle
06da720dfb return next(err) for errors in subscription callbacks. Also, try
reloading the page when userObj? is null (bustedSession victims. See
the comments)
2013-02-25 18:59:14 -05:00
Tyler Renelle
6e0caa6e7a try only allowing _userId subscriptions on client routes (memory leak
attempt, see see http://goo.gl/TPYIt)
2013-02-21 12:45:05 -05:00
Tyler Renelle
66a7716b4a add comments about unsubscribe issues 2013-02-19 19:36:57 -05:00
Tyler Renelle
223355fecb try without unsubscribe 2013-02-19 18:49:57 -05:00
Tyler Renelle
08ec9a510e only one subscribe if user solo 2013-02-19 17:33:34 -05:00
Tyler Renelle
6229a8e5bb model.fetch party, change members array, then push 2013-02-19 17:08:48 -05:00
Tyler Renelle
fc49e57201 try model.fetches for party members for now, with browser refreshes. 2013-02-19 16:49:38 -05:00
Tyler Renelle
5698db29fb unsubscribe to first selfQ query (we subscribe to it twice for a
reason in the comments, it's jank)
2013-02-18 21:53:50 -05:00
Tyler Renelle
15bf49dc43 try removing unsubscribe 2013-02-18 15:26:10 -05:00
Tyler Renelle
c0a21ac08d back to model.subscribe, gonna play with some other thingsc 2013-02-18 13:40:09 -05:00
Tyler Renelle
daac7f424f temp fix for withId query motif not being defined (just fetch parties,
don't subscribe to them). Note this isn't fully functional, it's a
hotfix to patch the major errors
2013-02-18 12:49:53 -05:00
Tyler Renelle
cd517c7f7c back to refresh on party leave 2013-02-11 19:41:43 -05:00
Tyler Renelle
6ffe57eb00 some prettifying of party dialog 2013-02-11 19:38:15 -05:00
Tyler Renelle
baa149b6ba proper party unsubscribe callbacking 2013-02-11 19:31:01 -05:00
Tyler Renelle
03779c73ab close "new party" <form> tag. #330, wah wah wah 2013-02-11 19:27:35 -05:00
Tyler Renelle
648032228a .main-avatar popovers were all clobbering eachother 2013-02-08 18:45:22 -05:00
Tyler Renelle
230d672fc7 refactor much of the hodge-podge code into their own files 2013-02-08 18:03:46 -05:00
Tyler Renelle
b4fda373cb all item-code refactored into its own classes, item store working 2013-02-08 02:01:48 -05:00
Tyler Renelle
a8882620d5 party subscriptions fixes 2013-02-07 19:19:26 -05:00