Commit graph

612 commits

Author SHA1 Message Date
Robin Ward
76f7786d0d Support saving posts via Store 2015-04-15 14:54:36 -04:00
Robin Ward
d4a05825da Convert Composer to use Store
- Uses store for `PostStream`, `TopicList` too
2015-04-15 14:54:36 -04:00
Robin Ward
a83a19f6ce ES6 module migrations 2015-04-15 14:54:36 -04:00
Robin Ward
22ffcba8e6 Convert Discourse.Post to ES6 and use Store model
- Includes acceptance tests for composer (post, edit)
- Supports acceptance testing of bootbox
2015-04-15 14:54:36 -04:00
Ben Hadley-Evans
c3b461f58d Add blank alt attribute to avatars.
This was giving an ugly border to avatars in the user card as the full size version loaded in Firefox.
2015-04-14 14:39:40 +01:00
Robin Ward
ee3442e562 Also rename the integration directory to be acceptance 2015-04-06 15:47:39 -04:00
Robin Ward
7aa68eaeab Rename "Integration" tests to "Acceptance" tests.
The term "Acceptance" seems to have won out everywhere and I don't want
our codebase to be confusing.
2015-04-06 14:14:00 -04:00
Robin Ward
da9e2792eb FIX: Bugs with autocomplete
It wasn't tearing itself down properly. It was swallowing events.
2015-04-06 14:04:42 -04:00
Sam
e11802f5c5 bypass test while @eviltrout helps me to fix it 2015-04-02 17:39:41 +11:00
Régis Hanol
0f4a4651a9 FIX: youtube preview video title link doesn't work 2015-04-01 18:23:27 +02:00
Régis Hanol
b277e71c15 FIX: login-required tests 2015-03-26 12:09:30 +01:00
Sam
512ad4dae3 not sure why this is failing 2015-03-26 17:24:35 +11:00
Régis Hanol
3954f69514 FIX: hoisting issue with regexp replacement patterns 2015-03-23 16:33:41 +01:00
Ben Hadley-Evans
38fbbb28e3 Fix Discourse.Utilities.avatarImg test on Fx.
This qUnit test was failing in Firefox 36 with "setting a property that has only a getter" because devicePixelRatio was being changed directly. The fix uses defineProperty to redefine devicePixelRatio instead.
2015-03-20 12:53:56 +00:00
Régis Hanol
11bf7da63c FIX: profile picture wasn't properly updating 2015-03-19 19:57:07 +01:00
Régis Hanol
5084e2bdf1 Merge pull request #3284 from techAPJ/patch-1
FEATURE: new site setting min_first_post_length
2015-03-19 19:55:27 +01:00
Arpit Jalan
b706307ac7 FEATURE: new site setting min_first_post_length 2015-03-20 00:20:38 +05:30
Robin Ward
7ef306cd3b A bunch of tweaks to the Users directory
- Move user directory from `/directory` to `/users/`
- Defaults to 'weekly' time period
- Don't include deleted topics/posts in the results
- Move heart icon to header instead of on each row
- "Users" instead of "Users found"
2015-03-19 12:29:38 -04:00
Régis Hanol
df3b1f6968 FIX: editing a post wasn't showing error messages from the server 2015-03-19 12:25:15 +01:00
Robin Ward
3d2d224312 FEATURE: User Directory, with sorting and time period filter 2015-03-18 15:20:34 -04:00
Régis Hanol
aa41a9ce70 FIX: remove empty lines but keep whitespace on first line in code blocks 2015-03-17 17:27:16 +01:00
Sam
8b4469a3f0 improve tests, ensure stream grows if all posts are loaded on commit 2015-03-16 17:40:49 +11:00
Régis Hanol
424a3b042a FEATURE: unified UI for pinning/banner topics
REFACTOR: ES6ified all the modals
2015-03-14 01:18:05 +01:00
Robin Ward
77f9d1e223 Use pretender's passthrough for dynamically loaded scripts 2015-03-13 12:14:22 -04:00
Sam
01fcc7503a big hacks to get tests to pass 2015-03-13 17:45:55 +11:00
Sam
a82530012a FEATURE: Allow selection of highlight js languages
PERF: stop loading highlight js on load

