Commit Graph

143 Commits

Author SHA1 Message Date
Toby Zerner
1a11194ca8 Helper method for adding menu separators 2015-02-12 15:16:15 +10:30
Toby Zerner
2bd5471699 Implement discussion deletion 2015-02-12 14:35:40 +10:30
Toby Zerner
36787bcf45 Implement hard deletion and rename soft delete to hide 2015-02-12 14:35:24 +10:30
Toby Zerner
c33697654a Fix up uncaught ajax error alert message 2015-02-12 14:34:07 +10:30
Toby Zerner
ffef6af403 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
090e8c6061 Delete ember-cli README 2015-02-10 18:08:20 +10:30
Toby Zerner
c28307903b 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
eec50f687c Move extractMeta override to serializer 2015-02-09 20:14:18 +10:30
Toby Zerner
071e403020 Add editorconfig 2015-02-09 20:12:42 +10:30
Toby Zerner
3ed893b1b8 Improve LESS variable skinning (unfinished) 2015-02-08 16:00:09 +10:30
Toby Zerner
d45f2fd1ac Signup + modal refactoring 2015-02-08 15:59:39 +10:30
Toby Zerner
6c3debc79b Fix jumpy downward post loading 2015-02-08 15:58:53 +10:30
Toby Zerner
dc6a8bf08b Fix scrubber times 2015-02-08 15:58:37 +10:30
Toby Zerner
64270fd066 Fix index pane autoscroll 2015-02-08 15:57:33 +10:30
Toby Zerner
7863f0114c Make post types/components more flexible 2015-02-08 15:56:44 +10:30
Toby Zerner
59964e3b22 Implement post editing 2015-02-08 15:55:33 +10:30
Toby Zerner
2d181933ea Move alerts to their own controller 2015-02-08 15:51:40 +10:30
Toby Zerner
28d213d868 Implement discussion composition and creation 2015-02-06 14:07:15 +10:30
Toby Zerner
abd3aa2e1a Composer and replying tweaks/bug-fixes 2015-02-06 14:06:22 +10:30
Toby Zerner
e6135d60b2 It's a component, not a view! 2015-02-06 14:03:35 +10:30
Toby Zerner
b4ea3af5b4 Make discussion in view when returning to index 2015-02-06 12:22:08 +10:30
Toby Zerner
e4692e3554 Save composer height in localStorage 2015-02-06 12:21:34 +10:30
Toby Zerner
46ed231c54 Clean up scrolling code 2015-02-06 12:21:24 +10:30
Toby Zerner
c8c7d94211 Update bootstrap 2015-02-06 10:36:38 +10:30
Toby Zerner
3acf247c07 Remember scroll position when returning to index 2015-02-06 10:36:30 +10:30
Toby Zerner
cab17be53a Make sure selected discussion is visible in pane 2015-02-06 10:36:16 +10:30
Toby Zerner
809a87f03f Cleanup, remove some old code 2015-02-06 10:35:46 +10:30
Toby Zerner
ca981b03f9 Better live timestamp performance 2015-02-06 10:35:27 +10:30
Toby Zerner
9571a879fc Clean up application controller 2015-02-06 10:34:59 +10:30
Toby Zerner
9c6e6f9ea0 Fix up z-indexes 2015-02-06 10:34:41 +10:30
Toby Zerner
3b375e9dc4 These are with the last commit 2015-02-06 10:34:12 +10:30
Toby Zerner
9ddc622929 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
0365ae6c71 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
Toby Zerner
bc3aa449e7 Make discussion count jump to last when read 2015-02-03 19:06:50 +10:30
Toby Zerner
d2ef15455e Fix broken tooltip in index pane 2015-02-03 18:41:54 +10:30
Toby Zerner
03320976c3 Tweak composer styles
Make it appear above the sidepane
2015-02-03 18:41:39 +10:30
Toby Zerner
9ae0e9d470 Update discussion details upon reply 2015-02-03 18:41:03 +10:30
Toby Zerner
46c538c157 Better handling of AJAX errors 2015-02-03 18:40:34 +10:30
Toby Zerner
8c15420f95 Fix login CSS 2015-02-03 17:03:04 +10:30
Toby Zerner
0552cae1ab Add alert messages 2015-02-03 17:02:46 +10:30
Toby Zerner
b18534882b Some tweaks 2015-02-03 17:00:41 +10:30
Toby Zerner
6544052da6 Clean up/refactor composer, add escape hotkey 2015-02-03 16:59:53 +10:30
Toby Zerner
74d8b0e377 Tighten up loading indicator 2015-02-02 16:58:49 +10:30
Toby Zerner
4c07c959ef Remove remember me for now 2015-02-02 16:58:34 +10:30
Toby Zerner
6d8374f730 Make human-time live update 2015-02-02 16:58:23 +10:30
Toby Zerner
12b0418eb7 Improve post composer + replying
- Make it modular so that different entry points can show different
things and respond differently (reply, new discussion, edit post)
- Resizable
- Fullscreen
- Confirm on close
2015-02-02 16:57:59 +10:30
Toby Zerner
6568d7d269 Clean up post stream 2015-02-02 16:55:22 +10:30
Toby Zerner
f7575cd694 Tweaks to composer and discussion styles 2015-01-30 13:35:54 +10:30
Toby Zerner
5edc3eba83 Improve "jump to last" scrolling behaviour 2015-01-30 13:05:42 +10:30
Toby Zerner
12622e6c28 Work on composer, early implementation of replying 2015-01-30 12:22:19 +10:30
Toby Zerner
c2feae406d Add ember-simple-auth, setup login
- Allow dropdown-buttons to render a partial
2015-01-30 12:21:18 +10:30
Toby Zerner
9886fb1f7a Tweak some styles
- Rename btn-blend to btn-naked
- Tweak input focus style
- Other stuff
2015-01-30 12:17:55 +10:30
Toby Zerner
cc8e889e7a Get rid of old properties 2015-01-30 12:15:38 +10:30
Toby Zerner
01f3a7dc01 Fix bug when loading a single post at the start
When loading a single post at the start of a discussion, start=0 and
end=0. But end would be set to start+limit, which was incorrect.
2015-01-30 12:15:01 +10:30
Toby Zerner
5385c79a2b Stop loading spinner from appearing at the top 2015-01-30 12:13:44 +10:30
Toby Zerner
d43db32698 Make welcome-hero close into an action 2015-01-30 12:13:06 +10:30
Toby Zerner
9938c346a1 Only load posts once when entering a discussion 2015-01-30 12:12:30 +10:30
Toby Zerner
fea84e5ed1 JsonApiAdapter fix to make index "load more" work 2015-01-30 12:05:57 +10:30
Toby Zerner
49a28eca14 Change forum title for demo 2015-01-26 12:06:54 +10:30
Toby Zerner
9c02ad518b Fix bug when dragging the scrubber 2015-01-26 11:58:49 +10:30
Toby Zerner
774b74dd0f Convert to int before checking start 2015-01-26 11:45:21 +10:30
Toby Zerner
1f23cbaf20 Allow custom icon HTML in dropdown-button
Also rename title to label
2015-01-23 15:22:58 +10:30
Toby Zerner
bbf2c971e4 Working on tests for index 2015-01-23 12:48:33 +10:30
Toby Zerner
d13ef6f1fc More flexible API URL (necessary for testing) 2015-01-23 12:48:21 +10:30
Toby Zerner
ea1b01e6b3 Clean up load more 2015-01-23 12:47:19 +10:30
Allineer
c00b68f6e4 Delete .editorconfig 2015-01-22 01:24:08 +03:00
Toby Zerner
d30b178f06 Start ember testing 2015-01-21 15:18:15 +10:30
Toby Zerner
df7da9338d Fix JSHint errors 2015-01-21 14:29:00 +10:30
Toby Zerner
bc91f61f17 Upgrade ember-cli to 0.1.7 2015-01-21 14:28:28 +10:30
Toby Zerner
74e80ea2df Implement redesign, refactor everything
- Write CSS for everything, update templates.
- Refactor discussion view. Stream is split into two components
(content and scrubber) which have their own responsibilities.
- Extract pane functionality into a mixin.
- Implement global “back button” system. You give a “paneable” target
to the application controller, the back button will modulate its
pane-related properties as necessary, and call an action when the
button is clicked.
- Extract welcome-hero into its own component.
- Lots of other general improvements/refactoring. The code is quite
well-commented so take a look!
2015-01-16 17:26:18 +10:30
Toby Zerner
abc794c966 Change the way we fetch multiple posts by ID
JSON-API specifies that multiple resources should be fetched with a
comma-separated list of IDs, i.e. discussions/1,2,3,4. But this is
problematic because if we do a findQuery with only one ID, then a
single object will come back from the API where the serializer is
expecting an array containing a single object.

