@times-components/author-profile

6.17.48 • Public • Published

Author Profile

This author profile package contains the data provider that fetches the articles for the article list component to show articles associated with a particular author. This is distinct from the concept of an author profile page in the pages package which contains the data provider for the author.

Author profile makes use of the article list package which does most of the heavy lifting in terms of pagination, error handling, layouts and lazy loading. This package sets out what the article list page header should look like, and manages its own tracking.

Contributing

Please read CONTRIBUTING.md before contributing to this package

Running the code

Please see our main README.md to get the project running locally

Development

The code can be formatted and linted in accordance with the agreed standards.

yarn fmt
yarn lint

Testing

This package uses yarn (latest) to run unit tests on each platform with jest.

yarn test:web

Visit the official storybook to see our available author profile templates.

Future

There is a consideration to move all providers to the provider package. This is currently under advisement.

A lot of event handling is currently passed down through numerous components. We intend to utilise the context package (using React Context API) to manage these events.

Package Sidebar

Install

npm i @times-components/author-profile

Weekly Downloads

6,848

Version

6.17.48

License

BSD-3-Clause

Unpacked Size

475 kB

Total Files

27

Last publish

Collaborators

  • marcincuber
  • newsuk
  • news-tools