Skip to content

Commit

Permalink
[TRA 15831] - Exports registres V2 : Modale d'export et petites améli…
Browse files Browse the repository at this point in the history
…orations d'UX (#3953)
  • Loading branch information
silto authored Feb 13, 2025
1 parent 7b250df commit 41c0c05
Show file tree
Hide file tree
Showing 10 changed files with 922 additions and 708 deletions.
6 changes: 6 additions & 0 deletions Changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,12 @@ Les changements importants de Trackdéchets sont documentés dans ce fichier.
Le format est basé sur [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
et le projet suit un schéma de versionning inspiré de [Calendar Versioning](https://calver.org/).

# [2025.03.1] 11/03/2025

#### :nail_care: Améliorations

- Exports registres V2 : Modale d'export et petites améliorations d'UX [PR 3953](https://github.com/MTES-MCT/trackdechets/pull/3953)

# [2025.02.1] 11/02/2025

#### :rocket: Nouvelles fonctionnalités
Expand Down
18 changes: 16 additions & 2 deletions front/src/Apps/common/Components/Loader/Loaders.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,22 @@ export default function Loader() {
);
}

export function InlineLoader() {
return <div className={styles.loader}></div>;
export function InlineLoader({ size }: { size?: number }) {
return (
<div
className={styles.loader}
style={
size
? {
width: `${size}px`,
height: `${size}px`,
borderWidth: Math.ceil((size * 8) / 60),
borderTopWidth: Math.ceil((size * 8) / 60)
}
: undefined
}
></div>
);
}

export const ModalLoader = () => (
Expand Down
4 changes: 2 additions & 2 deletions front/src/dashboard/registry/CompanyImports.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -47,13 +47,13 @@ export function CompanyImports() {
const link = await getDownloadLink({
variables: { importId, target: RegistryDownloadTarget.ErrorFile }
});
await downloadFromSignedUrl(link.data?.registryDownloadSignedUrl.signedUrl);
downloadFromSignedUrl(link.data?.registryDownloadSignedUrl.signedUrl);
}
async function downloadImportFile(importId: string) {
const link = await getDownloadLink({
variables: { importId, target: RegistryDownloadTarget.ImportFile }
});
await downloadFromSignedUrl(link.data?.registryDownloadSignedUrl.signedUrl);
downloadFromSignedUrl(link.data?.registryDownloadSignedUrl.signedUrl);
}

const tableData =
Expand Down
Loading

0 comments on commit 41c0c05

Please sign in to comment.