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

Env/blue.dev #446

Closed
wants to merge 114 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
114 commits
Select commit Hold shift + click to select a range
480a489
Update package.json and TailwindCSS config files
Onitoxan Jan 10, 2024
f4d8c13
Update libs/hpc-data hpc/live and hpc/dummy
Onitoxan Jan 10, 2024
b8ccb50
Update libs/hpc-core
Onitoxan Jan 10, 2024
ad9a097
Update libs/hpc-ui
Onitoxan Jan 10, 2024
667a89f
Add UseQueryParams support
Onitoxan Jan 10, 2024
01fc1d3
Add paths
Onitoxan Jan 10, 2024
1a18331
Update i18n
Onitoxan Jan 10, 2024
670f49f
Add components
Onitoxan Jan 10, 2024
64cfb5e
Add pages
Onitoxan Jan 10, 2024
3043754
Remove yup and add io-ts support
Onitoxan Jan 12, 2024
23e1520
Update files from .tsx to .ts
Onitoxan Jan 12, 2024
f62920f
Remove unnused imports and minor fixes
Onitoxan Jan 12, 2024
f3ca38b
Fix wrong type for next/prev page cursor
manelcecs Jan 22, 2024
3b27e05
Update nested flow filters
manelcecs Jan 25, 2024
225e124
Modify (i) icon mouseover from Source and Destination organizations
manelcecs Jan 25, 2024
c621d76
Add 'source system ID' column to flow table
manelcecs Jan 26, 2024
34d2be1
Add 'reporter reference code' column to flow table
manelcecs Jan 26, 2024
af2587b
Correct usage of column name
manelcecs Jan 29, 2024
419654f
Remove 'dependencies' from package.json
Onitoxan Mar 25, 2024
57752b2
Remove unused params on dummy.ts
Onitoxan Mar 25, 2024
e5810ff
Refactor AsyncAutocompleteSelect and add i18n support
Onitoxan Mar 25, 2024
6e5fc7c
Add download flows with fetch
manelcecs Mar 13, 2024
4eab5bf
Fix io-ts codec to accept possitive values
Onitoxan Apr 3, 2024
4bd9d21
Fix typo 'requiered'
Onitoxan Apr 3, 2024
3fe1dfc
Remove strange TODO comment
Onitoxan Apr 3, 2024
522fccd
Add filtering of non-defined values on Set
Onitoxan Apr 3, 2024
f505fba
Update fn-promises to be less verbose
Onitoxan Apr 3, 2024
90d5b8c
Remove unnecessary 'any'
Onitoxan Apr 3, 2024
7c2981b
Remove unused values from autocomplete-field
Onitoxan Apr 3, 2024
4e248af
Remove unnecessary 'any' and dangerous type assertions
Onitoxan Apr 5, 2024
c2c9d58
Remove unused values
Onitoxan Apr 5, 2024
e6bf26e
Remove REST flow page
Onitoxan Apr 5, 2024
fd031e2
Fix form-validation
Onitoxan Apr 16, 2024
648fa07
Remove TotalAmountUSD
Onitoxan Apr 16, 2024
e3678ec
Remove unnecessary components and update async-autocomplete
Onitoxan Apr 16, 2024
2f52c99
Remove any from draggable-list
Onitoxan Apr 16, 2024
1e39564
Solve TODOS of keyword-table and related issues
Onitoxan Apr 16, 2024
f9a9905
Refactors, Fixes and minor updates
Onitoxan Apr 16, 2024
7316f68
Fix organization filter validation
Onitoxan Apr 22, 2024
b71a06c
Update package.json and TailwindCSS config files
Onitoxan Jan 10, 2024
7cc71d9
Fix Typos and fix flow initial values
Onitoxan Apr 19, 2024
1731dc8
Remove unnecessary console.log
Onitoxan Apr 19, 2024
59d1696
Update multi-text to set input value onBlur
Onitoxan Apr 19, 2024
5ed1fb0
Fix AmountUSD Filter
Onitoxan Apr 19, 2024
6f10c42
Display horizontal scroll on top of table and fix overflow of table
Onitoxan Apr 19, 2024
53fde86
Fix pagination
Onitoxan Apr 19, 2024
fa3fdd4
Allow reporterReferenceCode to accept anything
Onitoxan Apr 22, 2024
bd81e7f
Handle empty table state
Onitoxan Apr 22, 2024
b92c9fb
Block XLXS download while Active status is set
Onitoxan Apr 22, 2024
d729ff7
Fix flows non-sortable fields
Onitoxan Apr 22, 2024
5de662f
Add 'status' filter
Onitoxan Apr 26, 2024
f8033f0
Update reject pending flows button
Onitoxan Apr 26, 2024
db6143e
Edit date format to DD/MM/YYYY
Onitoxan Apr 24, 2024
7e84c18
Modify some fields to not be sortable
Onitoxan Apr 24, 2024
32fd189
Block filter deletion of an initial value
Onitoxan Apr 26, 2024
679728c
Fix showing multiple countries org table
Onitoxan Apr 26, 2024
6078623
Update error handling and fix subtle bugs
Onitoxan Apr 26, 2024
68e7900
Support adminLevel=1 locations in fields
Onitoxan Apr 26, 2024
d2b0c9f
Fix table overflows
Onitoxan Apr 26, 2024
9770d53
Sync branch and add new feature
seniorITdev Feb 20, 2024
6592c4a
fix pagination issue
seniorITdev Feb 23, 2024
7bab1a1
add linked flow
seniorITdev Feb 29, 2024
f0016b1
add debounce and new auto filling logic
seniorITdev Mar 5, 2024
8325c28
add autofilled flag
seniorITdev Mar 5, 2024
ea00c99
show parents and child flows on edit page
seniorITdev Mar 8, 2024
958c060
fix rerender issue and add parents sources section
seniorITdev Mar 13, 2024
1e6d6ae
fix parentFlow and childFlow issue
seniorITdev Mar 14, 2024
0f25b68
Add flow-validations
seniorITdev Mar 22, 2024
6b33d9e
update validation and create logic
seniorITdev Mar 29, 2024
f0fd15c
fix validation logic while creating
seniorITdev Apr 1, 2024
b09e153
HPC-8546 Add disabling of new money checkbox with Parent
seniorITdev Apr 3, 2024
ec07a43
Fix updating flow
seniorITdev Apr 4, 2024
99b0a37
HPC-8546 Add feature of delete flow
seniorITdev Apr 9, 2024
879f72e
HPC-8546 Modify file upload component
seniorITdev Apr 10, 2024
f416f9c
HPC-8546 fix bug population of parent data to funding source
seniorITdev Apr 11, 2024
2855b03
HPC-8546 Fix issue non-visable of category on edit flow
seniorITdev Apr 11, 2024
16d8abf
fixed displayed date, text information and sorting
seniorITdev Apr 15, 2024
b833402
fix pending version ID
seniorITdev Apr 15, 2024
a6a0d9b
fixed validation features
seniorITdev Apr 15, 2024
bb0799c
fix validation and pending description
seniorITdev Apr 17, 2024
6fdaf38
fixed new flow route
seniorITdev Apr 17, 2024
9b339c4
File upload and download, match organization name, report url
seniorITdev Apr 22, 2024
de2d8a0
Update Linked Flow and validation
seniorITdev Apr 24, 2024
a5b76fc
Update Linked Flow and validation
seniorITdev Apr 24, 2024
37e8b7e
Update linkFlow and update pendingFLow
seniorITdev Apr 29, 2024
7613cac
sync between 9502 and 8546
seniorITdev Apr 29, 2024
5939449
sync between 9502 and 8546
seniorITdev Apr 30, 2024
065aeb6
Fix placeholder position
Onitoxan Apr 30, 2024
950251e
Fix unused noGap property
Onitoxan Apr 30, 2024
5de7ec1
Add inclusive tag to OR filters
Onitoxan Apr 30, 2024
30de698
Change 'allowNegative' default behaviour
Onitoxan Apr 30, 2024
af0ff7d
Modify shadow color
Onitoxan Apr 30, 2024
ecb4800
Fix ',' replacement fn
Onitoxan May 2, 2024
896b5c7
Add merge Organization and merge Keyword
Onitoxan May 3, 2024
b45296a
Fix hover over organization table
Onitoxan May 3, 2024
27b3289
Fix i18n text of tooltips
Onitoxan May 3, 2024
c1aedea
Add InfoAlert component and minor fix to export of MergeModal
Onitoxan May 3, 2024
50b5c7e
completed flow copy
seniorITdev May 5, 2024
40ab321
Modify flow dates to en-GB format (dd/mm/YYYY)
Onitoxan May 6, 2024
54b490c
includeChildrenOfParkedFlows default to true
Onitoxan May 6, 2024
b180cc0
Fix flow-table plan destination not being filtered
Onitoxan May 6, 2024
832d072
Implement Set as inactive button
seniorITdev May 8, 2024
0f530d3
Fix download flows
Onitoxan May 8, 2024
ddb7188
adjust deployment config
seniorITdev Apr 30, 2024
3033824
Fix download flows
Onitoxan May 8, 2024
4794e9c
update project add
seniorITdev May 9, 2024
0b8a911
add as error correction and fix set as inactive button
seniorITdev May 9, 2024
3685e22
fix set as inactive button and add as error correction button
seniorITdev May 9, 2024
3b30176
fix project button
seniorITdev May 10, 2024
556fd13
Merge branch 'HPC-9502-sync' into env/blue.dev
seniorITdev May 10, 2024
e8e32e2
fix project auto complete
seniorITdev May 10, 2024
55d2125
Merge branch 'HPC-9502-sync' into env/blue.dev
seniorITdev May 10, 2024
6d5c27d
fix project auto complete
seniorITdev May 10, 2024
c373815
Merge branch 'HPC-9502-sync' into env/blue.dev
seniorITdev May 10, 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
2 changes: 1 addition & 1 deletion .github/workflow.config.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
"commitSha": "HPC_ACTIONS_COMMIT_SHA",
"treeSha": "HPC_ACTIONS_TREE_SHA"
},
"repository": "public.ecr.aws/unocha/hpc-cdm",
"repository": "public.ecr.aws/unocha/hpc-ftsadmin",
"skipLogin": true
},
"ci": ["./.github/ci.sh"],
Expand Down
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ ARG ENVIRONMENT=production
RUN npm run remove-unneeded-deps && \
npm install && \
# Output path is relative to working directory
npm run build hpc-cdm -- --output-path=dist/ --configuration=$ENVIRONMENT
npm run build hpc-ftsadmin -- --output-path=dist/ --configuration=$ENVIRONMENT

