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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix dates in custom pages admin index #5069

Merged
merged 3 commits into from
Jan 31, 2023
Merged

Fix dates in custom pages admin index #5069

merged 3 commits into from
Jan 31, 2023

Conversation

javierm
Copy link
Member

@javierm javierm commented Jan 22, 2023

References

Objectives

  • Fix dates in custom pages admin index
  • Simplify the code displaying the header in custom pages admin index

Visual Changes

Before these changes

In the custom pages index, the created at and updated at attributes show the same value and don't contain the year

After these changes

In the custom pages index, the created at and updated at attributes show diffetent values and contain the year

Notes

Thanks to @diegozen for finding this issue! 馃槈

javierm and others added 3 commits January 22, 2023 16:32
This way it'll be easier to write tests for it.
Now that we're using a component, we can reuse the Header module.
We weren't showing the year when a page was created/updated, and we
were displaying the created date instead of the updated one.

Co-Authored-By: Diego Calvo <diego.calvo@enreda.coop>
@javierm javierm added the Bug label Jan 22, 2023
@javierm javierm self-assigned this Jan 22, 2023
@javierm javierm added this to Reviewing in Consul Democracy via automation Jan 22, 2023
@@ -0,0 +1,15 @@
require "rails_helper"

describe Admin::SiteCustomization::Pages::IndexComponent, controller: Admin::SiteCustomization::PagesController do

Choose a reason for hiding this comment

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

Layout/LineLength: Line is too long. [114/110] (https://rubystyle.guide#max-line-length)

@taitus taitus self-assigned this Jan 31, 2023
Consul Democracy automation moved this from Reviewing to Testing Jan 31, 2023
@javierm javierm merged commit 082e009 into master Jan 31, 2023
Consul Democracy automation moved this from Testing to Release 2.0.0 Jan 31, 2023
@javierm javierm deleted the typos_pages_index branch January 31, 2023 16:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants