Skip to content
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

Add independent component for side config panel #1505

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

ArturoManzoli
Copy link
Contributor

@ArturoManzoli ArturoManzoli commented Dec 16, 2024

  • Converted ElementConfigPanel to a separate component so it can have independent content and opening triggers;
  • No functionality change.

** As part of the "Extend survey to generic MAVLink commands" implementation

@ArturoManzoli ArturoManzoli force-pushed the add-component-for-side-config-panel branch from 2d4d6bd to e69734c Compare December 16, 2024 13:21
Comment on lines -620 to +623
<transition
enter-active-class="transition-transform duration-500 ease-in-out"
leave-active-class="transition-transform duration-0 ease-in-out"
enter-from-class="translate-x-full opacity-0"
enter-to-class="translate-x-0 opacity-100"
leave-from-class="translate-x-0 opacity-100"
leave-to-class="translate-x-full opacity-0"
>
<div
v-if="store.isElementsPropsDrawerVisible && store.editingMode && store.elementToShowOnDrawer"
class="flex fixed w-[250px] h-[78vh] right-0 top-0 border-l-[1px] border-[#FFFFFF44] text-white elevation-5 bg-[#051e2d]"
>
<ElementConfigPanel />
</div>
</transition>

<SideConfigPanel position="right">
<ElementConfigPanel v-if="store.elementToShowOnDrawer?.hash" />
</SideConfigPanel>
Copy link
Member

Choose a reason for hiding this comment

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

Always nice to see this kind of cleaning happening in the code.

Can we also remove the styles and other parts not used anymore in this file?

@@ -27,6 +27,7 @@ export const useAppInterfaceStore = defineStore('responsive', {
configComponent: -1,
isGlassModalAlwaysOnTop: false,
isTutorialVisible: false,
configPanelVisible: false,
Copy link
Member

Choose a reason for hiding this comment

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

This commit and the last one should be squashed. One does not function without the other.

@@ -0,0 +1,531 @@
<template>
Copy link
Member

@rafaellehmkuhl rafaellehmkuhl Dec 16, 2024

Choose a reason for hiding this comment

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

Were there code changes or was the only modification the change on the name of the file?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

There were code changes, indeed but hidden by the file rename process.
The files now is renamed on its EditMenu implementation commit

@ArturoManzoli ArturoManzoli force-pushed the add-component-for-side-config-panel branch from e69734c to b660812 Compare December 16, 2024 16:07
@ArturoManzoli ArturoManzoli force-pushed the add-component-for-side-config-panel branch from b660812 to 0f63aa8 Compare December 16, 2024 16:39
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.

2 participants