Skip to content

Commit

Permalink
Feat: Modale d'enregistrement des données entreprises (avec CTA) (#1243)
Browse files Browse the repository at this point in the history
- Composant RegisterModal (étape siret + détails entreprises) V1 : 
-- Choix de la taille de l'entreprise dans un select
-- enregistrement manuel : 
--- localisation : choix de la région avec une barre de recherche
--- activité : reprise du composant actuel (select)

- Branchement avec l'api de @dolemoine + ajout d'un type ManualData pour
gérer le cas d'un enregistrement manuel
- Amélioration du CTA register dans le header pour avoir une transition 
- Branchement du TeeRegisterHighlight pour accéder à la modale depuis le
détail d'un projet

---------

Co-authored-by: Yohann Valentin <[email protected]>
  • Loading branch information
oumeimaelisbihani and yvalentin authored Nov 15, 2024
1 parent bfeb08a commit 5859556
Show file tree
Hide file tree
Showing 41 changed files with 1,285 additions and 189 deletions.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Controller, Route, SuccessResponse, TsoaResponse, Res, Example, Get, Path } from 'tsoa'
import { Controller, Route, SuccessResponse, TsoaResponse, Res, Example, Get, Path, Query } from 'tsoa'
import { ErrorJSON, Establishment, EstablishmentNotFoundError, EstablishmentService, ValidateErrorJSON, Monitor } from '@tee/backend-ddd'
import { EstablishmentSearch } from '@tee/common'

Expand Down Expand Up @@ -38,7 +38,7 @@ export class SireneController extends Controller {
/**
* Retrieve establishments informations used in front end
* for a single establishment using the SIRENE API if search by SIRET
* or for up to 3 establishments using the Recherche-entreprise API otherwise.
* or for up to 9 establishments using the Recherche-entreprise API otherwise.
* Also return the number of matches found
*
* @summary Search for establishments from a query
Expand All @@ -50,11 +50,12 @@ export class SireneController extends Controller {
@Get('{query}')
public async getEstablishmentBySiret(
@Path() query: string,
@Query() resultCount = 3,
@Res() requestFailedResponse: TsoaResponse<500, ErrorJSON>,
@Res() _validationFailedResponse: TsoaResponse<422, ValidateErrorJSON>,
@Res() notFoundResponse: TsoaResponse<404, EstablishmentNotFoundErrorJSON>
): Promise<EstablishmentSearch> {
const establishmentResult = await new EstablishmentService().search(query)
const establishmentResult = await new EstablishmentService().search(query, resultCount)

if (establishmentResult.isErr) {
const err = establishmentResult.error
Expand Down
27 changes: 0 additions & 27 deletions apps/web/public/css/custom.css
Original file line number Diff line number Diff line change
Expand Up @@ -186,43 +186,16 @@ button.fr-link:hover, .tee-router-link:hover {
line-height: 1.2em;
}

/* TRACK INPUT */
.tee-resp-info-block {
text-indent: -3.5rem;
padding-left: 3.5rem;
}

/* CUSTOM BUTTON INPUT */
.tee-btn-next {
justify-content: end;
}
.tee-form-input-large {
display: flex;
}
.tee-input-large {
font-size: 1.1rem;
height: 4rem !important;
max-height: 4rem !important;
border-radius: .25rem 0 0 0;
}
.tee-input-large::placeholder {
font-size: 1rem;
}
.tee-btn-input-large {
max-height: 4rem !important;
max-width: 4rem !important;
}
.tee-btn-input-large::before {
width: 3rem !important;
}

.tee-input-large:focus {
outline-offset: unset;
outline-width: unset;
outline-color: unset;
outline-style: none;
}

.tee-input-hint {
color: #000091;
}
Expand Down
26 changes: 26 additions & 0 deletions apps/web/public/images/TEE-modal-bottom-mobile.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading

0 comments on commit 5859556

Please sign in to comment.