Skip to content

Review: Improve email scheduling (TAN-7439)#13632

Open
adessy wants to merge 4 commits intoTAN-7439-improve/email-schedulingfrom
TAN-7439-improve/email-scheduling-review
Open

Review: Improve email scheduling (TAN-7439)#13632
adessy wants to merge 4 commits intoTAN-7439-improve/email-schedulingfrom
TAN-7439-improve/email-scheduling-review

Conversation

@adessy
Copy link
Copy Markdown
Contributor

@adessy adessy commented Apr 14, 2026

Review comments / suggestions for https://github.com/CitizenLabDotCo/citizenlab/pull/13612/changes#r3078243409. Take what makes sense, skip what doesn't.

@notion-workspace
Copy link
Copy Markdown

@adessy adessy requested review from IvaKop and amirabayoumi April 14, 2026 15:24
@adessy adessy changed the base branch from master to TAN-7439-improve/email-scheduling April 14, 2026 15:25
else
[2, -campaign.updated_at.to_i]
end
@campaigns = case parse_bool(params[:manual])
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Sorting campaigns at the DB level.

Comment thread front/app/components/admin/DateTimeSelection/TimeInput.tsx
text={<FormattedMessage {...messages.scheduled} />}
/>

<Text as="span" fontSize="base" m="0px" color="textSecondary">
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Fixes vertical alignment. I also took the liberty of swapping the label and the datetime. I think it just looks better 🙂

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Before:
Image

After:
Image

{/* eslint-disable-next-line @typescript-eslint/no-unnecessary-condition */}
{localize(project?.data.attributes.title_multiloc)}
</Text>
<>
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

This is pretty much unreachable code. I just made the minimal changes so it doesn't look too bad if we ever starts listing project campaigns here again.

adessy added 4 commits April 14, 2026 17:49
Use span instead of p for inline text in campaign rows to avoid ResourceList's p { margin-bottom: 5px } override.

Standardize date font size to base in both DraftCampaignRow and SentCampaignRow.

Swap label/date order and add bullet separator for project name.
Replace Button with InputContainer + clock icon to match DateSinglePicker's styling pattern. This fixes the height inconsistency between date and time inputs without hardcoding.
@adessy adessy force-pushed the TAN-7439-improve/email-scheduling-review branch from b648a75 to 38a2b34 Compare April 14, 2026 15:49
@cl-dev-bot
Copy link
Copy Markdown
Collaborator

Warnings
⚠️

The changelog is empty. What should I put in the changelog?

Messages
📖 Notion issue: TAN-7439
📖

Run the e2e tests

📖 Check translation progress

Generated by 🚫 dangerJS against 38a2b34

Copy link
Copy Markdown
Contributor

@IvaKop IvaKop left a comment

Choose a reason for hiding this comment

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

Suggestions look good to me 👍

@amirabayoumi amirabayoumi added this to the Scheduling milestone Apr 16, 2026
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.

4 participants