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

Split campaigns index #111

Merged
merged 3 commits into from
Mar 8, 2021
Merged

Split campaigns index #111

merged 3 commits into from
Mar 8, 2021

Conversation

willselby
Copy link
Contributor

Issue

mettle/sendportal#81

Description

Split campaigns index into draft and sent tabs.

@willselby willselby requested a review from JonoB February 26, 2021 12:36
@joshuafranks joshuafranks self-requested a review March 5, 2021 11:25
/**
* @throws Exception
*/
public function sent(): ViewContract
Copy link
Contributor

Choose a reason for hiding this comment

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

I think that, if we're going to go down the route of splitting draft and sent as domain concepts, we should move this to its own controller as an index method.

Alternatively, we should just make draft/sent be query parameters that are sent to the single campaign index, as that's really the only difference at the moment.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

This was basically replicated from MessagesController to keep it consistent.
I think I'd pick the params only because a controller feels like overkill but happy to go with whichever people feel is most appropriate.

@JonoB JonoB merged commit 60f107f into master Mar 8, 2021
@JonoB JonoB deleted the issue-81/split-campaigns-index branch March 8, 2021 10:12
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.

5 participants