Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
448 commits
Select commit Hold shift + click to select a range
92d1609
Merge pull request #49 from CivicDataLab/43-update-dataset-detail-pag…
bhavabhuthi May 11, 2024
e338c3e
Merge pull request #54 from CivicDataLab/50-edit-resource
bhavabhuthi May 11, 2024
84a3c7a
Merge pull request #55 from CivicDataLab/53-add-footer
bhavabhuthi May 11, 2024
047c735
change id
sanjaypinna May 9, 2024
2072309
add datasets query and change data
sanjaypinna May 9, 2024
b5bdec6
update data
sanjaypinna May 9, 2024
895d9f5
add titleCase function
sanjaypinna May 9, 2024
7f44645
update data
sanjaypinna May 9, 2024
40ea4bc
add spinner and modify data
sanjaypinna May 10, 2024
af74c31
add resource query
sanjaypinna May 10, 2024
9e71d54
remove data prop from resource
sanjaypinna May 10, 2024
6a9f7ad
fix spinner alignment
sanjaypinna May 10, 2024
bab5f28
add query in accessmodel
sanjaypinna May 10, 2024
aa247ce
add generated graphql document
sanjaypinna May 10, 2024
31b18c7
remove log
sanjaypinna May 10, 2024
8cd4ac6
add accessModelResource query
sanjaypinna May 10, 2024
28391bd
chang access model type
sanjaypinna May 10, 2024
2773b96
modify query and resources in access model
sanjaypinna May 10, 2024
a9ce24a
Merge pull request #56 from CivicDataLab/51-integrate-query-in-datase…
bhavabhuthi May 12, 2024
e493938
add createResourceFilesDoc for upload resource
aashimgarg May 13, 2024
4a66983
add getResourceDoc query for ResourceList
aashimgarg May 13, 2024
bcb3c04
add updateResourceDoc mutation for file changes
aashimgarg May 13, 2024
90414a5
add toast component after resource are saved
aashimgarg May 13, 2024
ea9fc48
modify data
sanjaypinna May 13, 2024
995b6ef
fix padding
sanjaypinna May 13, 2024
9450eae
add access models
sanjaypinna May 13, 2024
d2d527c
update Custom Tags component
sanjaypinna May 13, 2024
49fb112
fix icon size
sanjaypinna May 13, 2024
dab3e98
add a condition to show resources
sanjaypinna May 13, 2024
844bc51
fix typo in footer and add links to the logos
sanjaypinna May 13, 2024
152f715
fix size
sanjaypinna May 13, 2024
1d5c4c7
add download icon
sanjaypinna May 14, 2024
653919a
add env to readme
sanjaypinna May 14, 2024
8577e75
add download button in access model
sanjaypinna May 14, 2024
e6d8312
add download feature
sanjaypinna May 14, 2024
ad92bad
modify env variables
sanjaypinna May 14, 2024
adbabdb
Merge pull request #59 from CivicDataLab/58-add-access-models-info-in…
bhavabhuthi May 14, 2024
bdcdce4
Merge pull request #61 from CivicDataLab/57-integrate-mutation-for-re…
bhavabhuthi May 14, 2024
7d01509
add breadcrumbs in layout
sanjaypinna May 14, 2024
c045d7a
add publish tab
sanjaypinna May 14, 2024
be0dda5
add publish page
sanjaypinna May 14, 2024
08dc086
add border and padding to the sidebar
sanjaypinna May 14, 2024
f7bfea8
add query in publish page and add summary of dataset
sanjaypinna May 14, 2024
321af31
add generated graphql documents
sanjaypinna May 15, 2024
94b823d
add publish dataset mutation
sanjaypinna May 15, 2024
16ee824
add ResourceListView UI layout
aashimgarg May 15, 2024
90de1f9
fetch resources using getResourceDoc query
aashimgarg May 15, 2024
f6defde
add mutation for delete custom action
aashimgarg May 15, 2024
df7bee4
integrate listView queryState for route navigation
aashimgarg May 15, 2024
d4f348b
Merge pull request #63 from CivicDataLab/60-add-publish-page-in-datas…
bhavabhuthi May 15, 2024
9ae5b62
Merge branch 'dev' into 62-resourcelistview-component
aashimgarg May 15, 2024
3474ea3
remove listView queryState
aashimgarg May 15, 2024
1310669
fix build error
aashimgarg May 15, 2024
2160d77
add access model
sanjaypinna May 15, 2024
f5731b1
add access model list
sanjaypinna May 15, 2024
7cf9139
Merge pull request #64 from CivicDataLab/62-resourcelistview-component
bhavabhuthi May 15, 2024
a046937
fix: add new resource dialog
aashimgarg May 15, 2024
58efd87
add access model form component
sanjaypinna May 15, 2024
c9a8b28
add basic UI
sanjaypinna May 15, 2024
c6c423d
fix state values
aashimgarg May 15, 2024
24b506d
feat: add dynamic metadata form including population and submission f…
May 15, 2024
0276a5b
add resourceselector component
sanjaypinna May 16, 2024
04bdf8a
store data in state and handle add and remove scenario
sanjaypinna May 16, 2024
698e63b
feat: add consumer side dataset pages as public in middleware
May 16, 2024
97127e4
fix select all
sanjaypinna May 16, 2024
547d9d7
change permission to type
sanjaypinna May 16, 2024
ee3dffc
make value to int
sanjaypinna May 16, 2024
2ee2f02
pass querylist
sanjaypinna May 16, 2024
fc109d0
add toast and mutation
sanjaypinna May 16, 2024
b55035f
add querylist in access model list component
sanjaypinna May 16, 2024
3f28a35
fix: add redirect from metadata to publish
May 16, 2024
ee22281
Merge pull request #69 from CivicDataLab/68-remove-datasets-listing-a…
bhavabhuthi May 16, 2024
58dd687
Merge pull request #67 from CivicDataLab/66-metadata-in-dataset-creat…
bhavabhuthi May 16, 2024
9e0f0e0
fix css
sanjaypinna May 16, 2024
00effac
add err in toast
sanjaypinna May 16, 2024
b40fe5c
Merge branch 'dev' into 65-add-access-model-creation
sanjaypinna May 16, 2024
b03cd5a
fix edit dropzone
aashimgarg May 16, 2024
057e1b0
Merge branch 'dev' into new-resource-modal
aashimgarg May 16, 2024
5d9dc4a
Merge pull request #71 from CivicDataLab/new-resource-modal
bhavabhuthi May 16, 2024
29e5f4f
Merge branch 'dev' into 65-add-access-model-creation
sanjaypinna May 16, 2024
dac099b
Merge pull request #70 from CivicDataLab/65-add-access-model-creation
Deepthi-Chand May 16, 2024
70c30e2
fix build issue
sanjaypinna May 16, 2024
33f4b5e
fix initial load state for resourceView
aashimgarg May 16, 2024
e457ca0
Merge pull request #72 from CivicDataLab/listView
bhavabhuthi May 16, 2024
7488ad5
add schema and access model resources
sanjaypinna May 16, 2024
182acce
Merge pull request #74 from CivicDataLab/73-add-resource-schema-and-a…
Deepthi-Chand May 16, 2024
381124f
feat: add title updating mechanism in dataset creation
May 16, 2024
1ca07f1
fix: move mutations above the condition
May 16, 2024
9eb6bd0
Merge pull request #77 from CivicDataLab/76-edit-dataset-title-in-dat…
bhavabhuthi May 16, 2024
450000d
add schema in resource section
sanjaypinna May 16, 2024
3742e47
fix initial render for resource data
aashimgarg May 16, 2024
76644c1
Merge pull request #78 from CivicDataLab/bug-initial-load-fix
bhavabhuthi May 16, 2024
289479e
add schema in resource and access model section
sanjaypinna May 16, 2024
acd1569
fix css and remove log
sanjaypinna May 16, 2024
56bf981
remove log
sanjaypinna May 16, 2024
f4b8ac1
Merge pull request #79 from CivicDataLab/73-add-resource-schema-and-a…
bhavabhuthi May 20, 2024
cf4b6f9
Fix tags
sanjaypinna May 20, 2024
afe445e
fix: generate graphql after merge
May 20, 2024
a38aab2
Merge pull request #85 from CivicDataLab/84-fix-tags-issue
bhavabhuthi May 20, 2024
fa73769
update resource query with dataset to avoid filter
aashimgarg May 16, 2024
6c10993
fix rendering data based on query state
aashimgarg May 16, 2024
bf603f3
fix: generate graphql after rebase
May 20, 2024
52920a7
fix: generate graphql after merge
May 20, 2024
c6cce9a
Merge pull request #80 from CivicDataLab/fix-resource-query
bhavabhuthi May 20, 2024
1ece04c
add alert icon
sanjaypinna May 17, 2024
218dc6f
add error message in publish page
sanjaypinna May 17, 2024
716b9ab
fix UI
sanjaypinna May 17, 2024
afa6a77
remove accordion border and text decoration
sanjaypinna May 17, 2024
fad7339
fix breadcrumbs in org dashboard
sanjaypinna May 17, 2024
eab503c
Merge pull request #82 from CivicDataLab/81-fix-bugs-and-update-ui
bhavabhuthi May 20, 2024
917dc34
fix: search input for ResourceListView
aashimgarg May 17, 2024
ddd1735
add resource modal
aashimgarg May 17, 2024
23d1f3b
fix: generate after rebase
May 20, 2024
1fcc70c
Merge pull request #83 from CivicDataLab/ResourceListView-Search
bhavabhuthi May 20, 2024
1b0625a
fix: force login for dashboard pages only
May 20, 2024
d4ef50f
modify filter component
sanjaypinna May 9, 2024
bc86c3f
add fetchDatasets function
sanjaypinna May 9, 2024
ae58355
add datasetCards component
sanjaypinna May 9, 2024
1606159
modify card component
sanjaypinna May 9, 2024
f611b4a
add facets in the dataset listing page
sanjaypinna May 9, 2024
fb49db5
add data keep api
sanjaypinna May 16, 2024
f02a459
add facets api
sanjaypinna May 17, 2024
1063aa0
fix cards as per the data
sanjaypinna May 17, 2024
f27f863
integrate facets with the listing page
sanjaypinna May 17, 2024
6ce6435
add filters in listing page
sanjaypinna May 17, 2024
674b26c
fix handle remove filter
sanjaypinna May 17, 2024
7012ab0
add title case
sanjaypinna May 17, 2024
b9ccfcd
add reset feature
sanjaypinna May 17, 2024
198c885
integrate search in dataset listing page
sanjaypinna May 17, 2024
0f8afbc
fix margin
sanjaypinna May 20, 2024
9dc4ae6
refactor code
sanjaypinna May 20, 2024
469240f
revamp cards component
sanjaypinna May 20, 2024
c35fa26
add spinner
sanjaypinna May 20, 2024
524f6cb
fix the condition
sanjaypinna May 21, 2024
51afd1d
remove log
sanjaypinna May 21, 2024
ef1c530
fix: remove the prefetch query from the page component along with hyd…
May 21, 2024
67fcaf8
fix: remove hydration from other components to avoid not implemented …
May 21, 2024
5e67eb4
feat: add description and tags dropdown along with mutation handling
May 21, 2024
0a17baa
fix: generate graphql after merge
May 21, 2024
7df653e
fix: build issue due to missing key prop in the iterator
May 21, 2024
e18e894
Merge pull request #88 from CivicDataLab/87-metadata-page-fixes
bhavabhuthi May 21, 2024
adc156b
update opub ui and fix search css
sanjaypinna May 21, 2024
5c4b715
remove ID
sanjaypinna May 21, 2024
5d09706
feat: remove the generated files from repo
May 21, 2024
cfc0e85
feat: add the generated files to the ignore file
May 21, 2024
3e3a18e
fix accordion placements
sanjaypinna May 21, 2024
d27c212
feat: add generate step to pre merge check
May 21, 2024
eb481ab
feat: add generate step to deployment script
May 21, 2024
7c5d1ea
fix: add env variable for graphql url for codegen to work
May 21, 2024
12d31da
fix: add graphql url to env
May 21, 2024
8c6824a
Merge pull request #93 from CivicDataLab/90-move-graphql-generation-t…
bhavabhuthi May 21, 2024
89ad01c
Merge pull request #89 from CivicDataLab/52-integrate-facets-in-datas…
bhavabhuthi May 21, 2024
caacc5e
Merge pull request #92 from CivicDataLab/91-fix-accordion-placement
bhavabhuthi May 21, 2024
f03580e
fix: merge both mutations into one to avoid race condition of two mua…
May 21, 2024
c9e9550
add resetFileResources Schema
aashimgarg May 21, 2024
75d031a
Merge pull request #96 from CivicDataLab/95-bug-fix-submission-error-…
bhavabhuthi May 21, 2024
664bbb2
fix: change route and router references for distributions to resources
May 22, 2024
33d6b15
fix: better organization static data
May 22, 2024
bf0c688
fix: change uuid to slug approach
May 22, 2024
ea99b0a
Merge pull request #99 from CivicDataLab/97-bug-change-distributions-…
bhavabhuthi May 22, 2024
6d3ce8f
fix publish page bugs
sanjaypinna May 22, 2024
28a37be
change graphqlTable to graphqlPagination
sanjaypinna May 22, 2024
aa1b2d6
delete DatasetCards and use GraphqlPagination
sanjaypinna May 22, 2024
6167126
remove unused imports
sanjaypinna May 22, 2024
c3928bb
use graphqlPagination
sanjaypinna May 22, 2024
85d88de
fix: move header and loader to dynamic portion
May 22, 2024
ec80258
feat: dataset listing under organization dashboard with normal pagina…
May 22, 2024
aa6da02
Merge pull request #101 from CivicDataLab/100-fix-publish-page
bhavabhuthi May 22, 2024
b33af50
Merge pull request #106 from CivicDataLab/104-revamp-loader-in-datase…
bhavabhuthi May 22, 2024
46cd558
Merge pull request #107 from CivicDataLab/105-dataset-listing-in-orga…
bhavabhuthi May 22, 2024
4a58620
Merge pull request #103 from CivicDataLab/102-revamp-graphqltable-com…
bhavabhuthi May 22, 2024
5213c14
add schema fetch query
aashimgarg May 22, 2024
6379876
fix schema listing
aashimgarg May 24, 2024
1bfb820
fix: minor fallback and css fixes for title edit layout
May 24, 2024
b03c144
feat: add categories in form with save and pre-population
May 24, 2024
1234308
replace table with DataTable
aashimgarg May 24, 2024
42d0bca
Merge branch 'dev' into 94-add-file-resource-schema
aashimgarg May 24, 2024
51af9e9
fix: resolve the lint issue
May 27, 2024
d3a21e7
Merge pull request #109 from CivicDataLab/108-add-categories-to-metad…
bhavabhuthi May 27, 2024
72fdaa1
add resetFileResources Schema
aashimgarg May 21, 2024
5ef4f80
add schema fetch query
aashimgarg May 22, 2024
337ec23
fix schema listing
aashimgarg May 24, 2024
07aa93d
replace table with DataTable
aashimgarg May 24, 2024
d930d31
fix: merge dev branch
May 27, 2024
52e08a0
fix: merge issues
May 27, 2024
854d654
fix: type issues
May 27, 2024
eeafc1c
Merge pull request #110 from CivicDataLab/94-add-file-resource-schema
bhavabhuthi May 27, 2024
f90620f
add delete and fix refetch issue
sanjaypinna May 22, 2024
9895660
remove unnecessary variables
sanjaypinna May 22, 2024
d3166ac
fix UI
sanjaypinna May 22, 2024
dd03b11
fix alignment
sanjaypinna May 22, 2024
8ab1dd3
add accessmodel id in the query and rename the params
sanjaypinna May 22, 2024
2fb81f3
add props
sanjaypinna May 22, 2024
5f4fe5f
add query and fix prefill
sanjaypinna May 22, 2024
9afc3b9
refactor functionality
sanjaypinna May 23, 2024
80bad7d
fix UI
sanjaypinna May 23, 2024
5a94c7a
fix add
sanjaypinna May 26, 2024
06782da
fix workflow
sanjaypinna May 26, 2024
c7e96e7
fix prefill issue
sanjaypinna May 27, 2024
7142f30
set accessmodel id for new dam
sanjaypinna May 27, 2024
bd7d8a0
make form empty by setting all states to empty
sanjaypinna May 27, 2024
cfe6d4b
add integer fields
sanjaypinna May 27, 2024
f861d63
fix ui
sanjaypinna May 27, 2024
f079bbe
add onblur save mechanism
sanjaypinna May 28, 2024
0102263
fix auto save
sanjaypinna May 28, 2024
3c530ac
feat: add categories to main navigation bar
May 28, 2024
d50305e
feat: add categories listing page
May 28, 2024
d90a297
feat: add category details page with listing
May 28, 2024
44781ad
fix responsiveness
sanjaypinna May 28, 2024
5b59414
feat: create a error fallback page with icon
May 28, 2024
ac9deb1
feat: replace error fallback page
May 28, 2024
2fac891
feat: replace the error fallback page
May 28, 2024
74e95c0
fix resource file structure
aashimgarg May 28, 2024
de002b6
Merge pull request #116 from CivicDataLab/fix-file-structure
bhavabhuthi May 28, 2024
19d74f5
Merge pull request #114 from CivicDataLab/113-add-categories-pages-to…
bhavabhuthi May 28, 2024
2baf05f
add type
sanjaypinna May 28, 2024
e5789a0
add type to query
sanjaypinna May 28, 2024
011af9f
add editable fields with mutations
aashimgarg May 28, 2024
691b56c
add type
sanjaypinna May 28, 2024
958aa18
add type in the query
sanjaypinna May 28, 2024
a591bcb
Merge branch 'dev' into 112-implement-auto-save-in-dam
sanjaypinna May 28, 2024
2b08420
Merge pull request #111 from CivicDataLab/98-auto-save-experiment
bhavabhuthi May 28, 2024
f8ded75
Merge branch 'dev' into 112-implement-auto-save-in-dam
sanjaypinna May 28, 2024
cb80d12
remove duplicate icons
sanjaypinna May 28, 2024
966c32e
fix Combobox popover z-index issues
sanjaypinna May 28, 2024
a0cbe77
Merge pull request #117 from CivicDataLab/112-implement-auto-save-in-dam
bhavabhuthi May 28, 2024
417a8df
fix: change loader from full page to small spinner title layout
May 28, 2024
6a92d84
add a placeholder
sanjaypinna May 28, 2024
f903731
fix select all resources issue
sanjaypinna May 28, 2024
a687338
fix padding
sanjaypinna May 29, 2024
1add535
add search in access model listing
sanjaypinna May 29, 2024
da1823a
fix schema mutation
aashimgarg May 29, 2024
4855b6f
fix schema key
aashimgarg May 30, 2024
41af17a
make mutation on change of file
aashimgarg May 30, 2024
638d458
Merge pull request #119 from CivicDataLab/118-loader-issue-in-dataset…
bhavabhuthi May 31, 2024
4ab24e1
lift schema data to limit rerender
aashimgarg May 31, 2024
d30ef35
remove schema destructuring
aashimgarg May 31, 2024
fd20524
fix resource name and desc for <empty string> values
aashimgarg May 31, 2024
1890511
Merge pull request #121 from CivicDataLab/120-fix-access-model-issues
bhavabhuthi May 31, 2024
e7a073c
Merge pull request #123 from CivicDataLab/115-add-update-schema-workflow
bhavabhuthi May 31, 2024
41c52b1
add onBlur for textfield
aashimgarg Jun 3, 2024
1e5193b
add sheet in mobile dashboard
sanjaypinna Jun 3, 2024
4b52237
fix margin
sanjaypinna Jun 3, 2024
3445a31
fix css
sanjaypinna Jun 3, 2024
4759ffa
fix responsiveness
sanjaypinna Jun 3, 2024
afc4cfa
fix responsiveness
sanjaypinna Jun 3, 2024
e2121d4
feat: add query and update mutation to integrate tags in metadata form
Jun 4, 2024
2ef292d
Merge pull request #127 from CivicDataLab/126-fix-input-going-out-of-…
bhavabhuthi Jun 4, 2024
96b8fe6
Merge pull request #129 from CivicDataLab/128-make-provider-dashboard…
bhavabhuthi Jun 4, 2024
cd261a8
Merge pull request #131 from CivicDataLab/130-integrate-tags-in-metad…
bhavabhuthi Jun 4, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 20 additions & 0 deletions .eslintrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
module.exports = {
parser: '@typescript-eslint/parser',
extends: [
'eslint:recommended',
'plugin:@typescript-eslint/recommended',
'next',
'prettier',
],
rules: {
'no-unused-vars': 'off',
'@typescript-eslint/no-unused-vars': ['warn'],
'@typescript-eslint/no-explicit-any': ['off'],
'react/display-name': 'off',
'@next/next/no-html-link-for-pages': 'off',
'prefer-const': 'off',
'@typescript-eslint/no-var-requires': 'off',
'@next/next/no-img-element': 'off',
},
ignorePatterns: ['**/generated/**/*.ts', 'node_modules/', 'dist/'],
}
10 changes: 10 additions & 0 deletions .eslintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"ignorePatterns": ["**/generated/**/*.ts"],
"extends": ["eslint:recommended", "next"],
"rules": {
"no-unused-vars": "off",
// "@typescript-eslint/no-unused-vars": ["warn"],
"react/display-name": "off",
"@next/next/no-html-link-for-pages": "off"
}
}
40 changes: 40 additions & 0 deletions .github/workflows/pre-merge.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
name: Build Status

