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

Feature/newsletter history #492

Merged
merged 9 commits into from
Jun 11, 2024
Merged

Feature/newsletter history #492

merged 9 commits into from
Jun 11, 2024

Conversation

tsubik
Copy link
Collaborator

@tsubik tsubik commented May 20, 2024

Adding option to save previous newsletters in the database.

@tsubik tsubik requested a review from santostiago May 20, 2024 15:18
@tsubik tsubik force-pushed the feature/newsletter-history branch from a10838d to 54397f4 Compare May 21, 2024 14:16
Copy link
Contributor

@santostiago santostiago left a comment

Choose a reason for hiding this comment

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

Looks great!

column :short_description
column I18n.t("active_admin.operator_documents_page.attachment") do |n|
link_to n.attachment.identifier, n.attachment.url if n.attachment.present?
end
Copy link
Contributor

Choose a reason for hiding this comment

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

we can also add a column of type image with the activeadmin_addons (in case it's useful).

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Nah, we don't need it ;)

f.inputs I18n.t("active_admin.shared.translated_fields") do
f.input :force_translations_from, label: I18n.t("active_admin.shared.translate_from"),
as: :select,
collection: I18n.available_locales,
Copy link
Contributor

Choose a reason for hiding this comment

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

maybe sort them (I should do it in the observations as well).

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Ok.

I18n.with_locale locale do
# Some UTF charactes returned by google API are HTML encoded
Copy link
Contributor

Choose a reason for hiding this comment

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

👀

@@ -59,17 +59,44 @@

$stdout.puts "Syncing test data..."

sample_file_base64 = "data:application/pdf;base64,#{Base64.encode64(File.read(File.join(Rails.root, "spec", "support", "files", "doc.pdf")))}"
sample_pdf_file = "data:application/pdf;base64,#{Base64.encode64(File.read(File.join(Rails.root, "spec", "support", "files", "doc.pdf")))}"
Copy link
Contributor

Choose a reason for hiding this comment

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

Is the seeds file still used?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Of course, most of the test data are fixtures dumped from production. That is used to have some initial data for E2E tests.

@tsubik tsubik force-pushed the feature/newsletter-history branch from 54397f4 to 167e1f7 Compare June 5, 2024 17:04
@tsubik tsubik merged commit c1d001d into develop Jun 11, 2024
4 checks passed
@tsubik tsubik deleted the feature/newsletter-history branch June 11, 2024 09:28
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.

None yet

2 participants