Instead, I’ve just implemented an ids “filter” on the discussions index
API route (which is the default way that the adapter finds multiple
IDs.)
2015-01-16 17:26:17 +10:30
Toby Zerner
5e288f55f5 Change the way post count metadata is stored
We care about the number of “comment” posts, not the number of posts in
total.
2015-01-16 17:26:17 +10:30
Toby Zerner
7334a58db1 Clean up composer components 2015-01-07 17:25:41 +10:30
Toby Zerner
7b06d38341 Update liquid-fire 2015-01-07 17:25:40 +10:30
Toby Zerner
087eb098ea Update to ember-data b14, comment out bug for now 2015-01-07 17:25:40 +10:30
Toby Zerner
2800a7e0cc Rename/fix post stream 2015-01-07 17:25:40 +10:30
Toby Zerner
ff6c7455f5 Rework discussion/post components 2015-01-07 17:25:40 +10:30
Toby Zerner
d4e573b629 Use layoutName instead of templateName 2015-01-07 17:25:40 +10:30
Toby Zerner
f62e8e2541 Big component restructure/overhaul 2015-01-03 21:51:47 +10:30
Toby Zerner
0ed141d49e Clean up routes 2015-01-03 12:26:22 +10:30
Toby Zerner
9375f605a8 Working on interface components. 2015-01-03 12:26:14 +10:30
Toby Zerner
686c54f837 Update ember.js (fix view helper regression) 2015-01-02 17:17:19 +10:30
Toby Zerner
89c8f80f3f Working on responsive dropdown menu components. 2015-01-02 11:46:40 +10:30
Toby Zerner
690174297d Rejigging templates for redesign.
- Componentize more stuff, heading in the direction of Ember 2.0
- Start CSS from scratch
- Everything is broken atm!
2015-01-01 20:08:38 +10:30
Indrashish
ea00d1b2bb Fixed partially showing discussions pane
Referencing the discussions pane which slides out from the sidebar.

Fixed styles for pinned state of dicussions pane

Fixed padding in discussions pane
2014-12-24 23:31:01 +05:30
Toby Zerner
24617b7e1e Fix up LESS compilation. 2014-12-24 09:36:47 +10:30
Toby Zerner
0cced3d6da Update dependencies to latest versions. 2014-12-23 12:55:28 +10:30
Toby Zerner
238bb40360 Upgrade ember-cli to 0.1.4 and fix related breakage. closes #18 2014-12-23 12:45:07 +10:30
Toby Zerner
809f56f858 Delete README.md 2014-12-22 23:09:39 +10:30
Toby Zerner
a8d84934ff Fix invalid inverse relationship. 2014-12-20 21:14:10 +10:30
Toby Zerner
1d8cda3c17 Get rid of some troublesome dependencies for now. 2014-12-20 21:06:15 +10:30
Toby Zerner
4d0e83c03b Add temporary JSON-API Ember Data adapter. 2014-12-20 21:05:46 +10:30
Toby Zerner
74db323f83 Hello world! 2014-12-20 16:56:46 +10:30