FROM public.ecr.aws/unocha/nginx:stable-beagle

Expand Down
2 changes: 1 addition & 1 deletion apps/hpc-cdm/project.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
"polyfills": "apps/hpc-cdm/src/polyfills.ts",
"tsConfig": "apps/hpc-cdm/tsconfig.app.json",
"assets": ["apps/hpc-cdm/src/favicon.ico", "apps/hpc-cdm/src/assets"],
"styles": [],
"styles": ["node_modules/tailwindcss/tailwind.css"],
"scripts": [],
"webpackConfig": "apps/hpc-cdm/webpack.config.js",
"isolatedConfig": true
Expand Down
8 changes: 7 additions & 1 deletion apps/hpc-cdm/tsconfig.app.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,13 @@
"**/*.test.tsx",
"jest.config.ts"
],
"include": ["**/*.js", "**/*.jsx", "**/*.ts", "**/*.tsx"],
"include": [
"**/*.js",
"**/*.jsx",
"**/*.ts",
"**/*.tsx",
"../../tailwind.config.js"
],
"files": [
"src/app/components/enketo-form/enketo-core.d.ts",
"../../node_modules/@nx/react/typings/cssmodule.d.ts",
Expand Down
2 changes: 1 addition & 1 deletion apps/hpc-ftsadmin/project.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
"apps/hpc-ftsadmin/src/favicon.ico",
"apps/hpc-ftsadmin/src/assets"
],
"styles": [],
"styles": ["node_modules/tailwindcss/tailwind.css"],
"scripts": [],
"webpackConfig": "apps/hpc-ftsadmin/webpack.config.js",
"isolatedConfig": true
Expand Down
70 changes: 65 additions & 5 deletions apps/hpc-ftsadmin/src/app/app.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,16 @@ import { LanguageKey, LANGUAGE_CHOICE, t } from '../i18n';
import PageMeta from './components/page-meta';
import { AppContext, contextFromEnv } from './context';
import { Z_INDEX } from './layout';
import PageFlowsList from './pages/flows-list';
import PageFlowsList from './pages/flows/flows-list';
import PageKeywordsList from './pages/keywords/keyword-list';
import PageNotFound from './pages/not-found';
import PageNotLoggedIn from './pages/not-logged-in';
import PagePendingFlowsList from './pages/flows/pending-flows-list';
import PageOrganizationsList from './pages/organizations/organization-list';
import PageOrganization from './pages/organizations/organization';
import FlowEdit from './pages/add-edit/flow-edit';
import * as paths from './paths';
import { RouteParamsValidator } from './components/route-params-validator';

