108 Commits

Author SHA1 Message Date
anuveyatsu
8b8adccc74 [error component][xs]: move it to top level dir so we can easily use it for other components. 2020-06-19 18:11:34 +06:00
Gift Egwuenu
676d54280d [home][s] - add mock data for recent datasets 2020-06-19 13:07:41 +01:00
anuveyatsu
5f84d7f5b7 [search][s]: implement 'Form' component that merges 'Input' and 'Sort' components and fixes 'Sort' functionality. 2020-06-19 17:05:55 +06:00
anuveyatsu
dfd5efa961 [apollo][xl]: mocked graphql setup + search page working from apollo now. 2020-06-19 16:23:01 +06:00
anuveyatsu
f0d1bc0d3b [apollo][l]: initial commit for setting up Apollo. 2020-06-19 10:25:21 +06:00
anuveyatsu
9b957abf06 Merge branch 'master' of github.com:datopian/portal 2020-06-18 10:31:38 +06:00
Anuar Ustayev
5e2ee1955a
Should be double 'm' in 'commit' + added more formats that should be processed by prettier. 2020-06-17 18:35:48 +06:00
Anuar Ustayev
4452ee01c0
Merge pull request #23 from datopian/setup-code-formatter
[Setup][s]- Setup Prettier as Code Formatter
2020-06-17 18:24:39 +06:00
Gift Egwuenu
5de8ace421 [setup][s]-setup code formatting with prettier
- add husky and lint-stages for pre-commit hooks
 - format entire codebase using `yarn format`
2020-06-17 13:07:00 +01:00
anuveyatsu
ec646f1f10 [tests][m]: more tests for Search components. 2020-06-17 16:40:04 +06:00
anuveyatsu
2ecd88388a Merge branch 'implement-minimal-front-page' 2020-06-17 11:50:30 +06:00
anuveyatsu
72b2a60bbd [bug][xs]: location of logo. 2020-06-17 11:49:52 +06:00
anuveyatsu
d9fa113723 Merge branch 'master' into implement-minimal-front-page 2020-06-17 11:43:54 +06:00
anuveyatsu
f2e15577e2 [data explorer][xs]: just display resource metadata and About component on resource page.
For details see https://github.com/datopian/portal/issues/12
2020-06-17 11:34:14 +06:00
Gift Egwuenu
04128bc22c [home][m]-implement minimal front page 2020-06-15 16:18:58 +01:00
anuveyatsu
bb22cac696 [resource page][m]: initially working resource page with support of datastore and non-datastore resources. 2020-06-15 15:53:12 +06:00
anuveyatsu
bc6849b7dc [Resources][s]: the component requires 'datapackage' object to construct correct resource paths. 2020-06-15 11:51:40 +06:00
anuveyatsu
77275da1ab [mocks][xs]: add reosurce urls and add 'package_show' mock for 'population' dataset. 2020-06-15 11:50:47 +06:00
anuveyatsu
8abf32c402 [bug fix][xs]: don't fail if dataset has no owner org. 2020-06-12 19:35:37 +06:00
Anuar Ustayev
a1cb90a85e
Added link to live demo. 2020-06-12 19:21:43 +06:00
anuveyatsu
c21731b830 [clean up][xs]: Sort component doesn't need any props. 2020-06-12 19:05:55 +06:00
anuveyatsu
c8806b8441 [setup][xs]: rename '.ts' => '.js' to be able to 'next build'.
With '.ts' when building next it fails with following error:

