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

Changes to allow for a single form per tile #160

Merged
merged 8 commits into from
Jan 2, 2025

Conversation

aarongundel
Copy link
Collaborator

Allows for a single editor per tile, removes tabbed interface.

@aarongundel aarongundel force-pushed the adg/154-single-tile-forms branch from 0d8dc76 to 0175346 Compare December 27, 2024 17:20
Copy link
Contributor

@chrabyrd chrabyrd left a comment

Choose a reason for hiding this comment

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

looks good! Just some minor stuff

@@ -26,32 +26,19 @@ defineProps<{
mode?: DataComponentMode;
}>();

defineEmits([OPEN_EDITOR]);
const emit = defineEmits([OPEN_EDITOR, "updated"]);
Copy link
Contributor

Choose a reason for hiding this comment

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

nit: emits to match the rest of the app

),
});
}
await updateSchemeNamespace(
Copy link
Contributor

Choose a reason for hiding this comment

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

removing error handling?

Copy link
Collaborator Author

@aarongundel aarongundel Jan 2, 2025

Choose a reason for hiding this comment

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

unintentional. looks like some kind of merge issue. Thanks for the catch.

schemeComponents.find((component) => {
return component.id === newValue.activeTab;
}) || schemeComponents[0];
console.log(currentEditor.value);
Copy link
Contributor

Choose a reason for hiding this comment

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

nit: remove console.log

currentEditor.value =
schemeComponents.find((component) => {
return component.id === newValue.activeTab;
}) || schemeComponents[0];
Copy link
Contributor

Choose a reason for hiding this comment

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

could this fallback end up being confusing for the user?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

yeah, actually was made for tabs. Now that tabs are gone, it should be also.

Copy link
Contributor

@chrabyrd chrabyrd left a comment

Choose a reason for hiding this comment

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

looks good just a few minor things fell out

@aarongundel aarongundel requested a review from chrabyrd January 2, 2025 19:48
@@ -86,7 +86,7 @@ const getRef = (el: object | null, index: number) => {
<SchemeEditor
v-if="editorTab"
:editor-max="sectionVisible"
:active-tab="editorTab"
:editor-form="editorTab"
Copy link
Contributor

Choose a reason for hiding this comment

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

still using tab language here?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

purged. 🏓

@aarongundel aarongundel requested a review from chrabyrd January 2, 2025 19:53
Copy link
Contributor

@chrabyrd chrabyrd left a comment

Choose a reason for hiding this comment

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

🏓

@@ -34,7 +34,7 @@ const onClose = () => {
};

const onOpenEditor = (tab: string, tileId: string) => {
editorTab.value = tab;
editorForm.value = tab;
Copy link
Contributor

Choose a reason for hiding this comment

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

tab language here too. Sorry to be nitpicky but this is the ticket that purges the concept of tabs from the frontend yeah?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Yeap. Thanks for finding those. 🏓

Copy link
Contributor

@chrabyrd chrabyrd left a comment

Choose a reason for hiding this comment

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

🚀

@aarongundel
Copy link
Collaborator Author

let the collapsing begin.

@aarongundel aarongundel merged commit 78090f0 into adg/146-scheme-names Jan 2, 2025
6 checks passed
@aarongundel aarongundel deleted the adg/154-single-tile-forms branch January 2, 2025 20:06
aarongundel added a commit that referenced this pull request Jan 2, 2025
* Changes to allow for a single form per tile

* move section types to prep for conflict

* PR feedback

* pr feedback

* purge tab

* purge more tabs
aarongundel added a commit that referenced this pull request Jan 3, 2025
* Changes to allow for a single form per tile

* move section types to prep for conflict

* PR feedback

* pr feedback

* purge tab

* purge more tabs
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.

Form save in Scheme/Concept forms should only show & save one form at a time
2 participants