Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
325 commits
Select commit Hold shift + click to select a range
6d671b1
add key to table component
eperedo Mar 7, 2025
8685953
Merge branch 'feature/greyfields' of github.com:EyeSeeTea/dataset-con…
eperedo Mar 8, 2025
bfae6bf
prettify css
eperedo Mar 8, 2025
5f7c311
send notification after create/update dataSet
eperedo Mar 8, 2025
0f28026
fix tsc errors
eperedo Mar 8, 2025
fed40f8
validate if recipients are empty
eperedo Mar 9, 2025
9d6c4b7
conditionally hide UI actions depending on user authorities
eperedo Mar 9, 2025
14d61b8
hide create dataSet in project list page
eperedo Mar 9, 2025
633c892
update yarn lock, code review observations
eperedo Mar 11, 2025
ea5b559
Merge branch 'feature/disaggregation-step' of github.com:EyeSeeTea/da…
eperedo Mar 11, 2025
2c79b77
Merge branch 'feature/disaggregation-step' of github.com:EyeSeeTea/da…
eperedo Mar 12, 2025
68092c5
Merge branch 'feature/greyfields' of github.com:EyeSeeTea/dataset-con…
eperedo Mar 12, 2025
39abc6f
show unique competencies in summary step
eperedo Mar 12, 2025
b69751a
update background color for selected items in dropdown
eperedo Mar 12, 2025
9e57473
add close button to dropdown multiple
eperedo Mar 12, 2025
b6150ca
add count in output/outcome filter
eperedo Mar 12, 2025
e962578
add individuals and households mode in disaggregation step
eperedo Mar 13, 2025
a91c4e3
Merge pull request #476 from EyeSeeTea/feature/disaggregation-step
MiquelAdell Mar 18, 2025
f59c833
include suggested indicators, rename scope filters, add script to add…
eperedo Mar 18, 2025
d9a9978
refactor period dates, add mapValues to Rec, update i18n
eperedo Mar 18, 2025
f901a79
Merge branch 'feature/greyfields' of github.com:EyeSeeTea/dataset-con…
eperedo Mar 18, 2025
3cb7cfc
Refactor components, add hooks for boolean and callbackeffect
eperedo Mar 19, 2025
9d633c8
Merge branch 'feature/configuration-form-settings' of github.com:EyeS…
eperedo Mar 19, 2025
cbb3714
Merge branch 'feature/sendnotification-869870ka7' of github.com:EyeSe…
eperedo Mar 19, 2025
2d9df86
remove script
eperedo Mar 19, 2025
d22d2c4
update i18n
eperedo Mar 19, 2025
c6caaef
add core competency script, udpate filter label, add measure to filters
eperedo Mar 20, 2025
905e496
add navigation wizard button at the top, update d2-ui-components version
eperedo Mar 20, 2025
386d6c0
validate duplicate dataElements in related datalements
eperedo Mar 24, 2025
a4cc004
Merge branch 'development-project-configurator' into feature/greyfields
MiquelAdell Mar 24, 2025
4e95372
update i18n, remove code comments, narrow units type for api settting…
eperedo Mar 24, 2025
edd8691
Merge branch 'feature/greyfields' of github.com:EyeSeeTea/dataset-con…
eperedo Mar 24, 2025
b82394b
udpate gitignore
eperedo Mar 24, 2025
eeeef7d
update i18n, remove fuzzy text
eperedo Mar 24, 2025
2bab6e3
Merge branch 'feature/greyfields' of github.com:EyeSeeTea/dataset-con…
eperedo Mar 24, 2025
5612671
include measure groupset in metadata settings
eperedo Mar 24, 2025
8b74f36
Merge branch 'feature/configuration-form-settings' of github.com:EyeS…
eperedo Mar 24, 2025
444e67b
update i18n, update comparison for org. units, move dataSet save hook…
eperedo Mar 24, 2025
6f4cc8c
use lodash isEqual to check project/dataSet org units
eperedo Mar 24, 2025
50d3d10
delete unnecessary script
eperedo Mar 24, 2025
32edf41
Merge branch 'feature/sendnotification-869870ka7' of github.com:EyeSe…
eperedo Mar 24, 2025
449daee
remove collection from window
eperedo Mar 24, 2025
c6bd005
Merge branch 'feature/sendnotification-869870ka7' of github.com:EyeSe…
eperedo Mar 24, 2025
fa50ce8
update close button in disaggregation modal, rename scope indicators,…
eperedo Mar 25, 2025
178017c
update i18n
eperedo Mar 25, 2025
3cf0e4e
Merge pull request #477 from EyeSeeTea/feature/logs
MiquelAdell Mar 25, 2025
8c798c8
Merge pull request #483 from EyeSeeTea/feature/configuration-form-set…
MiquelAdell Mar 25, 2025
5afa05a
Merge branch 'development-project-configurator' of github.com:EyeSeeT…
eperedo Mar 25, 2025
cbbeea7
Merge branch 'feature/greyfields' of github.com:EyeSeeTea/dataset-con…
eperedo Mar 25, 2025
409ec5c
Merge branch 'feature/sendnotification-869870ka7' of github.com:EyeSe…
eperedo Mar 25, 2025
7a1927b
load only active projects
eperedo Mar 25, 2025
1568403
remove script
eperedo Mar 25, 2025
6b799b5
refactor code, improve table common actions types
eperedo Mar 26, 2025
ff8d0c3
Merge branch 'feature/greyfields' of github.com:EyeSeeTea/dataset-con…
eperedo Mar 26, 2025
9aa43fe
fetch indicators using parallel requests to improve initial load perf…
eperedo Mar 27, 2025
d62d5b0
skip saving sections if there are no changes
eperedo Mar 27, 2025
f0b7a58
fixed shortName error
eperedo Mar 28, 2025
f4653bc
Merge pull request #486 from EyeSeeTea/feature/hideactions
MiquelAdell Apr 1, 2025
015b9f1
Merge branch 'feature/greyfields' of github.com:EyeSeeTea/dataset-con…
eperedo Apr 1, 2025
e73ff64
Merge pull request #485 from EyeSeeTea/feature/sendnotification-86987…
MiquelAdell Apr 2, 2025
6d6388c
rename entities, add typesafe for custom map imp., add concat to estl…
eperedo Apr 2, 2025
fcc7209
Merge branch 'feature/greyfields' of github.com:EyeSeeTea/dataset-con…
eperedo Apr 2, 2025
49a12b7
remove any in CustomForm
eperedo Apr 3, 2025
8a375b2
Merge pull request #481 from EyeSeeTea/feature/greyfields
MiquelAdell Apr 4, 2025
01e9201
check for undefined groupSet for indicators
eperedo Apr 4, 2025
56b163e
Merge pull request #487 from EyeSeeTea/fix/groupsetindicators-8698kxcwj
MiquelAdell Apr 7, 2025
1e3f11e
add project code in dataSet name
eperedo Apr 8, 2025
e4e1a2f
maintain margin for button on scroll
eperedo Apr 8, 2025
287fc7b
replicate share settings from project to dataSet
eperedo Apr 8, 2025
cc0af61
updating dataSet access to be compatible with sharing api v41
eperedo Apr 8, 2025
9409aba
Merge pull request #489 from EyeSeeTea/fix/buttonscroll-8698na6bz
MiquelAdell Apr 9, 2025
982656e
update d2-ui component
eperedo Apr 10, 2025
744f24d
Merge pull request #488 from EyeSeeTea/feature/set-dataset-name-8698n…
MiquelAdell Apr 11, 2025
66ead93
add MLF filters
eperedo May 5, 2025
fd50fb7
disable close drawer by clicking on backdrop
eperedo May 7, 2025
1876887
show description for indicator groups, filter MLF by indicator type
eperedo May 7, 2025
211bb29
allow to close filter modal by clicking outside/escape key
eperedo May 8, 2025
6b1f387
Merge pull request #493 from EyeSeeTea/feature/clickoutside-filter-86…
MiquelAdell May 8, 2025
f9c8f89
Merge pull request #491 from EyeSeeTea/feature/update-d2-uicomponent
MiquelAdell May 8, 2025
a937ee1
add support for companion indicators
eperedo May 9, 2025
b943989
update locales
eperedo May 9, 2025
feb5576
replace lodash with est lodash, improve variable name and explicit type
eperedo May 11, 2025
731382b
improve types for MLF, add docs for MLF entity, use an object for opt…
eperedo May 11, 2025
d145728
Merge pull request #492 from EyeSeeTea/feature/mlf-filters-8698wjj9t
MiquelAdell May 13, 2025
df4d04a
Merge pull request #490 from EyeSeeTea/fix/multiple-dataset-sharing
MiquelAdell May 17, 2025
1afe78a
bump version
MiquelAdell May 19, 2025
e282d17
Merge branch 'development-project-configurator' of github.com:EyeSeeT…
eperedo May 19, 2025
02375d8
Merge branch 'feature/companion-indicators-8698wjrez' into release/2.7.0
MiquelAdell May 20, 2025
2a9e2fe
clear current search after switching to companion table
eperedo May 20, 2025
8071218
update namespace name
eperedo May 20, 2025
bec389e
add script to clone namespace
eperedo May 20, 2025
393d57a
filter empty codes for companion indicators
eperedo May 21, 2025
b246f31
validate companions using OR/AND operators
eperedo May 23, 2025
7fb90bf
using discriminated union for RuleToken type
eperedo May 26, 2025
b111fe7
Merge branch 'feature/companion-indicators-8698wjrez' into release/2.7.0
MiquelAdell May 28, 2025
1c3d5e8
make companion code search case insensitive
eperedo Jun 2, 2025
e5df85f
Merge pull request #494 from EyeSeeTea/feature/companion-indicators-8…
MiquelAdell Jun 3, 2025
19d1e97
Merge pull request #495 from EyeSeeTea/feature/change-namespace-name-…
MiquelAdell Jun 6, 2025
fecfc24
only show user's org. units
eperedo Jun 13, 2025
afb171b
Merge pull request #496 from EyeSeeTea/fix/orgunit-currentuser-8699djjh4
MiquelAdell Jun 16, 2025
d549a36
bump version
MiquelAdell Jun 16, 2025
4a74f7a
Merge pull request #497 from EyeSeeTea/release/2.7.0
MiquelAdell Jun 16, 2025
aac5f64
bump version
MiquelAdell Jun 17, 2025
103b93b
remove beta from the name of the app
MiquelAdell Jun 17, 2025
2730dce
chore: update d2-ui-components
gqcorneby Jun 18, 2025
9646a0d
Merge pull request #498 from EyeSeeTea/fix/update-d2-ui
MiquelAdell Jun 19, 2025
2258fc9
fix: ignore error when updating project
gqcorneby Jun 23, 2025
50a82e4
fix: check edit access before saving project
gqcorneby Jun 23, 2025
df01d25
feat: LowercaseString
gqcorneby Jun 19, 2025
3599b98
fix: output and outcome rule (switched)
gqcorneby Jun 23, 2025
71c179a
feat: add handling for scoped companion rules
gqcorneby Jun 23, 2025
64eaed4
feat: add filters for companion rules by scope (year)
gqcorneby Jun 28, 2025
02bb744
feat: add project end and start dates
gqcorneby Jun 27, 2025
7c131cd
clean up
gqcorneby Jun 28, 2025
82b719a
fix: unique year filters
gqcorneby Jun 28, 2025
9978ba0
feat: companion indicator updated summary
gqcorneby Jun 28, 2025
0547361
translations
gqcorneby Jun 28, 2025
68969e0
clean up
gqcorneby Jun 30, 2025
26cade8
clean up
gqcorneby Jul 1, 2025
dcc2e3c
add delimiter consts
gqcorneby Jul 1, 2025
2620300
clean up validation
gqcorneby Jul 1, 2025
13dd409
Merge pull request #499 from EyeSeeTea/fix/non-admin-save-error
MiquelAdell Jul 1, 2025
ac4c913
Merge branch 'development-project-configurator' into feature/yearly-c…
MiquelAdell Jul 1, 2025
b0ce565
save dataSets in smaller chunks to avoid 413 error
eperedo Jul 1, 2025
1a9b173
update companion rules to always have scope. Use current year as default
gqcorneby Jul 2, 2025
fc91086
Merge pull request #501 from EyeSeeTea/fix/migrate-project-attribute-…
MiquelAdell Jul 2, 2025
2d817f9
chore: fix formating
MiquelAdell Jul 2, 2025
242257d
use current date as default scope
gqcorneby Jul 2, 2025
3f5a8a8
Merge pull request #500 from EyeSeeTea/feature/yearly-companion-rule
MiquelAdell Jul 3, 2025
6429494
use current date as default scope
gqcorneby Jul 4, 2025
5df35ac
only show required year and add group by type
gqcorneby Jul 10, 2025
d84140d
clean up unused references
gqcorneby Jul 16, 2025
d71c5b5
update summary page
gqcorneby Jul 16, 2025
4836c34
feat: initial IndicatorMatch and parsing
gqcorneby Jul 18, 2025
76f7d6a
feat: initial Match Indicator step
gqcorneby Jul 18, 2025
8dfcbae
feat: add matchings
gqcorneby Jul 18, 2025
f249ead
feat: save matchings
gqcorneby Jul 18, 2025
df9e62c
clean up
gqcorneby Jul 18, 2025
6d19574
add validation
gqcorneby Jul 19, 2025
9f6fdf6
improve validations
gqcorneby Jul 21, 2025
d4e4486
fix validation
gqcorneby Jul 21, 2025
9352d9d
fix scope filter and add type filter
gqcorneby Jul 21, 2025
c63ed0d
add expression and customForm listeners
gqcorneby Jul 21, 2025
0bf745b
feat: update custom form scripts
gqcorneby Jul 21, 2025
d3ea411
feat: add cc filter
gqcorneby Jul 22, 2025
e30524c
fix: redelaration errors
gqcorneby Jul 22, 2025
22eb472
fix: disable sources with no target indicators
gqcorneby Jul 22, 2025
ca11b3f
simplify options filtering
gqcorneby Jul 22, 2025
90940b2
clean up
gqcorneby Jul 22, 2025
08ea797
clean up logs
gqcorneby Jul 22, 2025
24b22eb
translations
gqcorneby Jul 22, 2025
3636a2b
load raw css, js, and vm
gqcorneby Jul 22, 2025
4793f58
improve source selection
gqcorneby Jul 23, 2025
590f6ce
remove relative path
gqcorneby Jul 28, 2025
0ff4ba6
Merge pull request #502 from EyeSeeTea/fix/companion-always-show-years
MiquelAdell Jul 28, 2025
6ef7def
use maybe
gqcorneby Jul 29, 2025
ba0c277
bump version
MiquelAdell Jul 29, 2025
d9014cf
Merge pull request #503 from EyeSeeTea/feature/matching-indicators
MiquelAdell Jul 31, 2025
4ed3ae6
filter indicators based on hide in app attribute
gqcorneby Aug 30, 2025
ba4802b
update translation
gqcorneby Aug 30, 2025
608a8b2
Merge pull request #504 from EyeSeeTea/fix/dataelement-hide-in-datase…
MiquelAdell Sep 1, 2025
1877abe
add monthly period
gqcorneby Sep 1, 2025
5518325
generate and save data input periods based on period date
gqcorneby Sep 3, 2025
7366733
use period dates in customform
gqcorneby Sep 3, 2025
f9b1b3d
clean up logs
gqcorneby Sep 3, 2025
ca9cc25
clean up unused dependencies
gqcorneby Sep 3, 2025
e7db295
add dateDiff in date util
gqcorneby Sep 3, 2025
6330f59
fix futureDate computation
gqcorneby Sep 3, 2025
4a7bc7a
add util function to ignore local timezone and append T00:00:00.000
gqcorneby Sep 3, 2025
64ae09f
ignore local timezone
gqcorneby Sep 3, 2025
41250e2
add more description in todo
gqcorneby Sep 3, 2025
c4f6bd1
ignore timezone in custom form
gqcorneby Sep 3, 2025
255433f
add build periods when saving
gqcorneby Sep 3, 2025
928d6f4
fix and improve dateDiff
gqcorneby Sep 4, 2025
3cc190f
extract DatePeriod date as time
gqcorneby Sep 4, 2025
e162f97
Merge pull request #505 from EyeSeeTea/fix/period-dates-data-entry
MiquelAdell Sep 9, 2025
8ed9b39
split metadata query
gqcorneby Sep 24, 2025
93c5290
update sharing fields
gqcorneby Sep 24, 2025
06c6926
remove userCredentials
gqcorneby Sep 24, 2025
21ff176
update access fields
gqcorneby Sep 24, 2025
5928f5d
update attribute query
gqcorneby Sep 24, 2025
882fdc6
update d2-api reference
gqcorneby Sep 24, 2025
2fe8be6
update attribute filter to use attribute id as field
gqcorneby Sep 24, 2025
9356771
use 2.42 schema
gqcorneby Sep 25, 2025
129092d
clean up unused method
gqcorneby Sep 25, 2025
513047d
use shared workflow
gqcorneby Sep 25, 2025
45134d0
add development-project-configurator to triggers
gqcorneby Sep 25, 2025
5edb895
reference d2-api beta version
MiquelAdell Sep 26, 2025
68e5e8d
use d2-api beta
MiquelAdell Sep 26, 2025
7d753f7
change app name
MiquelAdell Sep 26, 2025
9ea9c46
update app name
MiquelAdell Sep 26, 2025
fc411e9
clean up comment
gqcorneby Sep 29, 2025
f339c22
updated yarn.lock
gqcorneby Sep 29, 2025
12241fe
render header conditionally
gqcorneby Sep 29, 2025
d27ee33
clean up header bar
gqcorneby Sep 29, 2025
82f4a75
Merge pull request #506 from EyeSeeTea/fix/dhis2-42-compatibility
MiquelAdell Sep 29, 2025
cac9751
bump version
MiquelAdell Sep 29, 2025
7e20d69
use !null instead of like:*
gqcorneby Sep 30, 2025
22608d2
Merge pull request #507 from EyeSeeTea/feature/use-shared-workflow
MiquelAdell Oct 3, 2025
ea6f2cd
Merge branch 'development-project-configurator' into fix/period-query…
MiquelAdell Oct 3, 2025
732339c
Merge pull request #508 from EyeSeeTea/fix/period-query-for-2.42
MiquelAdell Oct 3, 2025
fb5a989
bump version
MiquelAdell Oct 3, 2025
4ae737f
use d2-ui dropdown
gqcorneby Oct 11, 2025
9b1f294
add table menu for section config
gqcorneby Oct 11, 2025
417738c
translations
gqcorneby Oct 13, 2025
360c9f4
update d2-ui-component
gqcorneby Oct 13, 2025
d97093d
fix map renderAsTabs
gqcorneby Oct 13, 2025
4c4a723
add min width
gqcorneby Oct 13, 2025
188fe57
use logical properties
gqcorneby Oct 16, 2025
f422415
update d2-ui component
gqcorneby Oct 21, 2025
fbdf972
Merge pull request #509 from EyeSeeTea/feature/secton-config
MiquelAdell Oct 21, 2025
fc51b16
apply required project to form
gqcorneby Nov 14, 2025
c6aa8e6
update default value of renderAsTabs to true
gqcorneby Nov 14, 2025
f8f7101
highlight and disable matching indicator target
gqcorneby Nov 14, 2025
92beda7
Merge pull request #513 from EyeSeeTea/fix/disable-target-matched-ind…
MiquelAdell Nov 18, 2025
cb3f1cf
Merge pull request #511 from EyeSeeTea/fix/mandatory-project
MiquelAdell Nov 18, 2025
d947308
Merge pull request #512 from EyeSeeTea/fix/default-renderAsTabs-true
MiquelAdell Nov 18, 2025
95f7268
bump version
MiquelAdell Nov 18, 2025
c4e0438
add output/outcome dates
eperedo Nov 21, 2025
bd787ea
only include org. units within the users scope in filter by level/group
eperedo Nov 23, 2025
795968c
use d2-ui-components beta
MiquelAdell Nov 24, 2025
6f80156
Merge pull request #515 from EyeSeeTea/fix/orgunit-filter-hierarchy-8…
MiquelAdell Nov 24, 2025
592b23a
Merge branch 'feature/outcome-output-dates-869b5gd7x' into developmen…
MiquelAdell Nov 24, 2025
7a150ca
bump version
MiquelAdell Nov 24, 2025
1e6d0e4
add space between output/outcome sections
eperedo Nov 24, 2025
6d0e0b8
Merge pull request #516 from EyeSeeTea/fix/outcome-output-margin-869b…
MiquelAdell Nov 25, 2025
76930bd
disable bvFA7fsiN3T if project startdate is > 2026
gqcorneby Dec 10, 2025
dd2870d
FEAT: add blocking of category option also to global graying out
MiquelAdell Dec 11, 2025
e863c60
bump version
MiquelAdell Dec 11, 2025
cfe8042
add comments and improve import
gqcorneby Jan 12, 2026
331da60
include project dates when editing dataset
gqcorneby Jan 13, 2026
e1b47a1
autofill disabled fields for projects with startDate >= 2026 and Cate…
gqcorneby Jan 13, 2026
6978695
disable subheader checkbox
gqcorneby Jan 14, 2026
fe75474
disable added indicators
gqcorneby Jan 14, 2026
eda485f
fix disabling logic. Place it upon selecting indicator
gqcorneby Jan 14, 2026
d5562c3
Merge pull request #517 from EyeSeeTea/feature/disable-bvFA7fsiN3T-2026
MiquelAdell Jan 15, 2026
d830b8a
add script to move old projects to project_old category
eperedo Feb 18, 2026
e437cac
add sqlview metadata
eperedo Feb 18, 2026
46bffe6
add script for category combo Project-Target/Actual
eperedo Feb 19, 2026
6f9be20
remove moving old_projects from sql script
eperedo Feb 19, 2026
5421a26
remove ts-expect-error and include explicit cast, improve variable na…
eperedo Feb 25, 2026
a4837c3
remove unnecessary drop table statements
eperedo Feb 25, 2026
23b5bc2
only admin users can update output/outcome period dates
eperedo Jun 12, 2026
30f6b1f
Merge pull request #519 from EyeSeeTea/feature/applyperiods-admin-onl…
MiquelAdell Jul 1, 2026
66d8fee
bump version
MiquelAdell Jul 1, 2026
c729ca0
avoid empty sharing settings for dataSets when project does not match…
eperedo Jul 9, 2026
196657b
improve tests to avoid repeating fixtures
eperedo Jul 9, 2026
c45667f
Merge branch 'development' (legacy JS app) keeping the new TS app tree
eperedo Jul 9, 2026
5ac1dd0
Merge pull request #518 from EyeSeeTea/feature/migrate-oldprojects
MiquelAdell Jul 27, 2026
aede2e5
Merge pull request #520 from EyeSeeTea/feature/dataset-nosharingsetti…
MiquelAdell Jul 27, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
33 changes: 0 additions & 33 deletions .babelrc

