Skip to content

/debugAuth env feature flag — verify whether actually needed (likely close as not-applicable) #556

@TaprootFreak

Description

@TaprootFreak

Context

/debugAuth route is kDebugMode-gated at two places:

  • lib/setup/routing/router_config.dart:90-95 (route registration)
  • lib/screens/welcome/welcome_page.dart:120-125 (welcome card that opens the route)

This means the route is present in debug builds and absent in release builds. Maestro CI runs debug builds by default, so for Maestro testing alone, the kDebugMode gate is sufficient — no additional env flag needed.

The README's "Coverage infrastructure roadmap" however explicitly lists a build-time feature-flag mechanism ("Build-time feature-flag mechanism (analogous to EXPO_PUBLIC_ENABLE_* in dfx-wallet) so non-MVP features can be gated out of the activated surface") as an unchecked item — useful for things beyond /debugAuth, e.g. excluding non-MVP feature surfaces from the activated-surface coverage gate.

This issue scopes whether the flag mechanism is needed and, if so, implements the minimum that unblocks the existing referencing issues.

Status of dependent issues

Recommendation

Close as not-needed for the current test-coverage push. The kDebugMode gate covers /debugAuth for Maestro; the .test-coverage-allowlist from #551 covers scope carve-outs.

Open a fresh issue only if a non-Maestro use case for build-time flags surfaces (e.g. shipping a --enable-experimental-feature-X build of the app).

Acceptance criteria

Estimated effort

Path Days
Close as not-needed + update #543 body 0.1
Implement --dart-define-based flag system 1-2

Recommended: close. Total: 0.1 day.

Related

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions