Skip to content

Commit

Permalink
Merge branch 'main' into feat/grant-slice
Browse files Browse the repository at this point in the history
  • Loading branch information
thorkellmani authored Dec 18, 2024
2 parents 4f93471 + ab48b56 commit 7d6dc62
Show file tree
Hide file tree
Showing 9 changed files with 37 additions and 21 deletions.
2 changes: 1 addition & 1 deletion apps/native/app/android/app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ android {
minSdkVersion rootProject.ext.minSdkVersion
targetSdkVersion rootProject.ext.targetSdkVersion
versionCode getMyVersionCode(143)
versionName "1.4.8"
versionName "1.4.9"
manifestPlaceholders = [
appAuthRedirectScheme: "is.island.app" // project.config.get("BUNDLE_ID_ANDROID")
]
Expand Down
2 changes: 1 addition & 1 deletion apps/native/app/ios/IslandApp/Info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
<key>CFBundlePackageType</key>
<string>APPL</string>
<key>CFBundleShortVersionString</key>
<string>1.4.8</string>
<string>1.4.9</string>
<key>CFBundleSignature</key>
<string>????</string>
<key>CFBundleURLTypes</key>
Expand Down
14 changes: 7 additions & 7 deletions apps/native/app/src/messages/en.ts
Original file line number Diff line number Diff line change
Expand Up @@ -665,15 +665,15 @@ export const en: TranslatedMessages = {

// health - organ donation
'health.organDonation': 'Organ Donation',
'health.organDonation.change': 'Breyta afstöðu',
'health.organDonation.isDonor': 'Ég er líffæragjafi',
'health.organDonation.change': 'Change selection',
'health.organDonation.isDonor': 'I am an organ donor',
'health.organDonation.isDonorWithLimitations':
'Ég heimila líffæragjöf, með takmörkunum.',
'health.organDonation.isNotDonor': 'Ég heimila ekki líffæragjöf',
'I allow organ donation, with restrictions.',
'health.organDonation.isNotDonor': 'I forbid organ donation',
'health.organDonation.isDonorDescription':
'Öll líffærin mín má nota til ígræðslu.',
'My organs can all be used for transplantation.',
'health.organDonation.isNotDonorDescription':
'Engin líffæri má nota til ígræðslu.',
'No organs can be used for transplantation.',
'health.organDonation.isDonorWithLimitationsDescription':
'Öll líffærin mín má nota til ígræðslu fyrir utan: {limitations}.',
'All organs can be used for transplantation except: {limitations}.',
}
4 changes: 2 additions & 2 deletions charts/islandis/values.staging.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -1742,7 +1742,7 @@ search-indexer-service:
cpuAverageUtilization: 90
nginxRequestsIrate: 5
replicas:
max: 3
max: 1
min: 1
image:
repository: '821090935708.dkr.ecr.eu-west-1.amazonaws.com/services-search-indexer'
Expand Down Expand Up @@ -1820,7 +1820,7 @@ search-indexer-service:
pvcs: []
replicaCount:
default: 1
max: 3
max: 1
min: 1
resources:
limits:
Expand Down
4 changes: 2 additions & 2 deletions charts/services/search-indexer-service/values.staging.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ hpa:
cpuAverageUtilization: 90
nginxRequestsIrate: 5
replicas:
max: 3
max: 1
min: 1
image:
repository: '821090935708.dkr.ecr.eu-west-1.amazonaws.com/services-search-indexer'
Expand Down Expand Up @@ -127,7 +127,7 @@ progressDeadlineSeconds: 1500
pvcs: []
replicaCount:
default: 1
max: 3
max: 1
min: 1
resources:
limits:
Expand Down
2 changes: 1 addition & 1 deletion infra/src/dsl/output-generators/map-to-helm-values.ts
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ const serializeService: SerializeMethod<HelmService> = async (
result.resources = serviceDef.resources

// replicas
if (env1.type == 'staging') {
if (env1.type == 'staging' && service.name.indexOf('search-indexer') == -1) {
result.replicaCount = {
min: 1,
max: 3,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,13 @@ export const DescriptionFormField: FC<
> = ({ application, field, showFieldName }) => {
const { formatMessage, lang: locale } = useLocale()

const { space: paddingTop = 2, marginBottom, marginTop } = field

return (
<Box
paddingTop={field.space}
marginBottom={field.marginBottom}
marginTop={field.marginTop}
paddingTop={paddingTop}
marginBottom={marginBottom}
marginTop={marginTop}
>
{showFieldName && (
<Text variant={field.titleVariant}>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -50,11 +50,13 @@ export const RadioFormField: FC<React.PropsWithChildren<Props>> = ({
[options, application, locale],
)

const paddingTop = field.space ?? 2

return (
<Box
marginTop={marginTop}
marginBottom={marginBottom}
paddingTop={field.space}
paddingTop={paddingTop}
role="region"
aria-labelledby={id + 'title'}
>
Expand All @@ -80,7 +82,7 @@ export const RadioFormField: FC<React.PropsWithChildren<Props>> = ({
/>
)}

<Box marginTop={2}>
<Box>
<RadioController
largeButtons={largeButtons}
backgroundColor={backgroundColor}
Expand Down Expand Up @@ -114,6 +116,8 @@ export const RadioFormField: FC<React.PropsWithChildren<Props>> = ({
}))}
onSelect={field.onSelect}
hasIllustration={hasIllustration}
paddingBottom={0}
paddingTop={2}
/>
</Box>
</Box>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ import {
InputError,
InputBackgroundColor,
TagVariant,
BoxProps,
} from '@island.is/island-ui/core'
import { TestSupport } from '@island.is/island-ui/utils'

Expand Down Expand Up @@ -39,6 +40,8 @@ interface Props {
backgroundColor?: InputBackgroundColor
onSelect?: (s: string) => void
hasIllustration?: boolean
paddingBottom?: BoxProps['paddingBottom']
paddingTop?: BoxProps['paddingTop']
}

export const RadioController: FC<React.PropsWithChildren<Props>> = ({
Expand All @@ -54,6 +57,8 @@ export const RadioController: FC<React.PropsWithChildren<Props>> = ({
split = '1/1',
smallScreenSplit = '1/1',
hasIllustration = false,
paddingBottom = 2,
paddingTop = 0,
}) => {
const { clearErrors, setValue } = useFormContext()

Expand All @@ -66,7 +71,8 @@ export const RadioController: FC<React.PropsWithChildren<Props>> = ({
{options.map((option, index) => (
<GridColumn
span={[smallScreenSplit, split]}
paddingBottom={2}
paddingBottom={paddingBottom}
paddingTop={paddingTop}
key={`option-${option.value}`}
>
<RadioButton
Expand Down Expand Up @@ -97,7 +103,11 @@ export const RadioController: FC<React.PropsWithChildren<Props>> = ({
))}

{error && (
<GridColumn span={['1/1', split]} paddingBottom={2}>
<GridColumn
span={['1/1', split]}
paddingBottom={paddingBottom}
paddingTop={paddingTop}
>
<InputError errorMessage={error} />
</GridColumn>
)}
Expand Down

0 comments on commit 7d6dc62

Please sign in to comment.