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

Complex forms and components UI #1121

Open
wants to merge 13 commits into
base: develop
Choose a base branch
from

Conversation

myieye
Copy link
Contributor

@myieye myieye commented Oct 11, 2024

Resolves most of #1089

image
image
image

Copy link

github-actions bot commented Oct 11, 2024

UI unit Tests

12 tests   12 ✅  0s ⏱️
 4 suites   0 💤
 1 files     0 ❌

Results for commit 679571d.

♻️ This comment has been updated with latest results.

Copy link
Collaborator

@hahn-kev hahn-kev left a comment

Choose a reason for hiding this comment

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

I made some changes as I went, feel free to adjust any of them as needed. I left 2 questions/comments.

<button slot="trigger" class="flex-1 flex justify-between items-center text-left max-w-full overflow-hidden"
on:click={() => {
if (disableExpand && !disabledEntry) {
// the change event above is not in use, so we need to do it here
Copy link
Collaborator

Choose a reason for hiding this comment

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

is this comment still correct? if I remove on:change from the Expansion panel then the sections don't get highlighted correctly

Copy link
Contributor Author

Choose a reason for hiding this comment

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

The comment is valid in the context of the if it's inside.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Actually, only this part: if (disableExpand).
The disabledEntry part should probably just set the disabled attribute of the button it's on.

<Button disabled on:click={() => openPicker = true} icon={mdiPlus} variant="fill-light" color="success" size="sm">
<div class="max-sm:hidden">Add Complex Form Type</div>
</Button>
<!-- TODO: implement form type picker or dropdown? <EntryOrSensePicker title="Add complex form" bind:open={openPicker} noSenses on:pick={(e) => addComplexFormType(e.detail)} /> -->
Copy link
Collaborator

Choose a reason for hiding this comment

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

looks like this was forgotten. Still need to have a pick for the form type

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yeah, I'd like to do that in a follow up PR.

@myieye myieye linked an issue Oct 15, 2024 that may be closed by this pull request
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.

Complex forms in miniLcm -- frontend
2 participants