Skip to content

Commit

Permalink
Merge pull request #989 from MTES-MCT/main
Browse files Browse the repository at this point in the history
Mise en production 30/10/2024
  • Loading branch information
Falinor authored Oct 30, 2024
2 parents 546da02 + 2e20e89 commit c63e100
Show file tree
Hide file tree
Showing 6 changed files with 33 additions and 26 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -55,4 +55,4 @@ jobs:
ORGA_ID: ${{ secrets.CLEVER_ORG }}
run: |
clever link --org $ORGA_ID --alias ${{ inputs.alias }} '${{ inputs.app }}'
clever deploy --alias ${{ inputs.alias }} --force
clever deploy --alias ${{ inputs.alias }} --same-commit-policy rebuild
12 changes: 6 additions & 6 deletions .github/workflows/review-app.yml
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ jobs:
- name: Deploy the app
run: |
clever domain add $APP_ALIAS.cleverapps.io -a $APP_ALIAS
clever deploy -a $APP_ALIAS
clever deploy -a $APP_ALIAS --same-commit-policy rebuild
- name: Scale down for the run
run: clever scale --flavor S -a $APP_ALIAS
Expand Down Expand Up @@ -186,7 +186,7 @@ jobs:
- name: Deploy the app
run: |
clever domain add $APP_ALIAS.cleverapps.io -a $APP_ALIAS
clever deploy -a $APP_ALIAS
clever deploy -a $APP_ALIAS --same-commit-policy rebuild
- name: Scale down for the run
run: clever scale --flavor M -a $APP_ALIAS
Expand Down Expand Up @@ -244,7 +244,7 @@ jobs:
- name: Deploy the app
run: |
clever domain add $APP_ALIAS.cleverapps.io -a $APP_ALIAS
clever deploy -a $APP_ALIAS
clever deploy -a $APP_ALIAS --same-commit-policy rebuild
- name: Scale down for the run
run: clever scale --flavor XS -a $APP_ALIAS
Expand Down Expand Up @@ -281,7 +281,7 @@ jobs:
run: clever scale --flavor M -a $APP_ALIAS

- name: Update the app
run: clever deploy --force -a $APP_ALIAS
run: clever deploy --force -a $APP_ALIAS --same-commit-policy rebuild

- name: Scale down for the run
run: clever scale --flavor S -a $APP_ALIAS
Expand Down Expand Up @@ -318,7 +318,7 @@ jobs:
run: clever scale --flavor M -a $APP_ALIAS

- name: Update the app
run: clever deploy --force -a $APP_ALIAS
run: clever deploy --force -a $APP_ALIAS --same-commit-policy rebuild

- name: Scale down for the run
run: clever scale --flavor XS -a $APP_ALIAS
Expand Down Expand Up @@ -355,7 +355,7 @@ jobs:
run: clever scale --flavor M -a $APP_ALIAS

- name: Update the app
run: clever deploy --force -a $APP_ALIAS
run: clever deploy --force -a $APP_ALIAS --same-commit-policy rebuild

- name: Scale down for the run
run: clever scale --flavor M -a $APP_ALIAS
Expand Down
2 changes: 1 addition & 1 deletion frontend/src/components/GroupCard/group-card.module.scss
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,6 @@
.title {
font-weight: 500 !important;
text-overflow: ellipsis;
overflow-x: hidden;
overflow: hidden;
white-space: nowrap;
}
7 changes: 4 additions & 3 deletions frontend/src/views/HousingList/HousingListTab.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { useEffect, useState } from 'react';
import { useSelection } from '../../hooks/useSelection';
import HousingList from '../../components/HousingList/HousingList';
import SelectableListHeaderActions from '../../components/SelectableListHeader/SelectableListHeaderActions';
import { Row, Text } from '../../components/_dsfr';
import { Row } from '../../components/_dsfr';
import CampaignCreationModal from '../../components/modals/CampaignCreationModal/CampaignCreationModal';
import HousingListEditionSideMenu from '../../components/HousingEdition/HousingListEditionSideMenu';
import SelectableListHeader from '../../components/SelectableListHeader/SelectableListHeader';
Expand Down Expand Up @@ -33,6 +33,7 @@ import Button from '@codegouvfr/react-dsfr/Button';
import { useCreateCampaignMutation } from '../../services/campaign.service';
import fp from 'lodash/fp';
import { HousingStatus } from '@zerologementvacant/models';
import Typography from '@mui/material/Typography';