on:
push:
branches: ['dev']
pull_request:
branches: ['dev']
env:
KEYCLOAK_CLIENT_ID: ${{secrets.KEYCLOAK_CLIENT_ID}}
KEYCLOAK_CLIENT_SECRET: ${{secrets.KEYCLOAK_CLIENT_SECRET}}
AUTH_ISSUER: ${{secrets.AUTH_ISSUER}}
NEXTAUTH_URL: ${{secrets.NEXTAUTH_URL}}
NEXTAUTH_SECRET: ${{secrets.NEXTAUTH_SECRET}}
END_SESSION_URL: ${{secrets.END_SESSION_URL}}
REFRESH_TOKEN_URL: ${{secrets.REFRESH_TOKEN_URL}}
NEXT_PUBLIC_BACKEND_URL: ${{secrets.NEXT_PUBLIC_BACKEND_URL}}
BACKEND_GRAPHQL_URL: ${{secrets.BACKEND_GRAPHQL_URL}}

jobs:
build:
runs-on: ubuntu-latest

strategy:
matrix:
node-version: [20.x]

env:
BACKEND_GRAPHQL_URL: ${{secrets.BACKEND_GRAPHQL_URL}}

steps:
- uses: actions/checkout@v4
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
cache: 'npm'

- run: npm ci --force
- run: npm run generate
- run: npm run build --if-present
38 changes: 38 additions & 0 deletions .github/workflows/push-to-ec2.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
name: Push-to-EC2

