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 overview form to new nimbus ui #11926

Merged
merged 1 commit into from
Dec 11, 2024
Merged

feat(nimbus): add overview form to new nimbus ui #11926

merged 1 commit into from
Dec 11, 2024

Conversation

jaredlockhart
Copy link
Collaborator

@jaredlockhart jaredlockhart commented Dec 10, 2024

Becuase

  • We need to add the overview to the new Nimbus UI

This commit

  • Adds the overview form
  • Adds documentation link add/remove functionality with HTMX

fixes #10841
image

image

@jaredlockhart
Copy link
Collaborator Author

jaredlockhart commented Dec 10, 2024

Blocked on #11925

@jaredlockhart jaredlockhart requested review from RJAK11, brennie and yashikakhurana and removed request for brennie and yashikakhurana December 10, 2024 17:11
@jaredlockhart jaredlockhart force-pushed the 10841 branch 2 times, most recently from e98dc37 to 3232fcc Compare December 10, 2024 21:21
Becuase

* We need to add the overview to the new Nimbus UI

This commit

* Adds the overview form
* Adds documentation link add/remove functionality with HTMX

fixes #10841
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.

Tested it locally, works smoothly, thanks @jaredlockhart 🎉

Comment on lines +40 to +51
class RenderResponseMixin:
def form_valid(self, form):
super().form_valid(form)
return self.render_to_response(self.get_context_data(form=form))


class RenderParentResponseMixin:
def form_valid(self, form):
super().form_valid(form)
form = super().form_class(instance=self.object)
return self.render_to_response(self.get_context_data(form=form))

Copy link
Contributor

Choose a reason for hiding this comment

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

I Liked this mixin idea

Comment on lines +104 to +105
<a target="_blank"
href="https://mana.mozilla.org/wiki/display/FIREFOX/Pref-Flip+and+Add-On+Experiments#PrefFlipandAddOnExperiments-Isthisstudypartnerrelated?riskPARTNER">
Copy link
Contributor

Choose a reason for hiding this comment

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

for links like these, in my current work I am making the constant dict and will use it here, I can replace all that later, just wanted to let you know

@jaredlockhart jaredlockhart added this pull request to the merge queue Dec 11, 2024
Merged via the queue into main with commit c6a2930 Dec 11, 2024
16 checks passed
@jaredlockhart jaredlockhart deleted the 10841 branch December 11, 2024 07:29
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.

Overview Form
2 participants