Commit Graph

8265 Commits

Author SHA1 Message Date
Toby Zerner
86c4a0dbb8 For some reason this didn't go in with the previous commit 2015-03-03 20:31:07 +10:30
Toby Zerner
595364f419 Responsive design baby!
Mobile responsive design with a very native feel, all in pure CSS (no
templating differences between versions — even though some things are
in very different positions.)

I’ve been working on this whole thing in my head for a while now,
planning out how certain components will be laid out on the mobile
version, and how to reason about them in the templates so that a
substantially different layout can still be achieved by only using CSS.
Today I finally wrote the CSS and it’s come together pretty damn
perfectly.

Still to come:
- Swiping left or right on discussions to reveal controls
- Tablet version
2015-03-03 20:30:52 +10:30
Toby Zerner
fb6080e488 Update readme with link to live demo 2015-02-26 16:03:20 +10:30
Toby Zerner
daf269b18a Fix welcome hero link for demo 2015-02-26 15:30:07 +10:30
Toby Zerner
cab95662db Use sender information from config 2015-02-26 15:23:09 +10:30
Toby Zerner
a07f896397 Prepare welcome hero for demo 2015-02-26 13:30:13 +10:30
Toby Zerner
171bc4691a Fix 1.11 deprecation error 2015-02-26 13:30:03 +10:30
Toby Zerner
ed706540bf Fix password hashing 2015-02-26 13:29:36 +10:30
Toby Zerner
f3021e9a85 Only reload results once when multiple params change 2015-02-26 13:29:26 +10:30
Toby Zerner
866200c2a2 Fix alerts not dismissing 2015-02-26 13:28:44 +10:30
Toby Zerner
a007f4c402 Have a go at some error handling
Still not happy with how this is all fitting together. But good enough
for now
2015-02-26 12:48:23 +10:30
Toby Zerner
b9c09dc37f Render deleted users better 2015-02-26 12:47:50 +10:30
Toby Zerner
6ad8050840 Missed some create→extend changes 2015-02-26 12:47:04 +10:30
Toby Zerner
701f27747a Temporary fix for read marking 2015-02-26 12:46:27 +10:30
Toby Zerner
0b6f143acc Remove Middleware suffix 2015-02-26 12:45:44 +10:30
Toby Zerner
0c4f280534 Fix setting user to null, for now
Still need to flesh out the exact purpose/use of the Actor class
2015-02-26 12:45:29 +10:30
Toby Zerner
5d9332fc7b Add model validation back in 2015-02-26 12:44:39 +10:30
Toby Zerner
7dd49cb445 Fix index result caching 2015-02-26 09:45:12 +10:30
Toby Zerner
05a4662a02 Tweak discussion controls dropdown split 2015-02-26 09:44:31 +10:30
Toby Zerner
b5beda019f Fix composer closing animation from minimised state 2015-02-26 09:44:12 +10:30
Toby Zerner
f5aa7bfefa Use component prototypes instead of instances
This means the component instance is created in the template, meaning
properties can be overridden in the view helper. It also just makes
more sense - a view instance doesn’t need to exist until it is rendered
in the template.
2015-02-26 09:43:53 +10:30
Toby Zerner
bde89cdc31 Upgrade to latest ember, cli, etc.
ember 1.11.0-beta.3 fixes a demo-blocking bug. ember-json-api 0.3.0
fixes a bug so we can remove custom serializer code.
2015-02-26 09:39:21 +10:30
Toby Zerner
7d3f1078ec I dun goofed 2015-02-25 15:44:09 +10:30
Toby Zerner
0a746d4a5f Fix logout action 2015-02-25 15:36:25 +10:30
Toby Zerner
d2d5883a88 Fix bug causing wrong index to be returned 2015-02-25 15:36:17 +10:30
Toby Zerner
13a4ced63d Finish signup process, including state restoration 2015-02-25 15:34:02 +10:30
Toby Zerner
327719c5a3 Remove unused template 2015-02-25 15:32:21 +10:30
Toby Zerner
5f588bc6e9 Update dependencies 2015-02-24 21:46:46 +10:30
Toby Zerner
b5ba8d1d4c Fix installation instructions 2015-02-24 21:43:08 +10:30
Toby Zerner
03c6b33a7d Fix dud composer autoloading 2015-02-24 21:24:13 +10:30
Toby Zerner
2733b5810d Upgrade to L5 + huge refactor + more. closes #2
New stuff:
- Signup + email confirmation.
- Updated authentication strategy with remember cookies. closes #5
- New search system with some example gambits! This is cool - check out
the source. Fulltext drivers will be implemented as decorators
overriding the EloquentPostRepository’s findByContent method.
- Lay down the foundation for bootstrapping the Ember app.
- Update Web layer’s asset manager to properly publish CSS/JS files.
- Console commands to run installation migrations and seeds.

Refactoring:
- New structure: move models, repositories, commands, and events into
their own namespaces, rather than grouping by entity.
- All events are classes.
- Use L5 middleware and command bus implementations.
- Clearer use of repositories and the Active Record pattern.
Repositories are used only for retrieval of ActiveRecord objects, and
then save/delete operations are called directly on those ActiveRecords.
This way, we don’t over-abstract at the cost of Eloquent magic, but
testing is still easy.
- Refactor of Web layer so that it uses the Actions routing
architecture.
- “Actor” concept instead of depending on Laravel’s Auth.
- General cleanup!
2015-02-24 20:33:18 +10:30
Toby Zerner
330bff0ec8 Preliminary email confirmation implementation
Whenever a user registers or changes their email, they are sent an
email containing a link which they must click to confirm it.

Upon registering, a user won’t be assigned to any groups and therefore
won’t have permission to do anything (but they can still log in!) Upon
confirming their email for the first time, their account will be
assigned to the Member group and thus “activated”.
2015-02-16 14:52:53 +10:30
Toby Zerner
9375e92c12 Cleanup 2015-02-16 14:50:38 +10:30
Toby Zerner
7ba59fc9a4 Better check for user property in command validators 2015-02-16 14:48:10 +10:30
Toby Zerner
c03d8b96b8 Fix modal appearance 2015-02-16 14:12:48 +10:30
Toby Zerner
daa87269b4 Add a little spin transition on the search 'x' :) 2015-02-16 13:30:11 +10:30
Toby Zerner
4f8157a66f Better LESS configuration/theme customisability 2015-02-16 12:40:57 +10:30
Toby Zerner
5fa947df56 Add styles for post footer/actions
Will be used by extensions
2015-02-13 22:03:34 +10:30
Toby Zerner
4a10ae4e98 Fix logout action 2015-02-13 11:47:58 +10:30
Toby Zerner
d44772af3d Oops 2015-02-13 11:47:37 +10:30
Toby Zerner
b337d5cd72 Clean up user avatar/color generation 2015-02-13 11:45:14 +10:30
Toby Zerner
84f29b3419 Seed renamed posts properly 2015-02-13 11:44:19 +10:30
Toby Zerner
edfd053fc2 Explicit mapping of post type to class 2015-02-13 10:30:32 +10:30
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