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

Production Release | January Week 5 #7119

Merged
merged 21 commits into from
Jan 30, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
21 commits
Select commit Hold shift + click to select a range
8025200
Fixed the edge case in cypress flaky test (#7076)
nihal467 Jan 22, 2024
619cff7
Add CSP headers (#7083)
sainak Jan 23, 2024
6576500
Fixed uneven cards (#7059)
shyamprakash123 Jan 23, 2024
a36f2b0
Enhancements to backend setup of Cypress CI (#7051)
rithviknishad Jan 23, 2024
5c08e16
Fix inconsistent removal of facility filters (#7031)
Omkar76 Jan 23, 2024
154f818
changed the variant of the button to show a filter is active (#7026)
shramanpaul Jan 23, 2024
b9544b5
Add more symptoms and move OTHERS to bottom (#6958)
Omkar76 Jan 23, 2024
20cac43
Enhance UI of Shifting Board (#6956)
Arzzam Jan 23, 2024
01bb090
Changed to current date time instead of date time at which app was lo…
shyamprakash123 Jan 23, 2024
ed65ad3
fix csp for websockets (#7085)
sainak Jan 23, 2024
50d181d
fixes #7087 missing sidebar nav animation (#7091)
rithviknishad Jan 24, 2024
bc7d1e5
Add api.data.gov.in to CSP (#7090)
Ashesh3 Jan 24, 2024
b32691d
Fix facility cover upload when using camera (#7092)
Ashesh3 Jan 24, 2024
b165049
Adds support to remove all filters via `useFilters`'s utility method …
rithviknishad Jan 24, 2024
a4d060f
Relax CSP for styles and connect URLs (#7097)
sainak Jan 24, 2024
a45f80b
Fix camera feed not working on asset configure page for IOS devices (…
Ashesh3 Jan 25, 2024
8e6d815
Add mime_type to upload request for sample results (#7099)
Ashesh3 Jan 25, 2024
5cc5072
Add blob: data: for media-src CSP (#7100)
Ashesh3 Jan 25, 2024
35e78bd
Adds support for filtering patients by diagnoses (#7062)
rithviknishad Jan 25, 2024
4e53a3e
Update Content-Security-Policy script-src directive to allow 'blob' a…
Ashesh3 Jan 25, 2024
c154e7a
switch to report only for csp (#7116)
sainak Jan 29, 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: 2 additions & 0 deletions .env
Original file line number Diff line number Diff line change
Expand Up @@ -8,3 +8,5 @@ REACT_PUBLIC_URL=https://care.coronasafe.in

# Dev envs
ESLINT_NO_DEV_ERRORS=true

CARE_CDN_URL="https://egov-s3-facility-10bedicu.s3.amazonaws.com https://egov-s3-patient-data-10bedicu.s3.amazonaws.com http://localhost:4566"
13 changes: 1 addition & 12 deletions .github/workflows/cypress.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -32,18 +32,7 @@ jobs:
run: |
cd care
make docker_config_file=docker-compose.pre-built.yaml up
while docker compose exec celery-beat bash -c "python manage.py showmigrations 2>/dev/null | cat | grep -q '\[ \]'"; do
>&2 echo "Migrations are not yet applied - sleeping"
sleep 10
done
echo "Migrations are applied"
cd ..

- name: Load dummy data into care backend 📂
run: |
cd care
docker compose exec backend bash -c "python manage.py load_dummy_data"
docker restart care-backend-1
make docker_config_file=docker-compose.pre-built.yaml load-dummy-data
cd ..

- name: Wait for care to be up ♻
Expand Down
5 changes: 3 additions & 2 deletions cypress/e2e/facility_spec/locations.cy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ describe("Location Management Section", () => {
"Please select a bed type",
];
const locationName = "Test-location";
const locationNameTwo = "Test-location-2";
const locationDescription = "Test Description";
const locationType = "WARD";
const locationMiddleware = "dev_middleware.coronasafe.live";
Expand Down Expand Up @@ -110,14 +111,14 @@ describe("Location Management Section", () => {
assetPage.clickassetupdatebutton();
userCreationPage.verifyErrorMessages(EXPECTED_LOCATION_ERROR_MESSAGES);
// create a new location
facilityPage.fillFacilityName(locationName);
facilityPage.fillFacilityName(locationNameTwo);
facilityLocation.fillDescription(locationDescription);
facilityLocation.selectLocationType(locationType);
facilityLocation.fillMiddlewareAddress(locationMiddleware);
assetPage.clickassetupdatebutton();
facilityLocation.clickNotification();
// verify the reflection
facilityLocation.verifyLocationName(locationName);
facilityLocation.verifyLocationName(locationNameTwo);
facilityLocation.verifyLocationType(locationType);
facilityLocation.verifyLocationDescription(locationDescription);
facilityLocation.verifyLocationMiddleware(locationMiddleware);
Expand Down
2 changes: 0 additions & 2 deletions cypress/pageobject/Asset/AssetFilters.ts
Original file line number Diff line number Diff line change
Expand Up @@ -56,9 +56,7 @@ export class AssetFilters {
});
}
clickadvancefilter() {
cy.intercept("GET", "**/api/v1/getallfacilities/**").as("advancefilter");
cy.get("#advanced-filter").click();
cy.wait("@advancefilter").its("response.statusCode").should("eq", 200);
}
clickslideoverbackbutton() {
cy.get("#close-slide-over").click();
Expand Down
2 changes: 0 additions & 2 deletions cypress/support/commands.ts
Original file line number Diff line number Diff line change
Expand Up @@ -69,10 +69,8 @@ Cypress.Commands.add("loginByApi", (username, password) => {
Cypress.Commands.add(
"awaitUrl",
(url: string, disableLoginVerification = false) => {
cy.intercept(/fontawesome/).as("fontawesome");
cy.intercept(/currentuser/).as("currentuser");
cy.visit(url);
cy.wait("@fontawesome");
disableLoginVerification
? cy.wait("@currentuser")
: cy.wait("@currentuser").its("response.statusCode").should("eq", 200);
Expand Down
22 changes: 9 additions & 13 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -24,18 +24,12 @@
<meta name="theme-color" content="#0e9f6e" />
<link rel="shortcut icon" href="/favicon.ico" type="image/x-icon" />
<link rel="apple-touch-icon" href="/images/icons/apple-touch-icon-180x180.png">
<link rel="preconnect" href="https://fonts.googleapis.com" />
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin />
<link
href="https://fonts.googleapis.com/css2?family=Inter:wght@100;200;300;400;500;600;700;800;900&display=swap"
rel="stylesheet"
/>
</head>

<body>
<noscript>You need to enable JavaScript to run this app.</noscript>
<div id="root">
<style>
<style nonce="7e14cf80">
.App-logo {
height: 10vmin;
pointer-events: none;
Expand All @@ -53,8 +47,14 @@
75% {opacity: 0.5;}
100% {opacity: 0;}
}
.temp-loading {
display: grid;
place-items: center;
height: 100vh;
text-align: center;
}
</style>
<div style="display: grid;place-items: center;height: 100vh; text-align: center;">
<div class="temp-loading">
<img
class="App-logo"
src="https://cdn.coronasafe.network/light-logo.svg"
Expand All @@ -63,11 +63,7 @@
</div>
</div>
<script type="module" src="/src/index.tsx"></script>
<script
src="https://kit.fontawesome.com/d69454c2e7.js"
crossorigin="anonymous"
></script>
<script>
<script nonce="f51b9742">
window.plausible =
window.plausible ||
function () {
Expand Down
9 changes: 9 additions & 0 deletions netlify.toml
Original file line number Diff line number Diff line change
Expand Up @@ -24,3 +24,12 @@ status = 200
cache-control = "max-age=0, no-store"
X-Frame-Options = "DENY"
X-Content-Type-Options = "nosniff"
Content-Security-Policy-Report-Only = '''
default-src 'self';
script-src 'self' 'nonce-f51b9742' https://plausible.10bedicu.in;
style-src 'self' 'unsafe-inline';
connect-src 'self' https://plausible.10bedicu.in;
img-src 'self' https://cdn.coronasafe.network https://egov-s3-facility-10bedicu.s3.amazonaws.com https://egov-s3-patient-data-10bedicu.s3.amazonaws.com;
object-src 'self' https://egov-s3-facility-10bedicu.s3.amazonaws.com https://egov-s3-patient-data-10bedicu.s3.amazonaws.com;
report-uri https://csp-logger.ohc.network/
'''
Loading
Loading