New issue
Advanced search Search tips
Note: Color blocks (like or ) mean that a user may not be available. Tooltip shows the reason.

Issue 646839 link

Starred by 4 users

Issue metadata

Status: Duplicate
Merged: issue 260094
Owner:
Closed: Dec 13
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: Chrome
Pri: 2
Type: Bug



Sign in to add a comment

Files app: Add "shared" and "starred" icon for Drive files.

Project Member Reported by fukino@chromium.org, Sep 14 2016

Issue description

As seen in attached screenshot, in Google Drive WebUI, files has icons indicating that it is starred or shared.

However, in Files app, we don't have such icons.
Adding these icons in Files app will improve the usability of Google Drive volume.

 
Screenshot from 2016-09-14 22:30:13.png
119 KB View Download

Comment 1 by fukino@chromium.org, Sep 14 2016

Sebastien, can I ask you to make "Starred" and "Shared" icons for this feature?

They are small, so dedicated PNG images should look better.
See attached.
assets.zip
2.4 KB Download
preview.png
70.7 KB View Download

Comment 3 by fukino@chromium.org, Sep 15 2016

Thank you!
Project Member

Comment 4 by bugdroid1@chromium.org, Sep 16 2016

The following revision refers to this bug:
  https://chromium.googlesource.com/chromium/src.git/+/930f5e4f70364038b391654606445005bd65df27

commit 930f5e4f70364038b391654606445005bd65df27
Author: harukam <harukam@google.com>
Date: Fri Sep 16 04:21:15 2016

Parse 'starred' attribute to FileLables in DriveAPI.

Additionally parsing 'starred' attribute is necessary in order to implement showing 'starred' icon for Files app.

BUG= 646839 
TEST=google_apis_unittests --gtest_filter=DriveAPIParserTest.FileListParser

Review-Url: https://codereview.chromium.org/2344113002
Cr-Commit-Position: refs/heads/master@{#419097}

[modify] https://crrev.com/930f5e4f70364038b391654606445005bd65df27/google_apis/drive/drive_api_parser.cc
[modify] https://crrev.com/930f5e4f70364038b391654606445005bd65df27/google_apis/drive/drive_api_parser.h
[modify] https://crrev.com/930f5e4f70364038b391654606445005bd65df27/google_apis/drive/drive_api_parser_unittest.cc

Project Member

Comment 5 by bugdroid1@chromium.org, Sep 29 2016

The following revision refers to this bug:
  https://chromium.googlesource.com/chromium/src.git/+/68666d15026e666c18587cf73b560cf1076b818a

commit 68666d15026e666c18587cf73b560cf1076b818a
Author: harukam <harukam@google.com>
Date: Thu Sep 29 12:00:01 2016

Added 'starred' to EntryProperty in FileManagerPrivateAPI.

We need to get 'starred' attribute of Drive file/directory in order to show 'starred' icon in Files app.

BUG= 646839 
TEST=unit_tests --gtest_filter=ResourceEntryConversionTest*

There has been no 'starred' property in Drive API on chromeOS until before.
It's necessary to update all resources from server just once,
so that we can avoid holding an old DB which has no 'starred' property.
We realized it by using 'starred_property_initialized' flag.
The below test ensures that the flag correctly changes.

TEST=unit_tests --gtest_filter=ResourceMetadataStorageTest.ChangeStarredPropertyInitialized

It is manually tested that the change list is reloaded for an old DB,
and an updated DB gets right 'starred' values.

Review-Url: https://codereview.chromium.org/2346873004
Cr-Commit-Position: refs/heads/master@{#421802}

[modify] https://crrev.com/68666d15026e666c18587cf73b560cf1076b818a/chrome/browser/chromeos/extensions/file_manager/private_api_drive.cc
[modify] https://crrev.com/68666d15026e666c18587cf73b560cf1076b818a/chrome/common/extensions/api/file_manager_private.idl
[modify] https://crrev.com/68666d15026e666c18587cf73b560cf1076b818a/components/drive/drive.proto
[modify] https://crrev.com/68666d15026e666c18587cf73b560cf1076b818a/components/drive/resource_entry_conversion.cc
[modify] https://crrev.com/68666d15026e666c18587cf73b560cf1076b818a/components/drive/resource_entry_conversion_unittest.cc
[modify] https://crrev.com/68666d15026e666c18587cf73b560cf1076b818a/components/drive/resource_metadata_storage.cc
[modify] https://crrev.com/68666d15026e666c18587cf73b560cf1076b818a/components/drive/resource_metadata_storage_unittest.cc
[modify] https://crrev.com/68666d15026e666c18587cf73b560cf1076b818a/components/drive/service/drive_api_service.cc

Owner: fukino@chromium.org

Comment 7 by yawano@chromium.org, Mar 13 2017

Cc: yawano@chromium.org takise@google.com satorux@chromium.org
Owner: weifangsun@chromium.org
weifangsun@: IIUC, we will be able to work on this item after we decided how we show this in the context menu.

Could you give us the language and the position in the context menu for the star menu item?

Comment 8 by sashab@chromium.org, Feb 22 2018

Components: Platform>Apps>FileManager
Labels: CrOS-FilesApp-DriveSync

Comment 9 by sashab@chromium.org, Feb 28 2018

Labels: CrOSFilesFeature-DriveSync
Labels: -CrOS-FilesApp-DriveSync
Components: -Platform>Apps>FileManager>Drive
Mergedinto: 260094
Status: Duplicate (was: Assigned)

Sign in to add a comment