Open kasugaijin opened 1 month ago
@kasugaijin this too
@Aaryanpal how's this going?
WIP @kasugaijin Sorrry for Late Response. I was out for some work. Resuming it Now
@Aaryanpal no worries! Thanks for the update.
Hi @kasugaijin,
I'd like to propose a refactoring of our current feedback feature implementation. Here's an overview of the current situation and my proposed changes:
Current Implementation:
DevContactsController
http://localhost:3000/alta/feedback/new
Proposed Changes:
FeedbackController
to better reflect its purpose and follow Rails naming conventionsDevContactsMailer
to FeedbackMailer
/alta/feedback/new
)Rationale:
dev_contacts_controller
) doesn't clearly communicate its purposePlease let me know your thoughts on this proposed refactoring. I'm happy to provide more detailed implementation plans if needed.
Hey @Aaryanpal I appreciate the initiative! I think what you propose makes sense. The ony thing to handle differently if we use a single controller is the layout - we will want to use the dashboard layout if the link in the footer is clicked, and the adopter foster layout if the link in the adopter foster dash side nav if clicked...easy enough to handle with params and a before_action on the controller.
Here's a rephrased version as a message to a dev:
I've noticed that the two sections have different styles in the layout. To better align them with the overall design, do you think it would be better to create a separate controller to manage the styles more cleanly? Or should we handle the styling directly within the ERB? Also, do you think it makes sense to adjust the position of the "Feedback" heading to the top-left for better alignment with the design and remove the sub-heading ( Found a bug? Want to request a feature? Contact our dev team with the form below.
) as we didn't had one in every options?
Let me know your thoughts!
For Staff it will look like this
For Adopter it look something like this
Here's a rephrased version as a message to a dev:
I've noticed that the two sections have different styles in the layout. To better align them with the overall design, do you think it would be better to create a separate controller to manage the styles more cleanly? Or should we handle the styling directly within the ERB? Also, do you think it makes sense to adjust the position of the "Feedback" heading to the top-left for better alignment with the design and remove the sub-heading (
Found a bug? Want to request a feature? Contact our dev team with the form below.
) as we didn't had one in every options?Let me know your thoughts!
Yeah that's what I was thinking in the original issue description - that two controllers would handle this more cleanly. Ideally, we do not have the Feedback Form title in the center on these dashboard scoped pages. The title should live in the header for each dashboard check the other pages under both dashboards to see how their headers are set with breadcrumbs). We should also move the shared components of the page (description and form) into a partial that can be shared between all three views (the form accessed via the footer, the form accessed via the two dashboards).
We have the Feedback link in the Staff Dashboard, and the Adopter Foster Dashboard, but this redirects to a new page. Instead, we should render this form within each dashboard layout. You'll probably want two new controllers to handle this. Look at the
Organizations::AdopterFosterer::FaqController
as an example.