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

feat(nimbus): add audience form for new nimbus ui #11946

Merged
merged 1 commit into from
Dec 17, 2024
Merged

feat(nimbus): add audience form for new nimbus ui #11946

merged 1 commit into from
Dec 17, 2024

Conversation

jaredlockhart
Copy link
Collaborator

Because

  • We are implementing all the forms in HTMX
  • Time to do the audience form

This commit

  • Adds the audience form to the new Nimbus UI

fixes #10839

image

@@ -643,6 +646,10 @@ def treatment_branches(self):
branches = branches.exclude(id=self.reference_branch.id)
return list(branches)

@property
def is_desktop(self):
Copy link
Member

Choose a reason for hiding this comment

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

Maybe this should be application_is_desktop or similar

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Oh, could be, usually you start predicates like this with the verb so is_ can_ should_ etc, so it'd be more like is_application_desktop but I feel like desktop is only used in the context of the application so it seems unambiguous to me?

@@ -41,6 +41,15 @@
calc(0.75em + 0.375rem) calc(0.75em + 0.375rem);
}

.bootstrap-select.is-invalid {
Copy link
Member

Choose a reason for hiding this comment

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

🙃

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

I know it's a hassle, bootstrap-select doesn't seem to style itself consistently with the other bootstrap5 elements so I gotta keep overriding it.

Copy link
Contributor

@yashikakhurana yashikakhurana left a comment

Choose a reason for hiding this comment

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

Clean and nice changes, tested locally worked absolutely fine, thanks @jaredlockhart 🎉

@@ -643,6 +646,10 @@ def treatment_branches(self):
branches = branches.exclude(id=self.reference_branch.id)
return list(branches)

@property
def is_desktop(self):
return self.application == self.Application.DESKTOP
Copy link
Contributor

Choose a reason for hiding this comment

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

oh nice, we have couple of places in the code where we can use this property now

@jaredlockhart jaredlockhart added this pull request to the merge queue Dec 17, 2024
@jaredlockhart jaredlockhart removed this pull request from the merge queue due to a manual request Dec 17, 2024
Because

* We are implementing all the forms in HTMX
* Time to do the audience form

This commit

* Adds the audience form to the new Nimbus UI

fixes #10839
@jaredlockhart jaredlockhart added this pull request to the merge queue Dec 17, 2024
Merged via the queue into main with commit 8638eeb Dec 17, 2024
16 checks passed
@jaredlockhart jaredlockhart deleted the 10839 branch December 17, 2024 16:00
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.

Audience Form
3 participants