export type HousingListTabProps = {
isActive: boolean;
Expand Down Expand Up @@ -230,14 +231,14 @@ const HousingListTab = ({
{(showCount ?? true) &&
filteredHousingCount !== undefined &&
filteredOwnerCount !== undefined && (
<Text spacing="mb-2w">
<Typography sx={{ padding: 2 }}>
{displayHousingCount({
filteredHousingCount,
filteredOwnerCount,
totalCount,
status
})}
</Text>
</Typography>
)}
<HousingList filters={filters} onSelectHousing={setSelected}>
<SelectableListHeader entity="logement" default={<></>}>
Expand Down
4 changes: 4 additions & 0 deletions frontend/src/views/HousingList/HousingListTabs.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import { fr } from '@codegouvfr/react-dsfr';
import Tabs from '@codegouvfr/react-dsfr/Tabs';
import fp from 'lodash/fp';

Expand Down Expand Up @@ -47,6 +48,9 @@ const HousingListTabs = ({

return (
<Tabs
classes={{
panel: fr.cx('fr-p-0')
}}
className="tabs-no-border statusTabs"
selectedTabId={activeTab}
onTabChange={(tab: string) => setActiveTab(tab)}
Expand Down
32 changes: 17 additions & 15 deletions frontend/src/views/HousingList/HousingListView.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import HousingFiltersBadges from '../../components/HousingFiltersBadges/HousingF

import {
TrackEventActions,
TrackEventCategories,
TrackEventCategories
} from '../../models/TrackEvent';
import AppSearchBar from '../../components/_app/AppSearchBar/AppSearchBar';
import { useFilters } from '../../hooks/useFilters';
Expand All @@ -32,7 +32,7 @@ const HousingListView = () => {
onChangeFilters,
onResetFilters,
setExpand,
removeFilter,
removeFilter
} = useFilters();

const { view } = useAppSelector((state) => state.housing);
Expand All @@ -41,19 +41,19 @@ const HousingListView = () => {
trackEvent({
category: TrackEventCategories.HousingList,
action: TrackEventActions.HousingList.Search,
name: query,
name: query
});
setFilters({
...filters,
query,
query
});
};

const router = useHistory<RouterState | undefined>();
const [alert, setAlert] = useState(router.location.state?.alert ?? '');
function onFinish() {
setAlert(
'Le logement sélectionné a bien été ajouté à votre parc de logements.',
'Le logement sélectionné a bien été ajouté à votre parc de logements.'
);
}

Expand Down Expand Up @@ -93,23 +93,25 @@ const HousingListView = () => {
<HousingDisplaySwitch />
</Grid>
<Grid xs="auto">
{ !isVisitor && <HousingCreationModal onFinish={onFinish} /> }
{!isVisitor && <HousingCreationModal onFinish={onFinish} />}
</Grid>
</Grid>

<Grid mb={3} xs={12}>
<HousingFiltersBadges filters={filters} onChange={removeFilter} />
</Grid>

{view === 'map' ? (
<HousingListMap filters={filters} />
) : (
<HousingListTabs
filters={filters}
showCreateCampaign
showCreateGroup
/>
)}
<Grid mb={1} xs={12}>
{view === 'map' ? (
<HousingListMap filters={filters} />
) : (
<HousingListTabs
filters={filters}
showCreateCampaign
showCreateGroup
/>
)}
</Grid>
</Grid>
</Grid>
);
Expand Down

0 comments on commit c63e100

Please sign in to comment.