68 Commits

Author SHA1 Message Date
anuveyatsu
2589ecaeeb [dataset page][m]: setup dataset page to work with Apollo client connected to CKAN API. 2020-06-23 14:43:09 +06:00
anuveyatsu
1240eb8170 [search][xs]: clean up unnecessary variable assignment. 2020-06-23 14:06:26 +06:00
anuveyatsu
10b0b2a865 [clean up][s]: removed outdated apollo server mocks and config module which is now replaced by next.config.js.
Also, removed all leftover and not used packages and npm scripts.
2020-06-23 10:54:57 +06:00
anuveyatsu
55d9c68b34 [mocks][m]: setup CKAN api mocks with the new apollo setup. 2020-06-23 10:43:53 +06:00
anuveyatsu
50119bf33f [bug fix][xs]: componenet name has changed. 2020-06-23 10:10:01 +06:00
anuveyatsu
d3a2a1da8e [ckan api + apollo][l]: setup apollo client to connect to actual CKAN API. 2020-06-23 10:09:19 +06:00
anuveyatsu
bbea63aae7 [mocks][xs]: refactor mock server module. 2020-06-22 12:33:47 +06:00
anuveyatsu
e11133c32e [resource page][m]: refactor to work with Apollo. 2020-06-22 10:58:30 +06:00
anuveyatsu
9ae654dc71 [dataset page][xl]: refactor to work with Apollo. 2020-06-22 10:39:07 +06:00
anuveyatsu
04afb487c7 [search][xs]: clean up imports. 2020-06-19 18:13:19 +06:00
anuveyatsu
1fd02c18b7 [mocks][s]: move graphql schema into separate file and add 'DatasetResponse' type. 2020-06-19 18:12:21 +06:00
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
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