Skip to content

fix(LoaderComponents): Add loader and new logic for components loader#373

Open
SpliiT wants to merge 35 commits intonextfrom
fix/AddLoaderTreeview
Open

fix(LoaderComponents): Add loader and new logic for components loader#373
SpliiT wants to merge 35 commits intonextfrom
fix/AddLoaderTreeview

Conversation

@SpliiT
Copy link
Copy Markdown
Member

@SpliiT SpliiT commented Apr 22, 2026

Copy link
Copy Markdown
Member

@BotellaA BotellaA left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

beaucoup trop de code pour ma review... @JulienChampagnol je te laisse le verdict 😉

Comment thread app/components/Viewer/ObjectTree/Base/CommonTreeView.vue
Comment thread app/components/Viewer/ObjectTree/Base/CommonTreeView.vue Outdated
Comment thread app/components/Viewer/ObjectTree/Base/CommonTreeView.vue Outdated
Comment thread app/components/Viewer/ObjectTree/Base/ItemLabel.vue Outdated
Comment thread app/components/Viewer/ObjectTree/Views/GlobalObjects.vue Outdated
Comment thread app/components/Viewer/ObjectTree/Views/GlobalObjects.vue Outdated
Comment thread app/composables/use_hover_highlight.js Outdated
Comment thread app/composables/use_hover_highlight.js Outdated
import { useTreeviewStore } from "@ogw_front/stores/treeview";
const LOADER_DELAY_MS = 50;

const { id: viewId } = defineProps({ id: { type: String, required: true } });
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
const { id: viewId } = defineProps({ id: { type: String, required: true } });
const { id } = defineProps({ id: { type: String, required: true } });

Même si c'était déjà là, je pense pas que viewId soit très parlant, Y a viewId dans le viewer ça porte à confusion

options = {},
} = defineProps({
items: { type: Array, required: true },
opened: { type: Array },
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
opened: { type: Array },
opened: { type: Array, required: false, default: [] },

Même commentaire pour les autres

const { item, isLeaf = undefined } = defineProps({
item: { type: Object, required: true },
showTooltip: { type: Boolean, default: false },
isLeaf: { type: Boolean },
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
isLeaf: { type: Boolean },
isLeaf: { type: Boolean, required: false: default: undefined },

@@ -1,37 +1,62 @@
<script setup>
const { item, showTooltip } = defineProps({
const { item, isLeaf = undefined } = defineProps({
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
const { item, isLeaf = undefined } = defineProps({
const { item, isLeaf } = defineProps({


const {
items,
opened = [],
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
opened = [],
opened,

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Dans ce cas à mettre dans utils

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants