-
Notifications
You must be signed in to change notification settings - Fork 10
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
Add formula relations to calculators constructor #1006
base: calculators-constructor
Are you sure you want to change the base?
Add formula relations to calculators constructor #1006
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## calculators-constructor #1006 +/- ##
===========================================================
+ Coverage 87.07% 87.33% +0.26%
===========================================================
Files 68 69 +1
Lines 1060 1082 +22
===========================================================
+ Hits 923 945 +22
Misses 137 137 ☔ View full report in Codecov by Sentry. |
<%= image_tag "icons/vector_5.png", class: locals[:rotate_direction], alt: "horizontal arrow" %> | ||
<%= image_tag "icons/vector_2.png", class: "vector-mobile-#{locals[:rotate_direction]}", alt: "vertical arrow" %> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
а чому не inline_svg
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
я використав стрілку з diapers calculator лиш додав ще стрілку в інший бік
@@ -6,7 +6,7 @@ | |||
let(:calculator) { instance_double("Calculator", formulas: formulas) } | |||
let(:formulas) do | |||
[ | |||
Formula.new(en_label: "Addition", en_unit: "units", uk_label: "Додавання", uk_unit: "одиниці", expression: "x + y"), | |||
Formula.new(en_label: "Addition", en_unit: "units", uk_label: "Додавання", uk_unit: "одиниці", expression: "x + y", relation: "next"), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
чому саме next
? що мається наувазі?
@@ -9,6 +9,8 @@ | |||
|
|||
<%= f.input :uk_unit, label: "Uk Unit Label:" %> | |||
<%= f.input :en_unit, label: "Unit Label:" %> | |||
<%= f.input :relation, as: :select, label: "Relation of formula (optional):", | |||
collection: { "None": nil, "Next": "next", "Previous": "previous"}, default: "None" %> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
you should relate it to specific formula, not?
#989
Code reviewers
Summary of issue
Add relation to calculators constructor so that they looks similar to dippers calculator relations
Result
Added select input field on creating calculator constructor
Video.mp4
Results on show page
Video2.mp4
Summary of change
Added relation field to formula model and validations for it
CHECK LIST