84 Commits

Author SHA1 Message Date
anuveyatsu
b19a37e21a [docs][xs]: notes about which CKAN features aren't yet in Portal. 2020-06-26 13:42:03 +06:00
anuveyatsu
90f3fc0f68 [docs][s]: about data fetching using Apollo client. 2020-06-24 15:00:25 +06:00
anuveyatsu
0dbe145e8c [clean up][xs]: removed unnecessary imports. 2020-06-24 14:59:54 +06:00
anuveyatsu
5e62325c91 [recent datasets][xs]: only need first 3 datasets. 2020-06-24 13:02:33 +06:00
anuveyatsu
19f1d4b408 [bug fix][xs]: some datasets may not have owner organization. 2020-06-24 12:55:29 +06:00
Anuar Ustayev
cf6fbe60a8
Merge pull request #28 from datopian/make-recent-datasets-dynamic
[Home][s]- Remove Hardcoded Recent Datasets
2020-06-24 12:48:17 +06:00
anuveyatsu
11feb03a7e [bug fix][xs]: fix wrong sort arg in variables. 2020-06-24 12:46:07 +06:00
anuveyatsu
a677e0894b [home page][xs]: DRY in mocks. 2020-06-24 12:38:40 +06:00
anuveyatsu
01566a0cc7 [home page][xs]: integrate with Apollo. 2020-06-24 12:32:44 +06:00
anuveyatsu
0bc0424d14 Merge branch 'master' into make-recent-datasets-dynamic 2020-06-24 12:23:39 +06:00
Anuar Ustayev
3909dfacec
Merge pull request #27 from datopian/feature/apollo-setup
Feature/apollo setup
2020-06-24 12:17:56 +06:00
anuveyatsu
4d065955b3 [bug fix][xs]: Form component doesn't expect any args. 2020-06-24 12:14:55 +06:00
anuveyatsu
cc63506570 [apollo dependencies][xs]: using stable version of apollo-link-rest that doesn't depend on a new @apollo/client package that has number of bugs.
This was breaking deployments when trying to build production bundles.
See this issue for details: https://github.com/apollographql/apollo-client/issues/6011
2020-06-24 12:12:55 +06:00
anuveyatsu
4baf72273d [resource page][m]: refactored page and components to work with Apollo client wired with CKAN API. 2020-06-24 11:37:11 +06:00
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
Gift Egwuenu
702f796d6f [home][s]-make recent dataset section dynamic 2020-06-22 10:36:59 +01: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
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