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

refac & feat: now there is only one item details view instead of two, also design adjusted #264

Open
wants to merge 5 commits into
base: dev
Choose a base branch
from

Conversation

navetis
Copy link
Collaborator

@navetis navetis commented Jan 14, 2023

Fixes #136

app/views/items/_item_screen.html.erb Show resolved Hide resolved
Gemfile.lock Outdated
@@ -88,9 +88,9 @@ GEM
bcrypt (3.1.18)
bindata (2.4.14)
bindex (0.8.1)
bootsnap (1.13.0)
bootsnap (1.15.0)
Copy link
Contributor

Choose a reason for hiding this comment

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

Is it necessary to update all these gems? It seems to me (and I could well be wrong :P) that this risks breaking things somewhere in the project.

Are there any new gems introduced?

Copy link
Contributor

Choose a reason for hiding this comment

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

I've taken the liberty of undoing the effects of the bundle update command you probably executed. This way, checks pass again.

@@ -4,7 +4,7 @@ class Item < ApplicationRecord

validates :name, presence: true
validates :max_reservation_days, numericality: { greater_than_or_equal_to: 0, less_than_or_equal_to: 365 }
validates :max_borrowing_days, numericality: { greater_than_or_equal_to: 0 }
validates :max_borrowing_days, numericality: { greater_than: 0 }
Copy link
Contributor

Choose a reason for hiding this comment

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

This makes sense.

To keep track of these "on-the-side" changes, it might be nice to give a summary of changed things (that are not obvious from the PR title) in the PR.

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.

Deduplicate screen architecture
2 participants