mirror of
https://github.com/rickbarrette/simple-aircraft-manager-rails.git
synced 2026-11-17 15:50:36 -05:00
Logbook entries link a component and its times; boxed page printouts
- An entry can link a component (engine, propeller…) and records its total time and time since overhaul at the entry; picking the engine or prop log selects that component and fills its current times (editable). Squawk fixes carry the squawk's component - Components have an overhaul type (major, factory overhaul, factory new), shown as SMOH / SFOH / SNEW - Printouts: engine and propeller entries add the serial number, total time and SMOH/SFOH (blanks when no component is linked); airframe total time is labelled as such; full-page layouts draw a box around each entry - Archives carry the entry's component and times (the original format's components / component_hours), no longer dropped on import Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
aa262065b2
commit
a51f78ebf3
21 files changed
+265
-83
No files matched your search
@@ -36,7 +36,7 @@ class UserCertificatesTest < ActionDispatch::IntegrationTest
|
||||
@owner.certificates.create!(kind: "IA", number: "7654321", expires_on: 1.day.ago.to_date) # expired: not offered
|
||||
sign_in @owner
|
||||
get new_aircraft_logbook_entry_path(@a)
|
||||
assert_select "form[data-controller='entry-template signer']"
|
||||
assert_select "form[data-controller='entry-template signer component-times']"
|
||||
assert_select "select[data-signer-target=choice] option[data-kind=AP][data-number='7654321'][data-name='Sam Mechanic']"
|
||||
assert_select "select[data-signer-target=choice] option[data-kind=IA]", 0
|
||||
assert_select "input[name='logbook_entry[signoff_person]'][data-signer-target=name]"
|
||||
@@ -44,7 +44,7 @@ class UserCertificatesTest < ActionDispatch::IntegrationTest
|
||||
|
||||
squawk = @a.squawks.create!(priority: 1, issue_reported: "Nav light out")
|
||||
get resolution_aircraft_squawk_path(@a, squawk)
|
||||
assert_select "[data-controller=signer] select[data-signer-target=choice]"
|
||||
assert_select "[data-controller='signer component-times'] select[data-signer-target=choice]"
|
||||
get deferral_aircraft_squawk_path(@a, squawk)
|
||||
assert_select "select[name=deferred_by_role] option[selected][value=mechanic]"
|
||||
|
||||
|
||||
Reference in new issue
Block a user