Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Urql graphql client #10

Open
wants to merge 6 commits into
base: main
Choose a base branch
from

Conversation

martinhampel
Copy link

@martinhampel martinhampel commented Mar 25, 2021

Closes #8

added db connection
added customer table
split to load and display component
.gitignore Outdated
@@ -5,6 +5,9 @@
/.pnp
.pnp.js

# packages
package-lock.json
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we would like to commit this file

src/index.tsx Outdated
case 'sk':
case 'sk-SK':
return import('./compiled-lang/sk.json');
case "sk":
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

do not change formatting when you are adding a feature (in future there are will be merge conflicts...)

import { CustomersTable } from "./CustomersTable";

const SEARCH = gql`
query Search($search: String!) {
Copy link
Contributor

@jozef-slezak jozef-slezak Mar 26, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

query searchCustomers
I am not sure if $search should be mandatory.

change Prettier settings (single quotes, remove semicolons)
added package-lock.json
package.json Outdated
@@ -39,6 +42,7 @@
]
},
"devDependencies": {
"@types/react": "^17.0.3",
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

let's have the same version with react...

src/index.tsx Outdated
import { IntlProvider } from 'react-intl'
import { BrowserRouter as Router, Switch, Route } from 'react-router-dom'
import { Dashboard, HelloWorld } from './components'
import { CustomerListView } from './views/customer/app'
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let's rename the file ./view/customer/app to ./view/customer/CustomerListView

header: <Text>Registration date</Text>,
primary: true,
render: (customer) => (
<Text>{moment(customer.createdAt).format('DD/MM/YYYY')}</Text>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please, format using react-intl instead moment

- change same react version
- rename file customer/app to customer/CustomerListView
- format using react-intl
package.json Outdated
"grommet": "2.11.0",
"grommet-icons": "4.4.0",
"grommet-theme-v1": "^0.1.0",
"moment": "^2.27.0",
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

please remove unused dependency

@jozef-slezak jozef-slezak linked an issue Jun 9, 2021 that may be closed by this pull request
2 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Urql graphql client
2 participants