Skip to content

Commit

Permalink
feat: improve preference copy and case consistency
Browse files Browse the repository at this point in the history
  • Loading branch information
moughxyz committed Mar 25, 2022
1 parent 4923577 commit 03f707e
Show file tree
Hide file tree
Showing 7 changed files with 18 additions and 13 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,7 @@ export const GeneralAccountMenu: FunctionComponent<Props> = observer(
}}
>
<Icon type="signOut" className={iconClassName} />
Sign out and clear local data
Sign out workspace
</MenuItem>
</>
) : null}
Expand Down
4 changes: 2 additions & 2 deletions app/assets/javascripts/components/ConfirmSignoutModal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,8 @@ export const ConfirmSignoutModal = observer(
<div className="sk-panel">
<div className="sk-panel-content">
<div className="sk-panel-section">
<AlertDialogLabel className="sk-h3 sk-panel-section-title capitalize">
End your session?
<AlertDialogLabel className="sk-h3 sk-panel-section-title">
Sign out workspace?
</AlertDialogLabel>
<AlertDialogDescription className="sk-panel-row">
<p className="color-foreground">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ export const Listed = observer(({ application }: Props) => {
type="normal"
disabled={requestingAccount}
label={
requestingAccount ? 'Creating account...' : 'Create New Author'
requestingAccount ? 'Creating account...' : 'Create new author'
}
onClick={registerNewAccount}
/>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,12 +41,15 @@ const SignOutView: FunctionComponent<{
</div>
</PreferencesSegment>
<PreferencesSegment>
<Subtitle>This device</Subtitle>
<Text>This will delete all local items and preferences.</Text>
<Subtitle>This workspace</Subtitle>
<Text>
Remove all data related to the current workspace from the
application.
</Text>
<div className="min-h-3" />
<Button
type="danger"
label="Sign out and clear local data"
label="Sign out workspace"
onClick={() => {
appState.accountMenu.setSigningOut(true);
}}
Expand All @@ -67,12 +70,14 @@ const ClearSessionDataView: FunctionComponent<{
return (
<PreferencesGroup>
<PreferencesSegment>
<Title>Clear session data</Title>
<Text>This will delete all local items and preferences.</Text>
<Title>Clear workspace</Title>
<Text>
Remove all data related to the current workspace from the application.
</Text>
<div className="min-h-3" />
<Button
type="danger"
label="Clear Session Data"
label="Clear workspace"
onClick={() => {
appState.accountMenu.setSigningOut(true);
}}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -213,7 +213,7 @@ export const DataBackups = observer(({ application, appState }: Props) => {
<div class="flex flex-row items-center mt-3">
<Button
type="normal"
label="Import Backup"
label="Import backup"
onClick={handleImportFile}
/>
<input
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -222,7 +222,7 @@ export const PasscodeLock = observer(({ application, appState }: Props) => {

{!showPasscodeForm && (
<Button
label="Add Passcode"
label="Add passcode"
onClick={handleAddPassCode}
type="primary"
/>
Expand Down
2 changes: 1 addition & 1 deletion app/assets/javascripts/strings.ts
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ export function StringEmptyTrash(count: number) {
export const STRING_ACCOUNT_MENU_UNCHECK_MERGE =
'Unchecking this option means any of the notes you have written while you were signed out will be deleted. Are you sure you want to discard these notes?';
export const STRING_SIGN_OUT_CONFIRMATION =
'This will remove all notes, tags, and other data from this device.';
'This action will remove this workspace and its related data from the application.';
export const STRING_ERROR_DECRYPTING_IMPORT =
'There was an error decrypting your items. Make sure the password you entered is correct and try again.';
export const STRING_E2E_ENABLED =
Expand Down

0 comments on commit 03f707e

Please sign in to comment.