Skip to content

feat(equipment): add DPV as an equipment type (closes #806) - #952

Open
etlami wants to merge 1 commit into
submersion-app:mainfrom
etlami:feat/equipment-type-dpv
Open

feat(equipment): add DPV as an equipment type (closes #806)#952
etlami wants to merge 1 commit into
submersion-app:mainfrom
etlami:feat/equipment-type-dpv

Conversation

@etlami

@etlami etlami commented Aug 10, 2026

Copy link
Copy Markdown
Contributor

What

Closes #806 — being able to track equipment of type "Scooter". Implemented using the standard term DPV (diver propulsion vehicle) for the type name.

  • New EquipmentType.dpv (display name DPV).
  • Represented by a scooter icon (Icons.electric_scooter) in the two equipment-type icon pickers.
  • enum_equipmentType_dpv localization added across all eleven locales (kept as the abbreviation "DPV", like BCD/SMB).

Notes

  • Equipment types are persisted by enum name, and reads fall back to other for unknown values, so this needs no migration and doesn't affect existing data.
  • The type pickers build from EquipmentType.values, so DPV appears automatically; the two exhaustive icon switches are the only code that needed the new case.

Verified locally (Flutter 3.44.8 / Dart 3.12.2): flutter analyze lib and flutter analyze test clean, dart format clean, flutter gen-l10n run, equipment / equipment-picker / arb-parity suites green. (One unrelated pre-existing date-dependent flake in service_schedule_repository_test2026 vs 2025 — is untouched by this change.)

@github-actions

github-actions Bot commented Aug 10, 2026

Copy link
Copy Markdown
Contributor

📦 Build artifacts for this PR · commit db27474

Platform Download
Android (APK) android-apk
macOS macos-build
Windows windows-build
Linux linux-build

Artifacts expire in 7 days. Downloading requires being signed in to GitHub. macOS needs two extractions: unzip the downloaded artifact, then unzip the submersion-macos.zip inside it to get a runnable submersion.app. The build is ad-hoc signed — right-click → Open on first launch.

Updated automatically on each push.

@codecov

codecov Bot commented Aug 10, 2026

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 50.00000% with 1 line in your changes missing coverage. Please review.

Files with missing lines Patch % Lines
...es/dive_log/presentation/pages/dive_edit_page.dart 0.00% 1 Missing ⚠️

📢 Thoughts on this report? Let us know!

@ericgriffin ericgriffin added the enhancement New feature or request label Aug 10, 2026
@ericgriffin ericgriffin moved this from Backlog to In review in Submersion Release Tracker Aug 10, 2026
@ericgriffin
ericgriffin requested a lite review from Copilot August 10, 2026 19:14

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

Adds support for DPV (diver propulsion vehicle / scooter) as a first-class EquipmentType, ensuring it appears in existing equipment-type pickers and has a consistent icon and localization key across all supported locales.

Changes:

  • Added EquipmentType.dpv to the core EquipmentType enum.
  • Mapped EquipmentType.dpv to Icons.electric_scooter in the two equipment-type icon pickers.
  • Added enum_equipmentType_dpv to all locale ARB files and regenerated AppLocalizations outputs.

Reviewed changes

Copilot reviewed 26 out of 26 changed files in this pull request and generated no comments.

Show a summary per file
File Description
lib/core/constants/enums.dart Adds EquipmentType.dpv.
lib/features/dive_log/presentation/widgets/pickers/equipment_picker_sheet.dart Adds DPV icon mapping in picker.
lib/features/dive_log/presentation/pages/dive_edit_page.dart Adds DPV icon mapping in edit page picker.
lib/l10n/arb/app_en.arb Adds enum_equipmentType_dpv string.
lib/l10n/arb/app_ar.arb Adds enum_equipmentType_dpv string.
lib/l10n/arb/app_de.arb Adds enum_equipmentType_dpv string.
lib/l10n/arb/app_es.arb Adds enum_equipmentType_dpv string.
lib/l10n/arb/app_fr.arb Adds enum_equipmentType_dpv string.
lib/l10n/arb/app_he.arb Adds enum_equipmentType_dpv string.
lib/l10n/arb/app_hu.arb Adds enum_equipmentType_dpv string.
lib/l10n/arb/app_it.arb Adds enum_equipmentType_dpv string.
lib/l10n/arb/app_nl.arb Adds enum_equipmentType_dpv string.
lib/l10n/arb/app_pt.arb Adds enum_equipmentType_dpv string.
lib/l10n/arb/app_zh.arb Adds enum_equipmentType_dpv string.
lib/l10n/arb/app_localizations.dart Adds abstract getter for DPV localization key.
lib/l10n/arb/app_localizations_en.dart Adds English DPV localization getter.
lib/l10n/arb/app_localizations_ar.dart Adds Arabic DPV localization getter.
lib/l10n/arb/app_localizations_de.dart Adds German DPV localization getter.
lib/l10n/arb/app_localizations_es.dart Adds Spanish DPV localization getter.
lib/l10n/arb/app_localizations_fr.dart Adds French DPV localization getter.
lib/l10n/arb/app_localizations_he.dart Adds Hebrew DPV localization getter.
lib/l10n/arb/app_localizations_hu.dart Adds Hungarian DPV localization getter.
lib/l10n/arb/app_localizations_it.dart Adds Italian DPV localization getter.
lib/l10n/arb/app_localizations_nl.dart Adds Dutch DPV localization getter.
lib/l10n/arb/app_localizations_pt.dart Adds Portuguese DPV localization getter.
lib/l10n/arb/app_localizations_zh.dart Adds Chinese DPV localization getter.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Requested in submersion-app#806 (as "Scooter"). Uses the standard term DPV (diver
propulsion vehicle) for the type name; a scooter icon represents it in the
type pickers.

Stored by enum name, so no migration is needed and existing data is
unaffected. Adds the enum value, the two equipment-type icon switches, and
the enum_equipmentType_dpv localization across all locales.

Closes submersion-app#806
@etlami
etlami force-pushed the feat/equipment-type-dpv branch from a48cbb4 to db27474 Compare August 11, 2026 06:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

Status: In review

Development

Successfully merging this pull request may close these issues.

Support Scooter as equipment type

3 participants