diff --git a/components/api-docs/v2/upload.js b/components/api-docs/v2/upload.js
index 7c1baae6..50f57d53 100644
--- a/components/api-docs/v2/upload.js
+++ b/components/api-docs/v2/upload.js
@@ -32,7 +32,7 @@ r = requests.post(url, headers=headers, files=files)`;
const SLATE_EXAMPLE_CODE_JS = (
key,
slateId
-) => `const url = 'https://uploads.slate.host/api/public/${slateId}'; // slate ID
+) => `const url = 'https://uploads.slate.host/api/public/${slateId}'; // collection ID
let file = e.target.files[0];
let data = new FormData();
@@ -48,7 +48,7 @@ const response = await fetch(url, {
const SLATE_EXAMPLE_CODE_PY = (key, slateId) => `import requests
-url = "https://uploads.slate.host/api/public/${slateId}" # slate ID
+url = "https://uploads.slate.host/api/public/${slateId}" # collection ID
files = {
"file": open("example-file.txt", "rb")
}
@@ -78,7 +78,7 @@ export default class APIDocsUploadToSlate extends React.Component {
style={{ maxWidth: 640, marginTop: 64 }}
label="Upload"
description={
- "This API endpoint allows you to upload file(s) to your slate. This uses our data transfer microservice to interact with Textile Buckets and upload data to the IPFS/Filecoin network."
+ "This API endpoint allows you to upload file(s) to your collection. This uses our data transfer microservice to interact with Textile Buckets and upload data to the IPFS/Filecoin network."
}
/>
diff --git a/components/core/CarouselSidebar.js b/components/core/CarouselSidebar.js
index 6047cebf..01d4f24e 100644
--- a/components/core/CarouselSidebar.js
+++ b/components/core/CarouselSidebar.js
@@ -452,7 +452,7 @@ class CarouselSidebar extends React.Component {
_handleDelete = () => {
if (this.props.external || !this.props.isOwner) return;
const message =
- "Are you sure you want to delete this? It will be removed from your slates as well";
+ "Are you sure you want to delete this? It will be removed from your collections as well";
if (!window.confirm(message)) {
return;
}
@@ -538,7 +538,7 @@ class CarouselSidebar extends React.Component {
}
}
const slateNames = publicSlateNames.join(", ");
- const message = `Making this file private will remove it from the following public slates: ${slateNames}. Do you wish to continue?`;
+ const message = `Making this file private will remove it from the following public collections: ${slateNames}. Do you wish to continue?`;
if (!window.confirm(message)) {
return;
}
@@ -697,7 +697,7 @@ class CarouselSidebar extends React.Component {
}
>
- Go to slate
+ Go to collection
)
: null;
@@ -738,7 +738,7 @@ class CarouselSidebar extends React.Component {
actions.push(
- Remove from slate
+ Remove from collection
);
}
@@ -866,7 +866,7 @@ class CarouselSidebar extends React.Component {
>
- Add to slate
+ Add to collection
{this.state.showConnectedSection && (
diff --git a/components/core/DataView.js b/components/core/DataView.js
index 67bede77..117ba1e3 100644
--- a/components/core/DataView.js
+++ b/components/core/DataView.js
@@ -475,7 +475,7 @@ export default class DataView extends React.Component {
};
_handleDelete = (id) => {
- const message = `Are you sure you want to delete these files? They will be deleted from your slates as well`;
+ const message = `Are you sure you want to delete these files? They will be deleted from your collections as well`;
if (!window.confirm(message)) {
return;
}
@@ -653,7 +653,7 @@ export default class DataView extends React.Component {
style={{ color: Constants.system.white }}
onClick={this._handleAddToSlate}
>
- Add to slate
+ Add to collection
{user.slates?.length || 0}{" "}
- Slates
+ Collections
@@ -576,7 +576,7 @@ export default class Profile extends React.Component {
)}
{
this.setState({ slateTab: value }, () => {
@@ -647,14 +647,14 @@ export default class Profile extends React.Component {
{this.state.slateTab === 0
- ? `This user does not have any public slates yet`
- : `This user is not following any slates yet`}
+ ? `This user does not have any public collections yet`
+ : `This user is not following any collections yet`}
) : (
)}
- Explore Slates
+ Explore Collections
{this.state.slateTab === 0
- ? `This user does not have any public slates yet`
- : `This user is not following any slates yet`}
+ ? `This user does not have any public collections yet`
+ : `This user is not following any collections yet`}
) : (
diff --git a/components/core/SearchModal.js b/components/core/SearchModal.js
index 04813fb6..9dd46086 100644
--- a/components/core/SearchModal.js
+++ b/components/core/SearchModal.js
@@ -115,7 +115,7 @@ const UserPreview = ({ user }) => {
@{user.username}
{user.data.slates ? (
- {user.data.slates.length} Slate{user.data.slates.length === 1 ? "" : "s"}
+ {user.data.slates.length} Collection{user.data.slates.length === 1 ? "" : "s"}
) : null}
@@ -266,7 +266,7 @@ const FilePreview = ({ file, slate, user, viewerId }) => {
Owner: {user.data.name || `@${user.username}`}
) : null}
{slate ? (
- Slate: {slate.data.name || slate.slatename}
+ Collection: {slate.data.name || slate.slatename}
) : user?.id === viewerId ? (
In your files
) : null}
@@ -955,7 +955,7 @@ export class SearchModal extends React.Component {
{this.state.typeFilter ? (
{this.state.typeFilter === "SLATE"
- ? "Slates:"
+ ? "Collections:"
: this.state.typeFilter === "USER"
? "Users:"
: this.state.typeFilter === "FILE"
@@ -971,9 +971,9 @@ export class SearchModal extends React.Component {
value={this.state.inputValue}
placeholder={`Search for ${
!this.state.typeFilter
- ? "slates, users, and files..."
+ ? "collections, users, and files..."
: this.state.typeFilter === "SLATE"
- ? "slates..."
+ ? "collections..."
: this.state.typeFilter === "USER"
? "users..."
: this.state.typeFilter === "FILE"
@@ -1013,7 +1013,7 @@ export class SearchModal extends React.Component {
>
- Search slates
+ Search collections
{
- const message = `Are you sure you want to delete these files? They will be deleted from your data and slates.`;
+ const message = `Are you sure you want to delete these files? They will be deleted from your data and collections.`;
if (!window.confirm(message)) {
return;
}
@@ -1384,7 +1384,7 @@ export class SlateLayout extends React.Component {
}
>
{this.state.tooltip === `${i}-remove`
- ? "Remove from slate"
+ ? "Remove from collection"
: this.state.tooltip === `${i}-view`
? "View file"
: this.state.tooltip === `${i}-download`
@@ -1509,7 +1509,7 @@ export class SlateLayout extends React.Component {
}
>
{this.state.tooltip === `${i}-add`
- ? "Add to slate"
+ ? "Add to collection"
: this.state.tooltip === `${i}-copy`
? "Copy link"
: this.state.tooltip === `${i}-download`
@@ -1690,7 +1690,7 @@ export class SlateLayout extends React.Component {
style={{ marginLeft: 8, color: Constants.system.white }}
onClick={this._handleAddToSlate}
>
- Add to slate
+ Add to collection
- Add to slate
+ Add to collection
- Create new slate
+ Create new collection
{this.props.slates.length ? (
diff --git a/components/core/SlatePreviewBlock.js b/components/core/SlatePreviewBlock.js
index 2ea13221..502e777c 100644
--- a/components/core/SlatePreviewBlock.js
+++ b/components/core/SlatePreviewBlock.js
@@ -278,7 +278,7 @@ export class SlatePreviewBlock extends React.Component {
}}
navigation={[
{
- text: "Copy slate ID",
+ text: "Copy collection ID",
onClick: (e) => this._handleCopy(e, this.props.slate.id),
},
]}
@@ -368,7 +368,7 @@ export class SlatePreviewBlock extends React.Component {
}}
>
- No files in this slate
+ No files in this collection
)}
diff --git a/components/sidebars/SidebarAddFileToSlate.js b/components/sidebars/SidebarAddFileToSlate.js
index 86bc1027..f41f385e 100644
--- a/components/sidebars/SidebarAddFileToSlate.js
+++ b/components/sidebars/SidebarAddFileToSlate.js
@@ -75,7 +75,7 @@ export default class SidebarAddFileToSlate extends React.Component {
marginBottom: 36,
}}
>
- Add files to slate
+ Add files to collection
Slates
@@ -89,11 +89,11 @@ export default class SidebarAddFileToSlate extends React.Component {
{Object.keys(this.state.selected).length ? (
- Add to slates
+ Add to collections
) : (
- Add to slates
+ Add to collections
)}
diff --git a/components/sidebars/SidebarCreateSlate.js b/components/sidebars/SidebarCreateSlate.js
index 7c8b4bcf..4233843a 100644
--- a/components/sidebars/SidebarCreateSlate.js
+++ b/components/sidebars/SidebarCreateSlate.js
@@ -111,7 +111,7 @@ export default class SidebarCreateSlate extends React.Component {
marginBottom: 36,
}}
>
- Create slate
+ Create collection
@@ -122,12 +122,12 @@ export default class SidebarCreateSlate extends React.Component {
marginTop: 12,
}}
>
- Give your slate a name so you and others can find it on Slate and on the web.
+ Give your collection a name so you and others can find it on Slate and on the web.
- Give your slate a description, add links, and connect it to other slates.
+ Give your collection a description, add links, and connect it to other collections.
- Add tags to a slate to categorize it.
+ Add tags to a collection to categorize it.
- All slates are public by default. This means they can be discovered and seen by anyone
- on the internet. If you make it private, only you will be able to see it.
+ All collections are public by default. This means they can be discovered and seen by
+ anyone on the internet. If you make it private, only you will be able to see it.
Drag and drop a file anywhere on the screen to add it to your data. Dropping a file while
- on a slate page will add it to that slate.
+ on a collection page will add it to that collection.
diff --git a/components/sidebars/SidebarSingleSlateSettings.js b/components/sidebars/SidebarSingleSlateSettings.js
index 41df02b7..adc6490e 100644
--- a/components/sidebars/SidebarSingleSlateSettings.js
+++ b/components/sidebars/SidebarSingleSlateSettings.js
@@ -109,7 +109,9 @@ export default class SidebarSingleSlateSettings extends React.Component {
_handleDelete = async (e) => {
if (
- !window.confirm("Are you sure you want to delete this Slate? This action is irreversible.")
+ !window.confirm(
+ "Are you sure you want to delete this Collection? This action is irreversible."
+ )
) {
return;
}
@@ -160,7 +162,7 @@ export default class SidebarSingleSlateSettings extends React.Component {
marginBottom: 36,
}}
>
- Slate settings
+ Collection settings
@@ -171,11 +173,11 @@ export default class SidebarSingleSlateSettings extends React.Component {
marginTop: 12,
}}
>
- Give your slate a name so you and others can find it on Slate and on the web.
+ Give your collection a name so you and others can find it on Slate and on the web.
- Give your slate a description, add links, and connect it to other slates.
+ Give your collection a description, add links, and connect it to other collections.
- Add tags to a slate to categorize it.
+ Add tags to a collection to categorize it.
- This is the cover image for your slate. You can select a different cover image using the
- "Make cover image" button.
+ This is the cover image for your collection. You can select a different cover image
+ using the "Make cover image" button.
@@ -263,8 +265,8 @@ export default class SidebarSingleSlateSettings extends React.Component {
marginTop: 12,
}}
>
- All slates are public by default. This means they can be discovered and seen by anyone
- on the internet. If you make it private, only you will be able to see it.
+ All collections are public by default. This means they can be discovered and seen by
+ anyone on the internet. If you make it private, only you will be able to see it.
- Delete slate
+ Delete collection
diff --git a/node_common/monitor.js b/node_common/monitor.js
index ba95fafb..92789798 100644
--- a/node_common/monitor.js
+++ b/node_common/monitor.js
@@ -85,7 +85,7 @@ export const createSlate = ({ user, slate }) => {
const userProfileURL = `https://slate.host/${user.username}`;
const userURL = `<${userProfileURL}|${user.username}>`;
- const message = `*${userURL}* created a slate: https://slate.host/${user.username}/${slate.slatename}`;
+ const message = `*${userURL}* created a collection: https://slate.host/${user.username}/${slate.slatename}`;
Social.sendSlackMessage(message);
} catch (e) {
@@ -180,7 +180,6 @@ export const createSlate = ({ user, slate }) => {
export const createSlateObjects = ({ slate, user, files }) => {
// Data.createOrUpdateStats(new Date(), { objects: files.length });
- console.log("inside create slate objects");
if (!slate.isPublic) return;
let activityItems = [];
@@ -307,7 +306,7 @@ export const subscribeSlate = ({ user, targetSlate }) => {
const targetSlatePageURL = `https://slate.host/$/${targetSlate.id}`;
const targetSlateURL = `<${targetSlatePageURL}|${targetSlate.slateId}>`;
- const message = `*${userURL}* subscribed to slate:${targetSlateURL}`;
+ const message = `*${userURL}* subscribed to collection:${targetSlateURL}`;
Social.sendSlackMessage(message);
} catch (e) {
console.log(e);
diff --git a/pages/403.js b/pages/403.js
index dbc00a8e..bc21cbaa 100644
--- a/pages/403.js
+++ b/pages/403.js
@@ -135,7 +135,7 @@ export default class NotFoundPage extends React.Component {
403
- You do not have access to this Slate.
+ You do not have access to this collection.
diff --git a/pages/404.js b/pages/404.js
index 89b493c3..067c7b91 100644
--- a/pages/404.js
+++ b/pages/404.js
@@ -125,7 +125,7 @@ const STYLES_MIDDLE = css`
export default class NotFoundPage extends React.Component {
render() {
const title = `404`;
- const description = "This page no longer exists.";
+ const description = "The page you are looking for does not exist";
const url = "https://slate.host/404";
return (
@@ -135,7 +135,7 @@ export default class NotFoundPage extends React.Component {
404
- The page you are looking for does not exist.
+ The page you are looking for does not exist
diff --git a/pages/api/v2/get-slate.js b/pages/api/v2/get-collection.js
similarity index 83%
rename from pages/api/v2/get-slate.js
rename to pages/api/v2/get-collection.js
index 3d2bcbe9..7fc56176 100644
--- a/pages/api/v2/get-slate.js
+++ b/pages/api/v2/get-collection.js
@@ -47,31 +47,31 @@ export default async (req, res) => {
let slate;
if (Strings.isEmpty(slateId)) {
- return res.status(400).send({ decorator: "V2_GET_SLATE_NO_ID_PROVIDED", error: true });
+ return res.status(400).send({ decorator: "NO_ID_PROVIDED", error: true });
}
slate = await Data.getSlateById({ id: slateId, includeFiles: true, sanitize: true });
if (!slate) {
return res.status(404).send({
- decorator: "SLATE_NOT_FOUND",
+ decorator: "COLLECTION_NOT_FOUND",
error: true,
});
}
if (slate.error) {
return res.status(500).send({
- decorator: "ERROR_WHILE_LOCATING_SLATE",
+ decorator: "ERROR_WHILE_LOCATING_COLLECTION",
error: true,
});
}
if (!slate.isPublic) {
return res.status(400).send({
- decorator: "SLATE_IS_PRIVATE",
+ decorator: "COLLECTION_IS_PRIVATE",
error: true,
});
}
- return res.status(200).send({ decorator: "V2_GET_SLATE", slate });
+ return res.status(200).send({ decorator: "V2_GET_COLLECTION", collection: slate });
};
diff --git a/pages/api/v2/get.js b/pages/api/v2/get.js
index bf574371..e6193ca1 100644
--- a/pages/api/v2/get.js
+++ b/pages/api/v2/get.js
@@ -55,14 +55,14 @@ export default async (req, res) => {
if (!slates) {
return res.status(404).send({
- decorator: "COULD_NOT_FETCH_SLATES",
+ decorator: "COULD_NOT_FETCH_COLLECTIONS",
error: true,
});
}
if (slates.error) {
return res.status(500).send({
- decorator: "COULD_NOT_FETCH_SLATES",
+ decorator: "COULD_NOT_FETCH_COLLECTIONS",
error: true,
});
}
@@ -72,5 +72,5 @@ export default async (req, res) => {
return each;
});
- return res.status(200).send({ decorator: "V2_GET", user, slates });
+ return res.status(200).send({ decorator: "V2_GET", user, collections: slates });
};
diff --git a/pages/api/v2/update-slate.js b/pages/api/v2/update-collection.js
similarity index 81%
rename from pages/api/v2/update-slate.js
rename to pages/api/v2/update-collection.js
index 5a6cf2ce..dcbdf712 100644
--- a/pages/api/v2/update-slate.js
+++ b/pages/api/v2/update-collection.js
@@ -52,7 +52,7 @@ export default async (req, res) => {
if (!req.body.data) {
return res.status(500).send({
- decorator: "V2_UPDATE_SLATE_MUST_PROVIDE_DATA",
+ decorator: "V2_UPDATE_COLLECTION_MUST_PROVIDE_DATA",
error: true,
});
}
@@ -60,16 +60,16 @@ export default async (req, res) => {
const slate = await Data.getSlateById({ id: req.body.data.id, includeFiles: true });
if (!slate) {
- return res.status(404).send({ decorator: "SLATE_NOT_FOUND", error: true });
+ return res.status(404).send({ decorator: "COLLECTION_NOT_FOUND", error: true });
}
if (slate.error) {
- return res.status(500).send({ decorator: "SLATE_NOT_FOUND", error: true });
+ return res.status(500).send({ decorator: "COLLECTION_NOT_FOUND", error: true });
}
if (slate.ownerId !== user.id) {
return res.status(400).send({
- decorator: "NOT_SLATE_OWNER_UPDATE_NOT_PERMITTED",
+ decorator: "NOT_COLLECTION_OWNER_UPDATE_NOT_PERMITTED",
error: true,
});
}
@@ -92,11 +92,11 @@ export default async (req, res) => {
});
if (!privacyResponse) {
- return res.status(404).send({ decorator: "UPDATE_SLATE_PRIVACY_FAILED", error: true });
+ return res.status(404).send({ decorator: "UPDATE_COLLECTION_PRIVACY_FAILED", error: true });
}
if (privacyResponse.error) {
- return res.status(500).send({ decorator: "UPDATE_SLATE_PRIVACY_FAILED", error: true });
+ return res.status(500).send({ decorator: "UPDATE_COLLECTION_PRIVACY_FAILED", error: true });
}
if (!updates.isPublic) {
@@ -125,7 +125,7 @@ export default async (req, res) => {
if (updates.data.name && updates.data.name !== slate.data.name) {
if (!Validations.slatename(slate.data.name)) {
return res.status(400).send({
- decorator: "INVALID_SLATE_NAME",
+ decorator: "INVALID_COLLECTION_NAME",
error: true,
});
}
@@ -137,7 +137,7 @@ export default async (req, res) => {
if (existingSlate) {
return res.status(500).send({
- decorator: "SLATE_NAME_TAKEN",
+ decorator: "COLLECTION_NAME_TAKEN",
error: true,
});
} else {
@@ -148,11 +148,11 @@ export default async (req, res) => {
let updatedSlate = await Data.updateSlateById(updates);
if (!updatedSlate) {
- return res.status(404).send({ decorator: "UPDATE_SLATE_FAILED", error: true });
+ return res.status(404).send({ decorator: "UPDATE_COLLECTION_FAILED", error: true });
}
if (updatedSlate.error) {
- return res.status(500).send({ decorator: "UPDATE_SLATE_FAILED", error: true });
+ return res.status(500).send({ decorator: "UPDATE_COLLECTION_FAILED", error: true });
}
if (slate.isPublic && !updates.isPublic) {
@@ -165,5 +165,5 @@ export default async (req, res) => {
ViewerManager.hydratePartial(user.id, { slates: true });
- return res.status(200).send({ decorator: "V2_UPDATE_SLATE", slate: updatedSlate });
+ return res.status(200).send({ decorator: "V2_UPDATE_COLLECTION", collection: updatedSlate });
};
diff --git a/pages/community.js b/pages/community.js
index b7a4d58c..afa5c281 100644
--- a/pages/community.js
+++ b/pages/community.js
@@ -728,7 +728,7 @@ method: 'POST',
Authorization: 'Basic SLATE-API-KEY-FROM-ACCOUNT-SETTINGS',
},
body: JSON.stringify({ data: {
- // NOTE: optional, if you want your private slates too.
+ // NOTE: optional, if you want your private collections too.
private: false
}})
});
diff --git a/pages/index.js b/pages/index.js
index 7822a019..f158068f 100644
--- a/pages/index.js
+++ b/pages/index.js
@@ -429,7 +429,7 @@ export default class IndexPage extends React.Component {
Collect, organize and share
- your slates
+ your collections
A modular interface for your files, an interface that gives you complete
diff --git a/pages/terms.js b/pages/terms.js
index fc27aa93..a2cf4e59 100644
--- a/pages/terms.js
+++ b/pages/terms.js
@@ -138,8 +138,8 @@ export default class TermsPage extends React.Component {
-
- Your account and slates
+
+ Your account and collections
diff --git a/scenes/SceneActivity.js b/scenes/SceneActivity.js
index 30267e60..c843046f 100644
--- a/scenes/SceneActivity.js
+++ b/scenes/SceneActivity.js
@@ -390,7 +390,7 @@ export default class SceneActivity extends React.Component {
- Start following people and slates to see their activity here
+ Start following people and collections to see their activity here
)}
diff --git a/scenes/SceneDirectory.js b/scenes/SceneDirectory.js
index 4ca1b122..fdd303c7 100644
--- a/scenes/SceneDirectory.js
+++ b/scenes/SceneDirectory.js
@@ -305,7 +305,8 @@ export default class SceneDirectory extends React.Component {
) : (
- You can follow any user on the network to be updated on their new uploads and slates.
+ You can follow any user on the network to be updated on their new uploads and
+ collections.
)
) : null}
diff --git a/scenes/SceneFilesFolder.js b/scenes/SceneFilesFolder.js
index d35f95f9..ea4c041a 100644
--- a/scenes/SceneFilesFolder.js
+++ b/scenes/SceneFilesFolder.js
@@ -244,7 +244,7 @@ export default class SceneFilesFolder extends React.Component {
{this.state.accessDenied
- ? "You do not have access to that slate"
- : "We were unable to locate that slate"}
+ ? "You do not have access to that collection"
+ : "We were unable to locate that collection"}
@@ -467,7 +467,9 @@ class SlatePage extends React.Component {
- Drag and drop files to add them to this slate
+
+ Drag and drop files to add them to this collection
+
) : (
diff --git a/scenes/SceneSlates.js b/scenes/SceneSlates.js
index 223f85ac..4c1ca8f8 100644
--- a/scenes/SceneSlates.js
+++ b/scenes/SceneSlates.js
@@ -41,7 +41,7 @@ export default class SceneSlates extends React.Component {
- Use slates to create mood boards, share files, and organize research.
+ Use collections to create mood boards, share files, and organize research.
- Create slate
+ Create collection
)
@@ -120,9 +120,9 @@ export default class SceneSlates extends React.Component {
/>
) : (
- You can follow any public slates on the network.
+ You can follow any public collections on the network.
- Browse slates
+ Browse collections
)