This file was deleted.

5 changes: 5 additions & 0 deletions .browserslistrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
> 0.5%
last 2 versions
Firefox ESR
ie 11
not dead
5 changes: 5 additions & 0 deletions .env
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
BROWSER=false
VITE_PORT=8081

VITE_DHIS2_BASE_URL=https://dev.eyeseetea.com/play
VITE_DHIS2_AUTH='admin:district'
1 change: 1 addition & 0 deletions .env.production
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
GENERATE_SOURCEMAP=false
4 changes: 4 additions & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
/**/*.d.ts
/src/locales
src/data/entry-form/script.js
src/data/entry-form/velocity.ts
16 changes: 0 additions & 16 deletions .eslintrc.js

This file was deleted.

77 changes: 77 additions & 0 deletions .eslintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,77 @@
{
"extends": [
"react-app",
"eslint:recommended",
"plugin:react/recommended",
"plugin:@typescript-eslint/recommended",
"plugin:testing-library/react"
],
"parser": "@typescript-eslint/parser",
"ignorePatterns": ["src/**/snapshots/*.ts"],
"rules": {
"no-console": ["warn", { "allow": ["debug", "warn", "error"] }],
"prefer-const": "warn",
"@typescript-eslint/camelcase": "off",
"@typescript-eslint/explicit-function-return-type": ["off"],
"@typescript-eslint/no-this-alias": ["off"],
"@typescript-eslint/no-unnecessary-type-constraint": ["off"],
"@typescript-eslint/no-unused-vars": [
"warn",
{
"argsIgnorePattern": "^_",
"varsIgnorePattern": "^_",
"caughtErrorsIgnorePattern": "^_"
}
],
"@typescript-eslint/no-unused-expressions": ["warn"],
"react/prop-types": "off",
"react/display-name": "off",
"react/react-in-jsx-scope": "off",
"no-unused-expressions": "off",
"no-useless-concat": "off",
"no-useless-constructor": "off",
"no-unexpected-multiline": "off",
"default-case": "off",
"array-callback-return": "off",
"@typescript-eslint/no-use-before-define": "off",
"@typescript-eslint/no-explicit-any": "off",
"@typescript-eslint/no-empty-interface": "off",
"@typescript-eslint/ban-ts-ignore": "off",
"@typescript-eslint/no-empty-function": "off",
"@typescript-eslint/explicit-module-boundary-types": "off",
"@typescript-eslint/ban-types": "off",
"@typescript-eslint/ban-ts-comment": "off",
"@typescript-eslint/no-var-requires": "off",
"@typescript-eslint/indent": "off",
"@typescript-eslint/member-delimiter-style": "off",
"@typescript-eslint/type-annotation-spacing": "off",
"@typescript-eslint/no-misused-promises": "warn",
"no-use-before-define": "off",
"no-debugger": "warn",
"no-extra-semi": "off",
"no-mixed-spaces-and-tabs": "off",
"no-useless-rename": "off",
"react-hooks/rules-of-hooks": "warn",
"react-hooks/exhaustive-deps": "warn",
"testing-library/await-async-query": "error",
"testing-library/no-await-sync-query": "error",
"testing-library/prefer-screen-queries": "off",
"testing-library/no-debugging-utils": "off",
"testing-library/no-dom-import": "off",
"no-relative-import-paths/no-relative-import-paths": [
"error",
{ "allowSameFolder": true, "rootDir": "src", "prefix": "$" }
]
},
"plugins": ["@typescript-eslint", "react-hooks", "no-relative-import-paths", "unused-imports"],
"env": {},
"parserOptions": {
"project": "./tsconfig.json"
},
"settings": {
"react": {
"pragma": "React",
"version": "16.6.0"
}
}
}
10 changes: 10 additions & 0 deletions .githooks/dep-check
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
#!/bin/sh

