Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Reland "[Files F2] Add actions/reducers for volume/navigation"
This is a reland of commit 11e5c12, the previous failure was related to "update rootType for VolumeEntry", that line is now removed. There's a also a TODO added when creating ScannerFactory: instead of solely depending on rootType, we need to aso make sure only creating CrostniMounter for fake crostini entry. Failed tast tests mentioned in b/272557385 has been tested manually, they all passed locally on my DUT. Original change's description: > [Files F2] Add actions/reducers for volume/navigation > > * Add actions/reducers for: > * volume: volume information (e.g. data from VolumeInfo and > VolumeMetadata) > * folderShortcuts: shortcut information > * uiEntries: fake entries on the UI (e.g. FakeDriveRoot, Trash) > * androidApps: Android app information (for File picker) > * navigation: roots for the navigation tree > * Add an action reducer to read child entries and store the children > in the store. > * Replicate all nesting logic from NavigationListModel in the store. > > Bug: b:228139957 > Change-Id: I33a68e9f3fea5a7a0da757aab7c63fed6d680e25 > Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4150614 > Commit-Queue: Wenbo Jie <wenbojie@chromium.org> > Reviewed-by: Luciano Pacheco <lucmult@chromium.org> > Cr-Commit-Position: refs/heads/main@{#1114259} Bug: b:228139957 Change-Id: I483bae1e9545d94eb58bf05e78f1a4f53dc09f9d Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4337056 Reviewed-by: Luciano Pacheco <lucmult@chromium.org> Cr-Commit-Position: refs/heads/main@{#1117313}
- Loading branch information
Showing
32 changed files
with
3,689 additions
and
86 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
31 changes: 31 additions & 0 deletions
31
ui/file_manager/file_manager/state/actions/android_apps.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
// Copyright 2023 The Chromium Authors | ||
// Use of this source code is governed by a BSD-style license that can be | ||
// found in the LICENSE file. | ||
|
||
import {BaseAction} from '../../lib/base_store.js'; | ||
import {ActionType} from '../actions.js'; | ||
|
||
/** | ||
* Actions for Android apps. | ||
* | ||
* Android App is something we get from private API | ||
* `chrome.fileManagerPrivate.getAndroidPickerApps`, it will be shown as | ||
* a directory item in FilePicker mode. | ||
*/ | ||
|
||
/** Action to add all android app config to the store. */ | ||
export interface AddAndroidAppsAction extends BaseAction { | ||
type: ActionType.ADD_ANDROID_APPS; | ||
payload: { | ||
apps: chrome.fileManagerPrivate.AndroidApp[], | ||
}; | ||
} | ||
|
||
/** Action factory to add all android app config to the store. */ | ||
export function addAndroidApps(payload: AddAndroidAppsAction['payload']): | ||
AddAndroidAppsAction { | ||
return { | ||
type: ActionType.ADD_ANDROID_APPS, | ||
payload, | ||
}; | ||
} |
Oops, something went wrong.