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

Fix up "Show" label on index page #243

Merged
merged 1 commit into from
Nov 20, 2015
Merged

Fix up "Show" label on index page #243

merged 1 commit into from
Nov 20, 2015

Conversation

c-lliope
Copy link
Contributor

Problem:

In fcd3fc7, we moved logic for displaying resources into dashboard
classes. Unfortunately, we missed migrating the edit page's "Show" link
over to use the new logic. It is currently displaying the resource using
Ruby's built-in to_s method.

Solution:

Migrate the button to the new method of displaying resources.

@c-lliope c-lliope added this to the v0.1.2 milestone Nov 16, 2015

visit edit_admin_customer_path(customer)

expect(page).to have_link("Show #{displayed(customer)}")
Copy link
Collaborator

Choose a reason for hiding this comment

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

This may be for my own reference, but - where is this mysterious displayed method defined? Don't see it in this spec, or rails_helper. ¯_(ツ)_/¯

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Meant to push to this branch, but accidentally pushed to master. 😕

This commit fixes up the include logic for the displayed helper.
9787489

Problem:

In fcd3fc7, we moved logic for displaying resources into dashboard
classes. Unfortunately, we missed migrating the edit page's "Show" link
over to use the new logic. It is currently displaying the resource using
Ruby's built-in `to_s` method.

Solution:

Migrate the button to the new method of displaying resources.
@c-lliope c-lliope merged commit 39b0ce7 into master Nov 20, 2015
@c-lliope c-lliope deleted the gw-show-button branch November 20, 2015 18:27
c-lliope added a commit that referenced this pull request Dec 9, 2015
Changes:

```
* [#251] [FEATURE] Raise a helpful error when an attribute is missing from
  `ATTRIBUTE_TYPES`
* [#298] [FEATURE] Support ActiveRecord model I18n translations
* [#312] [FEATURE] Add a `nil` option to `belongs_to` form fields
* [#231] [UI] Fix layout issue on show page where a long label next to an empty
  value would cause following fields on the page to be mis-aligned.
* [#309] [UI] Fix layout issue in datetime pickers where months and years
  would not wrap correctly.
* [#306] [UI] Wrap long text lines (on word breaks) on show pages
* [#214] [UI] Improve header layout when there is a long page title
* [#198] [UI] Improve spacing around bottom link in sidebar
* [#206] [UI] Left-align checkboxes in boolean form fields
* [#315] [UI] Remove the `IDS` suffix for `HasMany` form field labels
* [#259] [BUGFIX] Make installation generator more robust
  by ignoring dynamically generated, unnamed models
* [#243] [BUGFIX] Fix up a "Show" button on the edit page that was not using the
  `display_resource` method.
* [#248] [BUGFIX] Improve polymorphic relationship's dashboard class detection.
* [#247] [BUGFIX] Populate `has_many` and `belongs_to` select boxes
  with the current value of the relationship.
* [#217] [I18n] Dutch
* [#263] [I18n] Swedish
* [#272] [I18n] Danish
* [#270] [I18n] Don't apologize about missing relationship support.
* [#237] [I18n] Fix broken paths for several I18n files (de, es, fr, pt-BR, vi).
* [#266] [OPTIM] Save a few database queries by using cached counts
```
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