Skip to content

Commit

Permalink
Merge branch 'develop' into tsys-release-2024-05-28
Browse files Browse the repository at this point in the history
  • Loading branch information
web-mi committed May 28, 2024
2 parents bb05f9e + e276923 commit e392a75
Show file tree
Hide file tree
Showing 7 changed files with 611 additions and 26 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,15 +39,15 @@ jobs:
env:
GITHUB_TOKEN: ${{ secrets.github_token }}
- name: Bump version
if: startsWith(env.BRANCH,'release') == true
if: env.BRANCH == 'release'
run: |
git config --local user.email "[email protected]"
git config --local user.name "GitHub Action"
yarn run release
env:
GITHUB_TOKEN: ${{ secrets.github_token }}
- name: Push changes
if: startsWith(env.BRANCH,'release') == true
if: env.BRANCH == 'release'
uses: ad-m/github-push-action@master
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
Expand Down
4 changes: 3 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "adminpanel",
"version": "0.1.0",
"version": "0.2.0",
"private": true,
"homepage": "http://tenant1.onlineberatung.local/admin",
"dependencies": {
Expand Down Expand Up @@ -48,6 +48,7 @@
"start": "vite",
"build": "tsc && vite build",
"serve": "vite preview",
"release": "standard-version",
"test": "vite test",
"lint": "yarn run lint:css && yarn run lint:js && yarn run lint:formatting",
"lint:css": "stylelint --fix \"src/**/*.(s(c|a)ss|css|less)\"",
Expand Down Expand Up @@ -108,6 +109,7 @@
"prettier": "^2.5.1",
"react-error-overlay": "6.0.10",
"sass": "^1.56.1",
"standard-version": "^9.5.0",
"stylelint": "^14.4.0",
"stylelint-config-idiomatic-order": "^8.1.0",
"stylelint-config-prettier": "^9.0.3",
Expand Down
1 change: 1 addition & 0 deletions src/api/agency/addAgencyData.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ function buildAgencyDataRequestBody(consultingTypeResponseId: string | number, f
demographics: formData.demographics,
counsellingRelations: formData.counsellingRelations,
dataProtection: formData.dataProtection,
agencyLogo: formData.agencyLogo,
});
}

Expand Down
2 changes: 1 addition & 1 deletion src/hooks/useAgencyLegalDataMissing.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -34,5 +34,5 @@ export const useAgencyLegalDataMissing = (agencyData: AgencyData) => {
hasMissingDataProtectionOfficerContact ||
hasMissingAlternativeDataProtectionRepresentativeContact)
);
}, [agencyData]);
}, [agencyData, isEnabled]);
};
5 changes: 4 additions & 1 deletion src/pages/Agency/Edit/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ import { useAgencyLegalDataMissing } from '../../../hooks/useAgencyLegalDataMiss
import { ResponsibleSettings } from './components/ResponsibleSettings';
import { ContactSettings } from './components/ContactSettings';
import styles from '../../../components/Page/styles.module.scss';
import { AgencyLogo } from './components/AgencyLogo';

Check failure on line 26 in src/pages/Agency/Edit/index.tsx

View workflow job for this annotation

GitHub Actions / Build & Release

Cannot find module './components/AgencyLogo' or its corresponding type declarations.

Check failure on line 26 in src/pages/Agency/Edit/index.tsx

View workflow job for this annotation

GitHub Actions / ESLint

src/pages/Agency/Edit/index.tsx#L26

Unable to resolve path to module './components/AgencyLogo' (import/no-unresolved)

Check failure on line 26 in src/pages/Agency/Edit/index.tsx

View workflow job for this annotation

GitHub Actions / ESLint

src/pages/Agency/Edit/index.tsx#L26

Missing file extension for "./components/AgencyLogo" (import/extensions)

function hasOnlyDefaultRangeDefined(data: PostCodeRange[]) {
return data?.length === 0 || (data?.length === 1 && data[0].from === '00000' && data[0].until === '99999');
Expand Down Expand Up @@ -86,6 +87,7 @@ export const AgencyPageEdit = () => {
offline: !formData.online,
counsellingRelations: formData.counsellingRelations?.map(({ value }) => value),
};

mutate(newFormData, {
onError: () => {
setSubmitted(false);
Expand Down Expand Up @@ -170,10 +172,11 @@ export const AgencyPageEdit = () => {
</Col>
<Col xs={12} lg={6}>
<AgencyGeneralInformation />
<RegistrationSettings />
<RegistrationSettings consultingTypeId={agencyData?.consultingType} />

Check failure on line 175 in src/pages/Agency/Edit/index.tsx

View workflow job for this annotation

GitHub Actions / Build & Release

Type '{ consultingTypeId: string; }' is not assignable to type 'IntrinsicAttributes'.
</Col>
<Col xs={12} lg={6}>
<AgencySettings />
<AgencyLogo />
</Col>
</Row>
{isEnabled(FeatureFlag.CentralDataProtectionTemplate) && (
Expand Down
11 changes: 10 additions & 1 deletion src/styles/components/loginForm.less
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
}
}

@media screen and (min-width: @screen-md) {
@media screen and (min-width: @screen-sm) {
.loginForm {
.ant-form-item-label > label {
.labelText {
Expand All @@ -38,3 +38,12 @@
}
}
}

@media screen and (min-width: @screen-sm) and (max-width: @screen-md) {
.loginForm {
.ant-form-item-label {
flex: 0 auto;
max-width: none;
}
}
}
Loading

0 comments on commit e392a75

Please sign in to comment.