function changed {
git diff --name-only HEAD@{1} HEAD | grep "^$1" > /dev/null 2>&1
}

if changed 'yarn.lock'; then
echo "Lockfile changes detected. Installing updates..."
yarn install
fi
9 changes: 9 additions & 0 deletions .github/pull_request_template.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
### :pushpin: References

- **Issue:** Closes #?

### :memo: Implementation

### :video_camera: Screenshots/Screen capture

### :fire: Notes to the tester
12 changes: 12 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
name: "Shared Master Workflow"

on:
push:
branches: ["master", "development", "development-project-configurator"]
pull_request:
branches: [ "master", "development", "development-project-configurator"]
workflow_dispatch:

jobs:
master-workflow:
uses: EyeSeeTea/github-workflows/.github/workflows/master.yml@master
69 changes: 41 additions & 28 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,31 +1,44 @@
.DS_STORE
node_modules
*~
*.pyc
static
.grunt
_SpecRunner.html
__benchmarks__
build/
coverage/
.module-cache
*.gem
docs/.bundle
docs/code
docs/_site
docs/.sass-cache
docs/js/*
docs/downloads
docs/vendor/bundle
examples/shared/*.js
examples/**/bundle.js
test/the-files-to-test.generated.js
*.log*
chrome-user-data
# See https://help.github.com/articles/ignoring-files/ for more about ignoring files.

