Commit Graph

3672 Commits

Author SHA1 Message Date
Toby Zerner
5ebd0a0e93 Implement "renamed" posts
Record when the discussion was renamed, from what, and by whom.
Information is stored in the `content` field as a serialised JSON
object because proper polymorphism will be too difficult with Ember
Data and especially when extensions try to add new post types.
2015-02-13 10:23:38 +10:30
Toby Zerner
dc21666215 Remove the go to top button
It’s not particularly useful when there are fixed elements all over the
page (header, sidebar)
2015-02-13 09:46:22 +10:30
Toby Zerner
25f57c459d Still show index pane when a discussion is created 2015-02-12 15:19:46 +10:30
Toby Zerner
72485d534e Mark a discussion as read when it is created 2015-02-12 15:18:45 +10:30
Toby Zerner
b0f6d7f1f8 Fix mark as read bug 2015-02-12 15:18:26 +10:30
Toby Zerner
32fc2f5b8b Rename and delete discussion controls 2015-02-12 15:18:17 +10:30
Toby Zerner
875e239497 Only show reply button if user has permission 2015-02-12 15:17:20 +10:30
Toby Zerner
d89bcef816 Helper method for adding menu separators 2015-02-12 15:16:15 +10:30
Toby Zerner
7001c83fb3 Implement discussion deletion 2015-02-12 14:35:40 +10:30
Toby Zerner
b97887b612 Implement hard deletion and rename soft delete to hide 2015-02-12 14:35:24 +10:30
Toby Zerner
a29b849c54 Fix up uncaught ajax error alert message 2015-02-12 14:34:07 +10:30
Toby Zerner
450039f967 Fix up bug with the way we hide list items
If we use an #unless condition, then when the view is removed from the
template, it is destroyed, and cannot be inserted again. So we’ll just
keep the item there the whole time, and toggle its visibility with CSS.
2015-02-10 19:55:22 +10:30
Toby Zerner
4bfb973255 Delete ember-cli README 2015-02-10 18:08:20 +10:30
Toby Zerner
83b273db0d Upgrade to Ember 1.11-beta.1
HTMLBars goodness! Since there was some breakage and a lot of fiddling
around to get some things working, I took this opportunity to do a big
cleanup of the whole Ember app. I accidentally worked on some new
features too :3

Note that the app is still broken right now, pending on
https://github.com/emberjs/ember.js/issues/10401

Cleanup:
- Restructuring of components
- Consolidation of some stuff into mixins, cleanup of some APIs that
will be public
- Change all instances of .property() / .observes() / .on() to
Ember.computed() / Ember.observer() / Ember.on() respectively (I think
it is more readable)
- More comments
- Start conforming to a code style (2 spaces for indentation)

New features:
- Post hiding/restoring
- Mark individual discussions as read by clicking
- Clicking on a read discussion jumps to the end
- Mark all discussions as read
- Progressively mark the discussion as read as the page is scrolled
- Unordered list post formatting
- Post permalink popup

Demo once that Ember regression is fixed!
2015-02-10 18:05:40 +10:30
Toby Zerner
f5eaabacde Always add discussion state information 2015-02-10 17:53:52 +10:30
Toby Zerner
0edfeb5031 Don't imply order on posts relationship 2015-02-10 17:53:16 +10:30
Toby Zerner
ebd22d22f5 Add unordered list formatting 2015-02-10 17:52:13 +10:30
Toby Zerner
a31dc1d3a9 Refresh comments count when updating metadata 2015-02-10 17:51:39 +10:30
Toby Zerner
a820f3c4f4 Change API attribute for hiding/restoring posts 2015-02-10 17:51:16 +10:30
Toby Zerner
85097660f0 Prevent unnecessary events from being triggered 2015-02-10 17:49:42 +10:30
Toby Zerner
8323d2a72b API for marking all as read 2015-02-10 17:48:58 +10:30
Toby Zerner
d98b2a5642 Move extractMeta override to serializer 2015-02-09 20:14:18 +10:30
Toby Zerner
526e7114a3 Add editorconfig 2015-02-09 20:12:42 +10:30
Toby Zerner
a89fe9fbd5 Rejig post formatting 2015-02-09 09:49:48 +10:30
Toby Zerner
5d83e51813 Improve LESS variable skinning (unfinished) 2015-02-08 16:00:09 +10:30
Toby Zerner
24f9e97df4 Signup + modal refactoring 2015-02-08 15:59:39 +10:30
Toby Zerner
d053b5760e Fix jumpy downward post loading 2015-02-08 15:58:53 +10:30
Toby Zerner
199bbcf5d4 Fix scrubber times 2015-02-08 15:58:37 +10:30
Toby Zerner
a19b40e51c Fix index sorting 2015-02-08 15:57:41 +10:30
Toby Zerner
9fd935285f Fix index pane autoscroll 2015-02-08 15:57:33 +10:30
Toby Zerner
ccb49a7120 Make post types/components more flexible 2015-02-08 15:56:44 +10:30
Toby Zerner
b12fcf1b2d Implement post editing 2015-02-08 15:55:33 +10:30
Toby Zerner
e23192a4e0 Move alerts to their own controller 2015-02-08 15:51:40 +10:30
Toby Zerner
e78826953a Implement discussion composition and creation 2015-02-06 14:07:15 +10:30
Toby Zerner
e53b3872c9 Composer and replying tweaks/bug-fixes 2015-02-06 14:06:22 +10:30
Toby Zerner
1db559e4c3 It's a component, not a view! 2015-02-06 14:03:35 +10:30
Toby Zerner
d5bd462ed9 Make discussion in view when returning to index 2015-02-06 12:22:08 +10:30
Toby Zerner
3d6d3192d9 Save composer height in localStorage 2015-02-06 12:21:34 +10:30
Toby Zerner
461885c40d Clean up scrolling code 2015-02-06 12:21:24 +10:30
Toby Zerner
7b9c65b5bc Fix up API default sort order 2015-02-06 12:20:58 +10:30
Toby Zerner
3644b99bf6 Update bootstrap 2015-02-06 10:36:38 +10:30
Toby Zerner
cf2361bda9 Remember scroll position when returning to index 2015-02-06 10:36:30 +10:30
Toby Zerner
8d95e21d6e Make sure selected discussion is visible in pane 2015-02-06 10:36:16 +10:30
Toby Zerner
a5be161d61 Cleanup, remove some old code 2015-02-06 10:35:46 +10:30
Toby Zerner
fc788756d2 Better live timestamp performance 2015-02-06 10:35:27 +10:30
Toby Zerner
b6efee1f1e Clean up application controller 2015-02-06 10:34:59 +10:30
Toby Zerner
bb5ec3929b Fix up z-indexes 2015-02-06 10:34:41 +10:30
Toby Zerner
1c1381ae82 These are with the last commit 2015-02-06 10:34:12 +10:30
Toby Zerner
8bf34eebd0 Refactor index pane
So that it only loads when needed, and caches results so things are
nice and snappy
2015-02-06 10:32:45 +10:30
Toby Zerner
a318bb4952 Load discussion and posts with one request
Speeds things up a heap.
Also fix a whole bunch of bugs with the post stream.
2015-02-06 10:30:38 +10:30