const environmentWarning = (env: Environment, lang: LanguageKey) => {
const warning = env.getDevHeaderWarning(lang);
Expand Down Expand Up @@ -91,10 +97,7 @@ export const App = () => {
loader={loadEnv}
strings={{
...t.get(lang, (s) => s.components.loader),
notFound: {
...t.get(lang, (s) => s.components.notFound),
...t.get(lang, (s) => s.routes.operations.notFound),
},
notFound: t.get(lang, (s) => s.components.notFound),
}}
>
{(context) => {
Expand Down Expand Up @@ -126,6 +129,18 @@ export const App = () => {
label: t.t(lang, (s) => s.navigation.flows),
path: paths.flows(),
},
{
label: t.t(lang, (s) => s.navigation.pendingFlows),
path: paths.pendingFlows(),
},
{
label: t.t(lang, (s) => s.navigation.organizations),
path: paths.organizations(),
},
{
label: t.t(lang, (s) => s.navigation.keywords),
path: paths.keywords(),
},
]}
className={CLASSES.CONTAINER.FLUID}
externalLinks={[
Expand Down Expand Up @@ -165,6 +180,12 @@ export const App = () => {
]
: []),
]}
actionButtons={[
{
label: t.t(lang, (s) => s.navigation.newFlow),
path: paths.newFlow(),
},
]}
/>
<Routes>
<Route
Expand All @@ -175,6 +196,45 @@ export const App = () => {
path={paths.flows()}
element={<PageFlowsList />}
/>
<Route
path={paths.pendingFlows()}
element={<PagePendingFlowsList />}
/>
<Route
path={paths.organizations()}
element={<PageOrganizationsList />}
/>
<Route
path={paths.organizationRoot()}
element={
<RouteParamsValidator
element={<PageOrganization />}
routeParam="id"
/>
}
/>
<Route
path={paths.addOrganization()}
element={<PageOrganization />}
/>
<Route
path={paths.keywords()}
element={<PageKeywordsList />}
/>
<Route
path={paths.newFlow()}
element={
<FlowEdit key="new-flow-route" isEdit={false} />
}
/>
<Route
path={paths.copyFlow()}
element={<FlowEdit key="copy-flow-route" isEdit />}
/>
<Route
path={paths.editFlow()}
element={<FlowEdit key="edit-flow-route" isEdit />}
/>
<Route element={<PageNotFound />} />
</Routes>
</LoggedInContainer>
Expand Down
16 changes: 16 additions & 0 deletions apps/hpc-ftsadmin/src/app/components/Hooks/SharePath.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
import { useState } from 'react';

type SharePath = string;

function useSharePath(
initialValue: SharePath
): [SharePath, (newPath: SharePath) => void] {
const [path, setPath] = useState<SharePath>(initialValue);

const updateData = (newPath: SharePath) => {
setPath(newPath);
};
return [path, updateData];
}

export default useSharePath;
Loading