on: push

jobs:
deploy:
name: Push to EC2 Instance
runs-on: ubuntu-latest

steps:
- name: Checkout the code
uses: actions/checkout@v1

- name: Deploy to my EC2 instance
uses: easingthemes/[email protected]
env:
SSH_PRIVATE_KEY: ${{ secrets.EC2_SSH_KEY }}
SOURCE: "./"
SCRIPT_BEFORE: ls
REMOTE_HOST: "datakeep.civicdays.in"
REMOTE_USER: "ubuntu"
TARGET: "/home/ubuntu/DataExchange/DataExFrontend/"

- name: run the application remotely
uses: appleboy/[email protected]
with:
host: "datakeep.civicdays.in"
username: "ubuntu"
key: ${{ secrets.EC2_SSH_KEY }}
port: 22
script: |
cd /home/ubuntu/DataExchange/DataExFrontend/
kill $(ps aux | grep 'npm run start' | awk '{print $2}')
kill $(ps aux | grep 'next-server' | awk '{print $2}')
npm run build
npm run generate
npm run start

42 changes: 42 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
# See https://help.github.com/articles/ignoring-files/ for more about ignoring files.

# dependencies
/node_modules
/.pnp
.pnp.js

# testing
/coverage

# next.js
/.next/
/out/

# production
/build