```
18:56:07.172
ERROR in /vercel/2f45f54/pages/[org]/[dataset]/index.tsx(3,19):
18:56:07.172
3:19 File '/vercel/2f45f54/utils/index.ts' is not a module.
18:56:07.172
    1 | import { GetServerSideProps } from 'next'
18:56:07.172
    2 | import config from '../../../config'
18:56:07.172
  > 3 | import utils from '../../../utils'
18:56:07.172
      |                   ^
18:56:07.172
    4 | import Head from 'next/head'
18:56:07.172
    5 | import Nav from '../../../components/Nav'
18:56:07.172
    6 | import About from '../../../components/dataset/About'
```
2020-06-12 19:04:26 +06:00
anuveyatsu
5698f769b9 [tests][xs]: updated snapshots. 2020-06-12 18:55:06 +06:00
anuveyatsu
f16a8339a8 [dataset][m]: improved dataset page to have better layout + added more details to the mocks. 2020-06-12 18:27:25 +06:00
anuveyatsu
3f8a755d25 [search][s]: improve layout/design in the search page. 2020-06-12 17:56:16 +06:00
anuveyatsu
322dd49309 [mocks][xs]: add description and resource title into population mock data. 2020-06-12 17:55:24 +06:00
anuveyatsu
a41fc9396a [nav / home][s]: re-implemented navbar and removed number of placeholder elements from home page. 2020-06-12 17:54:40 +06:00
anuveyatsu
c9d357f6f5 [tests][xs]: updated test name and snapshot on home page. 2020-06-12 16:45:26 +06:00
anuveyatsu
ebfe884b7b [tests][s]: initial tests for components. 2020-06-12 16:16:56 +06:00
anuveyatsu
2f8707a6d4 [clean up][xs]: removed hard-coded dataset and resource pages. 2020-06-12 15:25:38 +06:00
anuveyatsu
8f25a77653 [dataset][l]: functional dataset page.
Mocked page is here: `/@world-bank/gdp`
2020-06-12 15:18:20 +06:00
anuveyatsu
45c30dd7a1 [mocks][s]: DRY with mocks + added a mock for 'packag_show' API. 2020-06-12 15:17:20 +06:00
anuveyatsu
81351fe972 [dataset][xs]: stub for dataset page. 2020-06-12 14:50:19 +06:00
anuveyatsu
5a94d9d368 [search][xl]: initial search page with essential components.
- No pagination at the moment.
- Sorting isn't functional yet.
- Search works - we only have mocks for searching 'gdp' param.
2020-06-12 14:49:12 +06:00
anuveyatsu
3715268134 [mocks][m]: more detailed mocks with specific query param. 2020-06-12 14:47:38 +06:00
anuveyatsu
03578d9a11 [utils][xl]: copied over utils from frontend-v2. 2020-06-12 14:46:35 +06:00
anuveyatsu
56aaed8f87 [setup][xs]: we should have only one lock file to prevent conflicts in dependencies.
By default, we use 'yarn'.
2020-06-11 19:12:05 +06:00
anuveyatsu
b477a3aace [setup][m]: created basis for mocks and config module.
- Added minimal mock for 'package_search' CKAN API.
- 'config' module is based on frontend-v2.
2020-06-11 19:10:34 +06:00
Rufus Pollock
9bb98ce6d3 [README][l]: first pass at README driven development with intro and outline of getting started - refs #1.
* Add intro
* Add getting started with idea of `create-portal-app`
* Major refactor moving developer stuff into developer section.
2020-06-09 15:13:51 +02:00
Gift Egwuenu
255d041acc
Merge pull request #14 from datopian/implement-testing
[tests][m]-add-tests-for-existing-pages
2020-06-04 11:50:12 +01:00
Gift Egwuenu
aea6b830e5 [tests][m]-add-tests-for-all-pages 2020-06-04 11:48:02 +01:00
Gift Egwuenu
dab0865368
Merge pull request #7 from datopian/fix/resource-url
[fix][m]- Rename Preview URL
2020-06-02 10:18:58 +01:00
Gift Egwuenu
237b4df22d [fix][m]-rename-preview-url
- add favicon to the website
2020-06-02 10:16:20 +01:00
Gift Egwuenu
8ce4996da1
Merge pull request #6 from datopian/feat/home-page
[home][m]-create-landing-page
2020-05-29 08:58:57 +01:00
Gift Egwuenu
f5be5b3129 [home][m]-create-landing-page 2020-05-29 08:10:32 +01:00
Gift Egwuenu
6c6bc41aea
Merge pull request #5 from datopian/feat/add-preview-page
[preview][s]: add a data preview page
2020-05-28 09:21:34 +01:00
Gift Egwuenu
945fff57ab [preview][s]: add a data preview page
- Adjust styling in showcase page
2020-05-28 08:55:39 +01:00
Gift Egwuenu
9a1ee985be
[showcase][s]-link page from homepage (#4) 2020-05-27 14:15:30 +02:00
Gift Egwuenu
f23a35d6f7
Merge pull request #3 from datopian/feat/showcase-page
Feat/showcase page
2020-05-27 10:51:38 +01:00
Gift Egwuenu
f2f7116d99 [showcase][s] - add data files section 2020-05-27 10:50:48 +01:00