# dependencies
/node_modules

# testing
/coverage

# production
manifest.webapp
/build

# misc
.DS_Store
.env.local
.env.development.local
.env.test.local
.env.production.local
*.sublime-project
*.sublime-workspace
.idea
*.iml
.vscode
*.code-workspace
manifest.webapp
*.zip

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

src/locales/
src/react-app.d.ts
src/react-app-env.d.ts
bak
.eslintcache

# cypress
cypress/screenshots/
cypress/videos/
cypress/fixtures/

# IntelliJ
.idea/*

docs/
# build-dependencies-visualizer generates a dist folder for the report
/dist
1 change: 1 addition & 0 deletions .husky/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
_
4 changes: 4 additions & 0 deletions .husky/post-merge
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/bin/sh
. "$(dirname "$0")/_/husky.sh"

./.githooks/dep-check
4 changes: 4 additions & 0 deletions .husky/pre-push
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/bin/sh
. "$(dirname "$0")/_/husky.sh"

yarn prettify && yarn lint && yarn update-po && yarn test
2 changes: 1 addition & 1 deletion .nvmrc
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v8.17.0
v18.16.1
5 changes: 5 additions & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
build
node_modules
*.min.js
*.min.css
src/data/entry-form/velocity.ts
8 changes: 4 additions & 4 deletions .prettierrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,13 @@ module.exports = {
useTabs: false,
semi: true,
singleQuote: false,
trailingComma: 'es5',
trailingComma: "es5",
bracketSpacing: true,
jsxBracketSameLine: false,
arrowParens: 'avoid',
arrowParens: "avoid",
rangeStart: 0,
rangeEnd: Infinity,
proseWrap: 'preserve',
proseWrap: "preserve",
requirePragma: false,
insertPragma: false,
}
};
41 changes: 41 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
language: node_js
node_js:
- 12.13.0
dist: bionic
cache:
directories:
- "$HOME/.cache"
before_install:
- echo fs.inotify.max_user_watches=524288 | sudo tee -a /etc/sysctl.conf && sudo sysctl -p
# Install python dependencies
- sudo apt-get update
- sudo apt-get install python3 python python3-setuptools docker.io docker-compose
# Install d2-docker
- git clone https://github.com/EyeSeeTea/d2-docker.git
- cd d2-docker/
- sudo python3 setup.py install
- d2-docker --help
# Hack to not be prompted in the terminal
- sudo apt-get remove golang-docker-credential-helpers
# Start docker service
- sudo systemctl unmask docker.service
- sudo systemctl unmask docker.socket
- sudo systemctl start docker.service
# Login to docker
- echo "$DOCKER_PASSWORD" | docker login -u "$DOCKER_USERNAME" --password-stdin
# Start docker service
- d2-docker start eyeseetea/dhis2-data:2.30-sierra-leone -d --port 8080
install:
- yarn install --frozen-lockfile
- yarn cy:verify
- yarn build
script:
- PORT=8081 REACT_APP_DHIS2_BASE_URL=http://localhost:8080 REACT_APP_CYPRESS=true yarn start &
- yarn wait-on http-get://localhost:8081
- yarn wait-on http-get://localhost:8080
- CYPRESS_EXTERNAL_API=http://localhost:8080 CYPRESS_ROOT_URL=http://localhost:8081 yarn cy:e2e:run --record --key $CYPRESS_KEY
- kill $(jobs -p) || true
addons:
apt:
packages:
- libgconf-2-4
3 changes: 3 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"typescript.preferences.importModuleSpecifier": "non-relative"
}
8 changes: 4 additions & 4 deletions license.txt → LICENSE
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
GNU GENERAL PUBLIC LICENSE
Version 3, 29 June 2007

Copyright (C) 2007 Free Software Foundation, Inc. <http://fsf.org/>
Copyright (C) 2007 Free Software Foundation, Inc. <https://fsf.org/>
Everyone is permitted to copy and distribute verbatim copies
of this license document, but changing it is not allowed.

Expand Down Expand Up @@ -645,7 +645,7 @@ the "copyright" line and a pointer to where the full notice is found.
GNU General Public License for more details.

You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
along with this program. If not, see <https://www.gnu.org/licenses/>.

Also add information on how to contact you by electronic and paper mail.

Expand All @@ -664,11 +664,11 @@ might be different; for a GUI interface, you would use an "about box".
You should also get your employer (if you work as a programmer) or school,
if any, to sign a "copyright disclaimer" for the program, if necessary.
For more information on this, and how to apply and follow the GNU GPL, see
<http://www.gnu.org/licenses/>.
<https://www.gnu.org/licenses/>.

The GNU General Public License does not permit incorporating your program
into proprietary programs. If your program is a subroutine library, you
may consider it more useful to permit linking proprietary applications with
the library. If this is what you want to do, use the GNU Lesser General
Public License instead of this License. But first, please read
<http://www.gnu.org/philosophy/why-not-lgpl.html>.
<https://www.gnu.org/licenses/why-not-lgpl.html>.
Loading
Loading