# misc
.DS_Store
*.pem

# debug
npm-debug.log*
yarn-debug.log*
yarn-error.log*

# local env files
.env*.local*

# vercel
.vercel

# typescript
*.tsbuildinfo
next-env.d.ts

# intellij files
.idea

# generated graphql files
/gql/generated/gql.ts
/gql/generated/graphql.ts
4 changes: 4 additions & 0 deletions .husky/commit-msg
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/bin/bash
. "$(dirname "$0")/_/husky.sh"

npx commitlint --edit
4 changes: 4 additions & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
dist
node_modules
.next
build
28 changes: 28 additions & 0 deletions .prettierrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
module.exports = {
endOfLine: 'lf',
semi: true,
trailingComma: 'es5',
printWidth: 80,
tabWidth: 2,
useTabs: false,
singleQuote: true,
importOrder: [
'^(react/(.*)$)|^(react$)',
'^(next/(.*)$)|^(next$)',
'<THIRD_PARTY_MODULES>',
'',
'^types$',
'^@local/(.*)$',
'^@/config/(.*)$',
'^@/lib/(.*)$',
'^@/components/(.*)$',
'^@/styles/(.*)$',
'^[./]',
],
importOrderParserPlugins: ['typescript', 'jsx', 'decorators-legacy'],
plugins: [
'@ianvs/prettier-plugin-sort-imports',
'prettier-plugin-tailwindcss',
],
tailwindFunctions: ['clsx', 'cn'],
};
29 changes: 29 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@