To get latest highlight js run bin/rake highlightjs:update
2015-03-13 16:18:59 +11:00
Robin Ward
69851bc6cf Deprecates global use of Discourse.MessageBus
We can use DI for this, which makes it easier for plugins to subscribe
to the message bus.
2015-03-12 12:27:30 -04:00
Régis Hanol
9395bbbbea add test for fix in 9061c26e52 2015-03-12 16:20:14 +01:00
Robin Ward
7c9fb5d3fc Refactored SiteMap/Header to support more dynamic flag counts
Also fixes deprecation in `plugin-outlet`
2015-03-11 16:12:53 -04:00
Régis Hanol
70f00e31df FIX: pre-hoist code blocks & spans 2015-03-09 12:32:37 +01:00
Régis Hanol
9b9bd9c0a1 fix my git foo 2015-03-07 02:36:35 +01:00
Régis Hanol
f95c86ac72 FIX: hoist code blocks content before doing any kind of processing 2015-03-07 02:16:27 +01:00
Robin Ward
7c25efc095 Move identity map into the store, shouldn't have been in the adapter 2015-03-06 13:23:38 -05:00
Robin Ward
ecb553af3f Add tests for our store 2015-03-06 12:37:24 -05:00
Sam
db7a225df7 correct specs 2015-03-06 14:36:00 +11:00
Régis Hanol
809edd4da3 FIX: user-card tests 2015-03-04 13:02:36 +01:00
Robin Ward
9974a26c47 FEATURE: Can specify a list of default_avatars urls.
These new avatars will be used by new users until they upload their own
avatars. If left blank, letter avatars are used.
2015-03-03 16:19:29 -05:00
Régis Hanol
8ebab581ad temporarily disable test 2015-03-02 20:02:20 +01:00
Neil Lalonde
c04b214910 FEATURE: don't allow username and email to be the same 2015-02-27 13:47:43 -05:00
Robin Ward
be9feeb918 Replace CurrentUserMixin with an injected currentUser
This is a lot simpler and removes the need for stubbing singletons
in unit tests.
2015-02-27 10:33:39 -05:00
Neil Lalonde
cf81b3f86d FEATURE: don't allow username and password to be the same 2015-02-25 12:00:13 -05:00
Robin Ward
9264a7914f Removed a bunch of Discourse.Site globals 2015-02-23 12:36:04 -05:00
Ed Gibbs
c50205725f FIX: Default sort grantable badges by name
Currently has no default sort and was stated as a bug here:
  https://meta.discourse.org/t/badges-not-sorted-in-grant-badge-dropdown/23739
  (Post was recently deleted or made private?)
2015-02-15 17:37:11 -08:00
Robin Ward
a519fd5bcf FIX: Highlighting was not being applied after some rendering.
Also includes a bunch of ES6 stuff.
2015-02-12 15:37:02 -05:00
Robin Ward
cf3582bedb FIX: JSHint wasn't validating ES6 files, this fixes a bunch of errors. 2015-02-10 17:21:16 -05:00
Régis Hanol
b809e02c6c FIX: clicking an attachment link works only once 2015-02-09 17:49:59 +01:00
Robin Ward
a65e0a80ba Add support for more ES6 features 2015-02-06 13:26:33 -05:00
Régis Hanol
42ab39ce18 fix the build (cc @riking) 2015-02-05 12:57:33 +01:00
Régis Hanol
0a252d7785 FIX: quote whote post should insert at cursor position 2015-02-02 19:08:28 +01:00
Sam
a591c019d4 correct tests 2015-01-29 17:57:34 +11:00