Commit Graph

39 Commits

Author SHA1 Message Date
alisan617
ac93935486 discussion all topics in breadcrumbs moved away from h6 2017-01-27 13:45:20 -05:00
alisan617
f12dfae2d1 inline discussion component filtering and sorting
TNL-6117
2017-01-20 09:52:44 -05:00
Brian Jacobel
f58076e726 Don't hijack existing context to do this 2017-01-10 10:00:23 -05:00
Brian Jacobel
30f62203e2 Hide read state on profile pages. Add tests for read state generally 2017-01-10 10:00:23 -05:00
Andy Armstrong
f58d920b13 Hide the navigation bar when sorting won't work 2016-12-13 17:23:19 -05:00
Andy Armstrong
4922d7753e Clean up discussion styles to be consistent across views 2016-12-13 08:39:51 -05:00
Andy Armstrong
7287e8ef85 Fix a number of styling bugs 2016-12-12 17:07:06 -05:00
Brian Jacobel
54a9db776d Remove thread 'inline' rendering mode, make tab mode the One True Mode 2016-12-12 11:01:58 -05:00
alisan617
f5936b36ae remove Related to in inline, add it to Profile, spacing nits 2016-12-12 11:01:57 -05:00
alisan617
03d93a2e89 copy edits and profile page title 2016-12-12 11:01:57 -05:00
Brian Jacobel
787dac9046 use DiscussionThreadListView for user profile discussion 2016-12-12 11:01:56 -05:00
alisan617
82d05c6eb7 make new post view overlay-ish 2016-12-12 11:01:55 -05:00
Brian Jacobel
5dad2afa44 Squashed minor issue fixes in inline discussion view
Make this selector more specific, was getting overrides

Fix Teams implementation of inline discussion

Fix LMS tests

Work on pagination support

Jasmine tests for this feature

Focus works when navigating between list and detail

Fix safe template violations
2016-12-12 11:01:25 -05:00
attiyaishaque
be32d74afe TNL-6017 Receive Updates checkbox saved in discussion forums. 2016-12-01 11:25:44 +05:00
alisan617
ad2a2f29bc discussion thread post preview in DiscussionThreadListView 2016-11-18 13:58:17 -05:00
alisan617
cb14d1598e discussion course settings change 2016-11-15 15:05:28 -05:00
alisan617
57fa123f5e Revert "Revert PR#13843" 2016-11-15 14:46:57 -05:00
alisan617
18e7322e8d Revert "Refactor discussion tab UI code into parts to be reusable for inline discussions"
This reverts commit e80d9b5792.
2016-11-14 21:43:03 -05:00
Awais Jibran
92b99c7dc3 Fix discussion user roles 2016-11-10 17:11:52 +05:00
alisan617
e80d9b5792 Refactor discussion tab UI code into parts to be reusable for inline discussions
TNL-5669
2016-11-08 14:17:01 -05:00
Toby Lawrence
2acb4a6cad [PERF-386] Utilize ForumsConfig to enable and disable forums.
This specifically enables/disables the underlying comment service client
used to make calls to the service.  When disabled, this client will now
throw an exception which can be propagated upwards so that callers can
make the right decision about how to notify users of the error, or
handle retry, etc etc.
2016-11-03 10:20:19 -04:00
Toby Lawrence
6704e17afd [TNL-5632] Optimize the single_thread view.
Firstly, we're now explicitly instructing the comments service to not
return thread responses/comments if the request isn't AJAX.  So, if you
load the URL for a single discussion thread in your browser, this would
be a non-AJAX call and we'll avoid loading the responses for the entire
thread behind-the-scenes.  Big win here for large threads.

Next, we removed a redundant "get threads" call which was also happening
behind-the-scenes.  This call was redundant as the front-end JS also
grabs the thread list when a topic is chosen, so we were making an
extranenous call for no benefit.  Poof, gone!

Finally, we added some caching of database queries that are required to
drive a lot of the permissions/cohorts machinery around discussion.
This will have a minimal effect but introduced a cleaner way to apply
general memoization at the per-request level which will let us further
cache things as we identify them as issues.
2016-10-18 13:11:30 -04:00
Sylvia Pearce
fba74adf76 Merge pull request #13490 from edx/sylvia/lms_help_fixes
LMS context sensitive help minor fixes
2016-09-16 09:59:09 -06:00
Sylvia Pearce
a448d74f6c Add more specific help links for four LMS pages 2016-09-16 09:07:22 -06:00
Robert Raposa
f774ccf3f8 Remove support for sort_order (order_direction).
- Default of "desc" is all that is in use, and remains as-is.
- Discussion API keeps order_direction param, to minimize changes,
but it only accepts "desc".
- Discussion webapp simply no longer sends in the sort order.
2016-09-15 12:11:01 -04:00
Robert Raposa
2abe3f7e01 Reuse already retrieved user object. 2016-09-15 09:52:34 -04:00
Brian Jacobel
c1cf5469cd Merge pull request #13450 from edx/bjacobel/forum-header-aria-label
Wrap the discussion header in a <nav aria-label="Forums">
2016-09-13 14:06:30 -04:00
Brian Jacobel
11004e6386 Wrap the discussion header in a <nav aria-label="Forums">
TNL-5193
2016-09-13 12:49:16 -04:00
Nimisha Asthagiri
5822919549 Cache Enrollment state for (user, course) in request cache. 2016-09-12 15:56:03 -04:00
Toby Lawrence
26891bc0fd Default to not requesting responses when grabbing a single thread.
We're often grabbing the metadata of a specific thread to then be able
to perform other operations, but we never need the actual responses or
comments of a thread unless we're displaying it in the normal forum
view.

This change sets a default of with_responses=False, which instructs the
comment service to not send back the responses/comments for the given
thread.  We only ask for responses in the case of rendering a single
thread or inline discussion.
2016-09-07 23:17:11 -04:00
Andy Armstrong
f1bad0721f Make discussion links into buttons for a11y
TNL-4640
2016-09-02 16:34:15 -04:00
Andy Armstrong
9899a1e520 Fix discussion color contrast and remove gradients
TNL-5163
2016-08-29 17:28:55 -04:00
Awais Jibran
68303997c8 Fix Discussion blackout date still has Add a Response text box
TNL-5111
2016-08-24 12:03:29 +05:00
Brian Jacobel
df35415ec1 Remove forum-nav-header and wire breadcrumbs to replace it
TNL-5186
2016-08-17 16:21:13 -04:00
Brian Jacobel
1f2c843f23 Move search box to header. Add search results to breadcrumbs when you search 2016-08-17 16:21:12 -04:00
Brian Jacobel
4c4476a720 Fix lint issues on feature branch 2016-08-17 16:21:12 -04:00
Brian Jacobel
a60d456f28 Add breadcrumbs to discussion forums header 2016-08-17 16:21:12 -04:00
Andy Armstrong
6c54035197 Add a content header to the discussion board 2016-08-17 16:20:45 -04:00
Andy Armstrong
89f93df46e Refactor out a new discussions Django app 2016-08-17 16:20:45 -04:00