## [0.1.3](https://github.com/CivicDataLab/DataExFrontend/compare/0.1.2...0.1.3) (2024-04-15)


### Features

* add mutation integration to the action bar in layout ([612c158](https://github.com/CivicDataLab/DataExFrontend/commit/612c15809a7213947b1e34abce31c7f6c237b5f7))


### Bug Fixes

* fix the redirection link on click of the button in homepage ([b81b219](https://github.com/CivicDataLab/DataExFrontend/commit/b81b219240f83479cd9cc89d5866adb6a4ff576c))
* replace hard coded url with environment variable ([7a55c94](https://github.com/CivicDataLab/DataExFrontend/commit/7a55c9491819284bfc0a6c7e7e625043e4e143f9))
* routing in edit dataset layout ([991b042](https://github.com/CivicDataLab/DataExFrontend/commit/991b042f107b3149f1894404652a35cf0d06db96))

## [0.1.2](https://github.com/CivicDataLab/DataExFrontend/compare/0.1.1...0.1.2) (2024-04-05)


### Bug Fixes

* add commit lint config file ([fc00fd5](https://github.com/CivicDataLab/DataExFrontend/commit/fc00fd51fa2ad135de3b79303aa6c1981ae34a0d))

## 0.1.1 (2024-04-05)


### Bug Fixes

* add commit lint config file ([fc00fd5](https://github.com/CivicDataLab/DataExFrontend/commit/fc00fd51fa2ad135de3b79303aa6c1981ae34a0d))
45 changes: 45 additions & 0 deletions CODE_OF_CONDUCT.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
# Contributor Covenant Code of Conduct

## Our Pledge

In the interest of fostering an open and welcoming environment, we as contributors and maintainers pledge to make participation in our project and our community a harassment-free experience for everyone, regardless of age, body size, disability, ethnicity, sex characteristics, gender identity and expression, level of experience, education, socio-economic status, nationality, personal appearance, race, religion, or sexual identity and orientation.

## Our Standards

Examples of behavior that contributes to creating a positive environment include:

* Using welcoming and inclusive language
* Being respectful of differing viewpoints and experiences
* Gracefully accepting constructive criticism
* Focusing on what is best for the community
* Showing empathy towards other community members

Examples of unacceptable behavior by participants include:

* The use of sexualized language or imagery and unwelcome sexual attention or advances
* Trolling, insulting/derogatory comments, and personal or political attacks
* Public or private harassment
* Publishing others' private information, such as a physical or electronic address, without explicit permission
* Other conduct which could reasonably be considered inappropriate in a professional setting

## Our Responsibilities

Project maintainers are responsible for clarifying the standards of acceptable behavior and are expected to take appropriate and fair corrective action in response to any instances of unacceptable behavior.

Project maintainers have the right and responsibility to remove, edit, or reject comments, commits, code, wiki edits, issues, and other contributions that are not aligned to this Code of Conduct, or to ban temporarily or permanently any contributor for other behaviors that they deem inappropriate, threatening, offensive, or harmful.

## Scope

This Code of Conduct applies within all project spaces, and it also applies when an individual is representing the project or its community in public spaces. Examples of representing a project or community include using an official project e-mail address, posting via an official social media account, or acting as an appointed representative at an online or offline event. Representation of a project may be further defined and clarified by project maintainers.

## Enforcement

Instances of abusive, harassing, or otherwise unacceptable behavior may be reported by contacting the project maintainer team [private contact address](mailto:[email protected]). All complaints will be reviewed and investigated and will result in a response that is deemed necessary and appropriate to the circumstances. The project team is obligated to maintain confidentiality with regard to the reporter of an incident. Further details of specific enforcement policies may be posted separately.

Project maintainers who do not follow or enforce the Code of Conduct in good faith may face temporary or permanent repercussions as determined by other members of the project's leadership.

## Attribution

This Code of Conduct is adapted from the [Contributor Covenant](https://www.contributor-covenant.org), version 1.4, available at <https://www.contributor-covenant.org/version/1/4/code-of-conduct.html>

For answers to common questions about this code of conduct, see <https://www.contributor-covenant.org/faq>
36 changes: 36 additions & 0 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
## Contributing

Hi there! We're thrilled that you'd like to contribute to this project. Your help is essential for keeping it great.

<!-- > **Note**
> This project adheres to Convention Commits. If you are working on a pull request, it will be squashed with a conventional commit message if you do not adhere to the convention. Please see [the contributing summary](https://www.conventionalcommits.org/en/v1.0.0/#summary) for more information. -->

Contributions to this project are [released](https://help.github.com/articles/github-terms-of-service/#6-contributions-under-repository-license) to the public under the project's open source license.

Please note that this project is released with a Contributor Code of Conduct. By participating in this project you agree to abide by its terms.

## Submitting a pull request

0. Fork and clone the repository
1. Configure and install the dependencies (if applicable)
2. Make sure the tests pass on your machine (if applicable)
3. Create a new branch: `git checkout -b my-branch-name`
4. Make your change, add tests, and make sure the tests still pass
5. Push to your fork and submit a pull request
6. Pat your self on the back and wait for your pull request to be reviewed and merged.

## Merging a pull request

Here are a few things you can do that will increase the likelihood of your pull request being accepted:

- Ask for feedback early. You don't need to wait until you're done to get feedback.
- Follow standards for style and code quality
- Write tests.
- Keep your change as focused as possible. If there are multiple changes you would like to make that are not dependent upon each other, consider submitting them as separate pull requests.
- Write a [good commit message](http://tbaggery.com/2008/04/19/a-note-about-git-commit-messages.html) that follows the [Conventional Commits](https://www.conventionalcommits.org/en/v1.0.0/#summary) convention.

## Resources

- [How to Contribute to Open Source](https://opensource.guide/how-to-contribute/)
- [Using Pull Requests](https://help.github.com/articles/about-pull-requests/)
- [GitHub Help](https://help.github.com)
21 changes: 21 additions & 0 deletions LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
MIT License

Copyright (c) 2023 CivicDataLab

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
Loading