Skip to content

Commit

Permalink
Merge pull request #5990 from beyondessential/merge-2024-45
Browse files Browse the repository at this point in the history
merge: release-2024-45 to dev
  • Loading branch information
tcaiger authored Nov 7, 2024
2 parents 04ed541 + db9e40a commit 1b959cf
Show file tree
Hide file tree
Showing 8 changed files with 41 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ const COLUMNS = [
type: 'export',
actionConfig: {
exportEndpoint: 'dataTable',
fileName: '{code}.xlsx',
fileName: '{code}.json',
},
},
{
Expand Down
1 change: 1 addition & 0 deletions packages/data-api/src/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ export const sanitizeAnalyticsTableValue = (value: string, type: string) => {
switch (type) {
case 'Binary':
case 'Checkbox':
case 'Arithmetic':
case 'Number': {
const sanitizedValue = parseFloat(value);
return Number.isNaN(sanitizedValue) ? '' : sanitizedValue;
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
'use strict';

var dbm;
var type;
var seed;

/**
* We receive the dbmigrate dependency from dbmigrate initially.
* This enables us to not have to rely on NODE_PATH.
*/
exports.setup = function (options, seedLink) {
dbm = options.dbmigrate;
type = dbm.dataType;
seed = seedLink;
};

exports.up = function (db) {
return db.runSql(
`ALTER TYPE public.entity_type ADD VALUE IF NOT EXISTS 'pacmossi_insecticide_test'`,
);
};

exports.down = function (db) {
return null;
};

exports._meta = {
version: 1,
};
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ import { Preview } from './Preview';
import { ExportDescriptionInput } from '../../ExportSettings/ExportDescriptionInput';

const ButtonGroup = styled.div`
padding-top: 2.5rem;
padding: 1rem 0;
width: 100%;
display: flex;
justify-content: flex-end;
Expand All @@ -32,7 +32,7 @@ const Wrapper = styled.div`
display: flex;
flex-direction: column;
flex-grow: 1;
width 100%;
width: 100%;
align-items: start;
section + section {
margin-top: 1.5rem;
Expand Down Expand Up @@ -105,9 +105,9 @@ const ExportSettingsInstructionsContainer = styled.div`
`;

const ExportSettingsWrapper = styled.div`
padding-block-end: 2rem;
padding-block-end: 0.8rem;
& + & {
padding-block-start: 1.5rem;
padding-block-start: 1rem;
border-top: 0.1rem solid ${({ theme }) => theme.palette.text.secondary};
}
&:last-child {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ const Wrapper = styled.div`
const ExportDescriptionInputArea = styled((props: OutlinedTextFieldProps) => (
<TextField {...props} />
))`
margin-block-start: 1rem;
margin-block-start: 0.6rem;
.MuiInputBase-root {
border: 1px solid ${({ theme }) => theme.palette.text.secondary};
Expand All @@ -44,7 +44,7 @@ const ExportDescription = styled.div<{
display: flex;
align-self: end;
justify-content: space-between;
margin-top: 0.313rem;
margin-top: 0.3rem;
color: ${({ error, theme }) => (error ? theme.palette.error.main : theme.palette.text.secondary)};
font-size: 0.75rem;
`;
Expand All @@ -61,7 +61,7 @@ export const ExportDescriptionInput = () => {
<ExportDescriptionInputArea
id="description"
multiline
rows={6}
rows={4}
value={exportDescription}
onChange={updateExportDescription}
variant="outlined"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,6 @@ import styled from 'styled-components';
export const ExportSettingLabel = styled(Typography)`
color: ${({ theme }) => theme.palette.text.primary};
padding-inline-start: 0;
font-size: 1.125rem;
font-size: 1rem;
font-weight: ${({ theme }) => theme.typography.fontWeightMedium};
`;
1 change: 1 addition & 0 deletions packages/types/src/schemas/schemas.ts

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions packages/types/src/types/models.ts

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 1b959cf

Please sign in to comment.