Keith Grootboom c65230d5da feat: show empty state on posts pages [BD-38] [TNL-9484] [SE-5347] (#65)
When a user browses the discussion pages, show a page showing
that there is no data, rather than a blank page.

This PR implements the designs for this page while refactoring the
DiscussionHome component so that it doesn't get much larger.

- Created a hooks file and move some of the larger hooks in there.
- Added selectors for the state that would be needed for the
  components.
- Split the DiscussionHome into DiscussionContent and
  DiscussionSidebar to make it clearer where certain things get
  rendered.
- Adds a message to the sidebar to display No Results when
  appropriate.
- Added the NoResults component to show when filtering posts and there
  is nothing to show.
2022-03-09 12:15:32 +00:00
2020-09-07 14:44:02 +05:30
2020-09-07 14:44:02 +05:30
2021-09-14 21:51:09 +05:30
2020-09-07 14:44:02 +05:30
2020-09-07 14:44:02 +05:30
2020-08-11 19:04:16 -04:00
2020-09-07 14:44:02 +05:30
2020-09-07 14:44:02 +05:30
2020-09-07 14:44:02 +05:30
2020-09-07 14:44:02 +05:30

|Build Status| |Codecov| |license|

frontend-app-discussions
========================

Please tag **@edx/fedx-team** on any PRs or issues.  Thanks.

Introduction
------------

This repository is a React-based micro frontend for the Open edX discussion forums.

**Installation and Startup**

1. Clone your new repo:

  ``git clone https://github.com/edx/frontend-app-discussions.git``

2. Install npm dependencies:

  ``cd frontend-app-discussions && npm install``

3. Start the dev server:

  ``npm start``

The dev server is running at `http://localhost:2002 <http://localhost:2002>`_.

Project Structure
-----------------

The source for this project is organized into nested submodules according to the ADR `Feature-based Application Organization <https://github.com/edx/frontend-app-discussions/blob/master/docs/decisions/0002-feature-based-application-organization.rst>`_.

Build Process Notes
-------------------

**Production Build**

The production build is created with ``npm run build``.

Internationalization
--------------------

Please see `edx/frontend-platform's i18n module <https://edx.github.io/frontend-platform/module-Internationalization.html>`_ for documentation on internationalization.  The documentation explains how to use it, and the `How To <https://github.com/edx/frontend-i18n/blob/master/docs/how_tos/i18n.rst>`_ has more detail.

.. |Build Status| image:: https://api.travis-ci.org/edx/frontend-app-discussions.svg?branch=master
   :target: https://travis-ci.org/edx/frontend-app-discussions
.. |Codecov| image:: https://codecov.io/gh/edx/frontend-app-discussions/branch/master/graph/badge.svg
   :target: https://codecov.io/gh/edx/frontend-app-discussions
.. |license| image:: https://img.shields.io/npm/l/@edx/frontend-app-discussions.svg
   :target: @edx/frontend-app-discussions
Description
No description provided
Readme AGPL-3.0 12 MiB
Languages
JavaScript 97.9%
SCSS 1.2%
HTML 0.7%
Makefile 0.2%