-
Notifications
You must be signed in to change notification settings - Fork 0
Add FSTileList and FSTileEntitiesList #669
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
- Updated FSTileDashboardsList, FSTileDeviceOrganisationsList, FSTileFoldersList, FSTileGroupsList, FSTileLocationsList, FSTileModelsList, and FSTileUserOrganisationsList components to support selectable and single-select functionalities. - Added modelValue prop to manage selected items across various tile lists. - Implemented corresponding storybook entries for each tile list to demonstrate selectable and single-select features.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull request overview
This PR introduces a reusable tile list system with support for selection, search, and entity-specific implementations. The changes include a base FSTileList component, seven entity-specific tile list components, and a dynamic FSTileEntitiesList wrapper that switches between them based on entity type.
- Added
FSTileListcomponent with search, selection (single/multi), and loading states - Created entity-specific tile list components for devices, dashboards, folders, users, groups, locations, and models
- Enhanced
FSSimpleTileUIwith selectable functionality and v-model support - Updated lerna to version 9.0.0 and added OIDC permissions to GitHub workflow
Reviewed changes
Copilot reviewed 30 out of 31 changed files in this pull request and generated 7 comments.
Show a summary per file
| File | Description |
|---|---|
| FSSimpleTileUI.vue | Added selectable prop and update:modelValue emit for selection support |
| FSTileList.vue | New base component providing search, filtering, selection logic, and layout options |
| FSTileUserOrganisationsList.vue | Entity-specific wrapper for user organisations with data fetching |
| FSTileModelsList.vue | Entity-specific wrapper for models with data fetching |
| FSTileLocationsList.vue | Entity-specific wrapper for locations with data fetching |
| FSTileGroupsList.vue | Entity-specific wrapper for groups with data fetching |
| FSTileFoldersList.vue | Entity-specific wrapper for folders with data fetching |
| FSTileDeviceOrganisationsList.vue | Entity-specific wrapper for device organisations with data fetching |
| FSTileDashboardsList.vue | Entity-specific wrapper for dashboards aggregating three dashboard types |
| FSTileEntitiesList.vue | Dynamic component router that loads appropriate tile list based on entity type |
| package.json | Updated lerna dependency from 7.3.0 to 9.0.0 |
| publish-npm.yml | Added OIDC permissions for secure npm publishing |
| TileList.stories.ts | Storybook story demonstrating FSTileList usage with selection and custom props |
| TileUserOrganisationsList.stories.ts | Storybook stories for user organisations tile list variations |
| TileModelsList.stories.ts | Storybook stories for models tile list variations |
| TileLocationsList.stories.ts | Storybook stories for locations tile list variations |
| TileGroupsList.stories.ts | Storybook stories for groups tile list variations |
| TileFoldersList.stories.ts | Storybook stories for folders tile list variations |
| TileDeviceOrganisationsList.stories.ts | Storybook stories for device organisations tile list variations |
| TileDashboardsList.stories.ts | Storybook stories for dashboards tile list variations |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
src/core/foundation-core-components/components/entities/FSTileEntitiesList.vue
Outdated
Show resolved
Hide resolved
src/shared/foundation-shared-components/components/lists/FSTileList.vue
Outdated
Show resolved
Hide resolved
src/shared/foundation-shared-components/components/lists/FSTileList.vue
Outdated
Show resolved
Hide resolved
src/core/foundation-core-components/components/lists/dashboards/FSTileDashboardsList.vue
Outdated
Show resolved
Hide resolved
src/core/foundation-core-components/components/entities/FSTileEntitiesList.vue
Outdated
Show resolved
Hide resolved
src/core/foundation-core-components/components/entities/FSTileEntitiesList.vue
Outdated
Show resolved
Hide resolved
src/shared/foundation-shared-components/components/lists/FSTileList.vue
Outdated
Show resolved
Hide resolved
src/shared/foundation-shared-components/components/lists/FSTileList.vue
Outdated
Show resolved
Hide resolved
src/shared/foundation-shared-components/components/lists/FSTileList.vue
Outdated
Show resolved
Hide resolved
src/shared/foundation-shared-components/components/tiles/FSSimpleTileUI.vue
Outdated
Show resolved
Hide resolved
...oundation-core-components/components/lists/userOrganisations/FSTileUserOrganisationsList.vue
Show resolved
Hide resolved
src/core/foundation-core-components/components/lists/models/FSTileModelsList.vue
Show resolved
Hide resolved
| :imageId="item.imageId" | ||
| :label="item.label" | ||
| :code="item.code" | ||
| :width="direction === 'column' ? 'fill' : undefined" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
On a pas mieux que undefined ? (valable pour toutes les listes)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Si je mets null, cela casse la width le tuile. Cela ne prends pas en compte la valeur par défaut.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
undefined c'est vraiment ce qu'on veut car ce qu'on veut c'es prendr ela taille par défaut de la tuile
src/core/foundation-core-components/components/lists/dashboards/FSTileDashboardsList.vue
Outdated
Show resolved
Hide resolved
| :imageId="item.imageId" | ||
| :label="item.label" | ||
| :code="item.code" | ||
| :width="direction === 'column' ? 'fill' : undefined" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
undefined c'est vraiment ce qu'on veut car ce qu'on veut c'es prendr ela taille par défaut de la tuile
No description provided.