Adding chrome-signin-desktop-reviews for people_page
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
Reviewer source(s):
msa...@chromium.org is from context(googleclient/chrome/chromium_gwsq/components/signin/config.gwsq)
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
I do not think I know this code enough to provide a good review. Re-routing this review to Amelie.
<message name="IDS_SETTINGS_GOOGLE_SERVICES_PAGE_TITLE" desc="Name of the settings page for managing Google services.">Why is this change needed?
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
<message name="IDS_SETTINGS_GOOGLE_SERVICES_PAGE_TITLE" desc="Name of the settings page for managing Google services.">Why is this change needed?
This string needs to be exposed to ChromeOS to be used by google-services in people_page.html.
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
Thanks Mahmoud!
What's the general idea for the settings page? Should it look exactly the same as on other Desktop platforms or are there different pages, as seen in the screenshots you linked? Do you have some mocks for reference?
<cr-link-row id="account-subpage-row" on-click="onAccountClick_"
hidden="[[!shouldLinkToAccountSettingsPage_(
syncStatus.signedInState)]]">
<div id="profile-icon"
style="background-image: [[getIconImageSet_(
profileIconUrl_)]]">
</div>
<div class="cr-row-gap cr-padded-text flex no-min-width">
<div id="account-name" class="text-elide">
[[profileName_]]
</div>
<div id="account-subtitle" class="secondary">
[[getAccountRowSubtitle_(syncStatus)]]
</div>
</div>
</cr-link-row>
<cr-link-row id="sync-setup"
label="$i18n{syncAndNonPersonalizedServices}"
sub-label="[[getSyncAndNonPersonalizedServicesSubtext_(syncStatus)]]"
on-click="onSyncClick_"
role-description="$i18n{subpageArrowRoleDescription}"
hidden="[[shouldHideSyncSetupLinkRow_(syncStatus)]]">
</cr-link-row>
<cr-link-row id="google-services"
label="$i18n{googleServicesPageTitle}"
on-click="onGoogleServicesClick_"
role-description="$i18n{subpageArrowRoleDescription}"
hidden="[[!shouldHideSyncSetupLinkRow_(syncStatus)]]">
</cr-link-row>This is now mostly duplicated with the non-chromeos platform's code. I would advocate for combining the code blocks for chromeos and non-chromeos platforms, what do you think?
return '';Can we make this an early return instead to avoid some of the nesting?
Same with `return this.syncStatus.signedInUsername;`
Something like
```
if (!this.syncStatus || this.syncStatus.signedInUsername) {
return '';
}
if (!this.syncStatus.statusText) {
return this.syncStatus.signedInUsername;
}...
```