Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,8 @@ const DocLimitReachedBanner = () => {
<Banner variant='warning' className='doc__edit__limit'>
<span className='limit__reached__banner__label'>
{subscription == null
? `Your workspace exceeds the limit of your current plan. (${freePlanDocLimit} created documents)`
: `Your workspace exceeds the limit of your current plan. (${subscription.seats} team members)`}
? `Your space exceeds the limit of your current plan. (${freePlanDocLimit} created documents)`
: `Your space exceeds the limit of your current plan. (${subscription.seats} team members)`}
</span>
<Button
variant='primary'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -65,9 +65,7 @@ const ImportModalGuide = ({
, Go to Settings &amp; Members in the left-hand menu and open
Settings
</li>
<li>
Scroll down to Export, and click Export all workspace content
</li>
<li>Scroll down to Export, and click Export all space content</li>
<li>Export file as Markdown or HTML</li>
<li>Upload files in Boost Note for Teams</li>
</ol>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -198,8 +198,8 @@ const SmartFolderForm = ({
</>
) : (
<>
The smart folder will become public. Every member on
workspace can see it.
The smart folder will become public. Every member on space
can see it.
</>
)}
</p>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import WorkspaceModalForm from './WorkspaceModalForm'
const CreateWorkspaceModal = () => {
return (
<ModalContainer style={{ overflow: 'auto' }}>
<h2 style={{ margin: 0 }}>Create a Workspace</h2>
<h2 style={{ margin: 0 }}>Create a Folder</h2>
<WorkspaceModalForm />
</ModalContainer>
)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ interface EditWorkspaceModalProps {
const EditWorkspaceModal = ({ workspace }: EditWorkspaceModalProps) => {
return (
<ModalContainer style={{ overflow: 'auto ' }}>
<h2 style={{ margin: 0 }}>Edit your Workspace</h2>
<h2 style={{ margin: 0 }}>Edit your Folder</h2>
<WorkspaceModalForm workspace={workspace} />
</ModalContainer>
)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -141,13 +141,13 @@ const WorkspaceModalForm = ({ workspace }: WorkspaceModalFormProps) => {
setSending(true)
try {
if (body.name.trim() === '') {
throw new Error('Workspace name has to be filled.')
throw new Error('Folder name has to be filled.')
}
if (workspace != null) {
await submitEditWorkSpaceHandler(team, workspace, body)
pushMessage({
title: 'Success',
description: 'Your workspace has been updated',
description: 'Your folder has been updated',
type: 'success',
})
} else {
Expand Down Expand Up @@ -189,7 +189,7 @@ const WorkspaceModalForm = ({ workspace }: WorkspaceModalFormProps) => {
</ModalLine>
<ModalLine className='svg-initial-style' style={{ marginBottom: 30 }}>
<StyledModalFormInput
placeholder='Workspace name'
placeholder='Folder name'
value={name}
onChange={onChangeWorkspaceNameHandler}
/>
Expand All @@ -202,7 +202,7 @@ const WorkspaceModalForm = ({ workspace }: WorkspaceModalFormProps) => {
</ModalLine>
<ModalLine style={{ marginBottom: 30 }}>
<span>
This default workspace is public and can&apos;t have its access
This default folder is public and can&apos;t have its access
modified.
</span>
</ModalLine>
Expand All @@ -216,11 +216,11 @@ const WorkspaceModalForm = ({ workspace }: WorkspaceModalFormProps) => {
<Flexbox justifyContent='space-between'>
{isPublic ? (
<span>
This workspace is public. Anyone from the team can access it
This folder is public. Anyone from the team can access it
</span>
) : (
<span>
This workspace is private.{' '}
This folder is private.{' '}
{isOwner && 'You can set individual member access below.'}
</span>
)}
Expand All @@ -242,7 +242,7 @@ const WorkspaceModalForm = ({ workspace }: WorkspaceModalFormProps) => {
)}

{!isOwner && (
<small>Only the workspace owner can change its access.</small>
<small>Only the folder owner can change its access.</small>
)}

{!isPublic && (
Expand Down
4 changes: 3 additions & 1 deletion src/cloud/components/organisms/error/ErrorPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,9 @@ const ErrorPage = ({ error }: ErrorPageProps) => {
width: 200,
}}
>
{currentUser == null ? 'Go to homepage' : 'Go to workspace'}
{currentUser == null
? 'Go to homepage'
: 'Go back to your default space'}
</ButtonLink>
)}
{currentUser == null && statusCode === 401 && (
Expand Down
2 changes: 1 addition & 1 deletion src/cloud/components/organisms/settings/TeamSubLimit.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ const TeamSubLimit = ({
>
<h6>Upgrade to go unlimited</h6>
<p className='note-limit'>
Your workspace&apos;s trial of the Pro plan lasts through{' '}
Your space&apos;s trial of the Pro plan lasts through{' '}
{currentSubInfo.info.formattedEndDate}
</p>
<p className='note-limit'>
Expand Down
2 changes: 1 addition & 1 deletion src/cloud/lib/hooks/sidebar/useCloudSidebarDnd.ts
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ export function useCloudSidebarDnd() {
if (draggedResource.current.result.workspaceId === workspaceId) {
pushMessage({
title: 'Oops',
description: 'Resource is already present in this workspace',
description: 'Resource is already present in this space',
})
return
}
Expand Down
2 changes: 1 addition & 1 deletion src/cloud/lib/hooks/sidebar/useCloudSidebarTree.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -591,7 +591,7 @@ export function useCloudSidebarTree() {
})

tree.push({
label: 'Workspaces',
label: 'Folders',
rows: navTree,
controls: currentUserIsCoreMember
? [
Expand Down
4 changes: 2 additions & 2 deletions src/cloud/lib/hooks/useCloudResourceModals.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -195,8 +195,8 @@ export function useCloudResourceModals() {
return
}
messageBox({
title: `Delete the workspace?`,
message: `Are you sure to delete this workspace? You will not be able to revert this action.`,
title: `Delete the folder?`,
message: `Are you sure to delete this folder? You will not be able to revert this action.`,
buttons: [
{
variant: 'secondary',
Expand Down
6 changes: 3 additions & 3 deletions src/cloud/lib/hooks/useWorkspaceDelete.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ export function useWorkspaceDelete() {
pushMessage({
title: 'Success',
type: 'success',
description: 'Your workspace has been deleted',
description: 'Your folder has been deleted',
})

const workspaceDocs = [...docsMap.values()].filter(
Expand Down Expand Up @@ -69,8 +69,8 @@ export function useWorkspaceDelete() {
return
}
messageBox({
title: `Delete the workspace?`,
message: `Are you sure to delete this workspace? You will not be able to revert this action.`,
title: `Delete the folder?`,
message: `Are you sure to delete this folder? You will not be able to revert this action.`,
buttons: [
{
variant: 'secondary',
Expand Down
2 changes: 1 addition & 1 deletion src/cloud/lib/sidebar.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
export const cloudSidebaCategoryLabels = [
'Bookmarks',
'Smart Folders',
'Workspaces',
'Folders',
'Private',
'Labels',
'More',
Expand Down
2 changes: 1 addition & 1 deletion src/cloud/pages/[teamId]/workspaces/[workspaceId].tsx
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ const WorkspaceShowPage = ({
<Application content={{}}>
<ColoredBlock variant='danger' style={{ marginTop: '40px' }}>
<h3>Oops...</h3>
<p>The workspace has been deleted.</p>
<p>The folder has been deleted.</p>
</ColoredBlock>
</Application>
)
Expand Down
2 changes: 1 addition & 1 deletion src/components/PreferencesModal/MigrationTab.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ const MigrationPage = ({ storage }: MigrationPageProps) => {
</FormSelect>
</Flexbox>
<Flexbox justifyContent='space-between'>
<p>Workspace</p>
<p>Folder</p>
<div>
<CloudWorkspaceSelect
onChange={selectWorkspace}
Expand Down
6 changes: 3 additions & 3 deletions src/components/molecules/Export/ExportProgressItem.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -359,10 +359,10 @@ const ExportProgressItem = ({
const storage = storageMap[workspaceId]
if (!storage) {
pushMessage({
title: 'Cannot find workspace',
description: 'Please check workspace exists and try again later.',
title: 'Cannot find folder',
description: 'Please check folder exists and try again later.',
})
console.warn('Workspace ID cannot be found: ' + workspaceId)
console.warn('Folder ID cannot be found: ' + workspaceId)
return
}

Expand Down
6 changes: 3 additions & 3 deletions src/components/organisms/AppNavigator.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -174,15 +174,15 @@ const TopLevelNavigator = () => {
inputRef={inputRef}
defaultIcon={mdiMessageQuestion}
defaultInputValue={workspace.name}
placeholder='Workspace name'
placeholder='Folder name'
submitButtonProps={{
label: t('storage.rename'),
}}
onSubmit={async (workspaceName: string | null) => {
if (workspaceName == '' || workspaceName == null) {
pushMessage({
title: 'Cannot rename workspace',
description: 'Workspace name should not be empty.',
title: 'Cannot rename folder',
description: 'Folder name should not be empty.',
})
return
}
Expand Down
2 changes: 1 addition & 1 deletion src/components/organisms/SidebarContainer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ const SidebarContainer = ({
},
{
type: 'normal',
label: 'Export Workspace',
label: 'Export Folder',
click: () =>
exportDocuments(workspace, {
folderName: workspace.name,
Expand Down
4 changes: 2 additions & 2 deletions src/components/pages/PouchDbDeprecationPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ const PouchDbDeprecationPage = () => {
{
type: 'button',
props: {
label: 'Convert to File System Workspace',
label: 'Convert to File System based Local Space',
onClick: () => openTab('storage'),
},
},
Expand All @@ -48,7 +48,7 @@ const PouchDbDeprecationPage = () => {
},
{
title:
'You can also export the storage by selecting an app navigator tree, clicking on the context menu of workspace item and selecting "Export Workspace".',
'You can also export the storage by selecting an app navigator tree, clicking on the context menu of folder item and selecting "Export Folder".',
description:
'Follow further export options and instructions to export all of your notes in desired format. Modify export options in Preferences | Export Settings tab.',
},
Expand Down
2 changes: 1 addition & 1 deletion src/components/pages/StorageCreatePage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ const StorageCreatePage = () => {
style={{ marginRight: 10 }}
size={16}
/>
<span style={{ marginRight: 10 }}>Create Local Workspace</span>
<span style={{ marginRight: 10 }}>Create Local Space</span>
</>
),
}}
Expand Down
20 changes: 10 additions & 10 deletions src/electron/menu.ts
Original file line number Diff line number Diff line change
Expand Up @@ -195,59 +195,59 @@ export function getTemplateFromKeymap(
submenu: [
{
type: 'submenu',
label: 'Switch Workspace',
Comment thread
ellekasai marked this conversation as resolved.
label: 'Switch Space',
submenu: [
{
type: 'normal',
label: 'Switch to First Workspace',
label: 'Switch to First Space',
accelerator: mac ? 'Cmd + 1' : 'Ctrl + 1',
click: createSwitchWorkspaceHandler(0),
},
{
type: 'normal',
label: 'Switch to Second Workspace',
label: 'Switch to Second Space',
accelerator: mac ? 'Cmd + 2' : 'Ctrl + 2',
click: createSwitchWorkspaceHandler(1),
},
{
type: 'normal',
label: 'Switch to Third Workspace',
label: 'Switch to Third Space',
accelerator: mac ? 'Cmd + 3' : 'Ctrl + 3',
click: createSwitchWorkspaceHandler(2),
},
{
type: 'normal',
label: 'Switch to 4th Workspace',
label: 'Switch to 4th Space',
accelerator: mac ? 'Cmd + 4' : 'Ctrl + 4',
click: createSwitchWorkspaceHandler(3),
},
{
type: 'normal',
label: 'Switch to 5th Workspace',
label: 'Switch to 5th Space',
accelerator: mac ? 'Cmd + 5' : 'Ctrl + 5',
click: createSwitchWorkspaceHandler(4),
},
{
type: 'normal',
label: 'Switch to 6th Workspace',
label: 'Switch to 6th Space',
accelerator: mac ? 'Cmd + 6' : 'Ctrl + 6',
click: createSwitchWorkspaceHandler(5),
},
{
type: 'normal',
label: 'Switch to 7th Workspace',
label: 'Switch to 7th Space',
accelerator: mac ? 'Cmd + 7' : 'Ctrl + 7',
click: createSwitchWorkspaceHandler(6),
},
{
type: 'normal',
label: 'Switch to 8th Workspace',
label: 'Switch to 8th Space',
accelerator: mac ? 'Cmd + 8' : 'Ctrl + 8',
click: createSwitchWorkspaceHandler(7),
},
{
type: 'normal',
label: 'Switch to 9th Workspace',
label: 'Switch to 9th Space',
accelerator: mac ? 'Cmd + 9' : 'Ctrl + 9',
click: createSwitchWorkspaceHandler(8),
},
Expand Down
2 changes: 1 addition & 1 deletion src/lib/preferences.ts
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ export interface Preferences {
'general.noteSorting': NoteSortingOptions
'general.enableAnalytics': boolean

// Cloud Workspace
// Cloud Space
'cloud.user': {
id: string
uniqueName: string
Expand Down
2 changes: 1 addition & 1 deletion src/lib/v2/hooks/local/useLocalDnd.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ export function useLocalDnd() {
if (draggedResource.current.result._id === workspaceId) {
pushMessage({
title: 'Oops',
description: 'Resource is already present in this workspace',
description: 'Resource is already present in this space',
})
return
}
Expand Down
4 changes: 2 additions & 2 deletions src/lib/v2/hooks/local/useLocalUI.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -74,8 +74,8 @@ export function useLocalUI() {
onSubmit={async (workspaceName: string) => {
if (workspaceName == '') {
pushMessage({
title: 'Cannot rename workspace',
description: 'Workspace name should not be empty.',
title: 'Cannot rename folder',
description: 'Folder name should not be empty.',
})
closeModalAndUpdateState()
return
Expand Down
4 changes: 2 additions & 2 deletions src/lib/v2/mappers/local/sidebarTree.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ export function mapTreeControls(
return [
{
type: MenuTypes.Normal,
label: 'Export Workspace',
label: 'Export Folder',
icon: mdiExport,
onClick: () =>
exportDocuments(workspace, {
Expand Down Expand Up @@ -447,7 +447,7 @@ export function mapTree(
})
}
tree.push({
label: 'Workspace',
label: 'Folder',
rows: navTree,
controls: [
{
Expand Down