Skip to content

Code Quality: Enforce AppDialogService usage across the codebase #18041

@Lamparter

Description

@Lamparter

Description

The DialogService in Files.App.Services unifies dialogues across the app, however the service isn't used in all parts of the app itself (some classes manually instantiate and handle a ContentDialog instance).

Concerned code

~ Code search results ("new ContentDialog")

Gains

  • Unification of dialogues across codebase
  • Use of existing service

Requirements

  • Reimplement dialogues via DialogService

var errorDialog = new ContentDialog()

var errorDialog = new ContentDialog()

var errorDialog = new ContentDialog()

var confirmationDialog = new ContentDialog()

var confirmationDialog = new ContentDialog()

var errorDialog = new ContentDialog()

var optionsDialog = new ContentDialog()

var ItemAlreadyExistsDialog = new ContentDialog()

var errorDialog = new ContentDialog()

ContentDialog dialog = new()

var errorDialog = new ContentDialog()

ContentDialog dialog = new()

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    Status

    🆕 New

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions