mirror of
https://github.com/docmost/docmost.git
synced 2026-06-22 09:01:37 +10:00
fix(base): refer to the feature as 'base' rather than 'database'
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
import { useCallback, useEffect, useMemo, useRef } from "react";
|
||||
import { Text, Stack } from "@mantine/core";
|
||||
import { useAtom } from "jotai";
|
||||
import { IconDatabase } from "@tabler/icons-react";
|
||||
import { IconTable } from "@tabler/icons-react";
|
||||
import { useTranslation } from "react-i18next";
|
||||
import { notifications } from "@mantine/notifications";
|
||||
import { reorder } from "@atlaskit/pragmatic-drag-and-drop/reorder";
|
||||
@@ -364,14 +364,14 @@ export function BaseView({ pageId, embedded, editable = true, titleSlot }: BaseV
|
||||
if (baseError) {
|
||||
return (
|
||||
<Stack align="center" gap="sm" p="xl">
|
||||
<IconDatabase size={40} color="var(--mantine-color-gray-5)" />
|
||||
<IconTable size={40} color="var(--mantine-color-gray-5)" />
|
||||
<Text c="dimmed">{t("Failed to load base")}</Text>
|
||||
</Stack>
|
||||
);
|
||||
}
|
||||
if (!base) return null;
|
||||
|
||||
// Ghost rows are an "empty database" affordance, not a "filter matched nothing" state.
|
||||
// Ghost rows are an "empty base" affordance, not a "filter matched nothing" state.
|
||||
const isFiltered = (activeFilter?.children?.length ?? 0) > 0;
|
||||
|
||||
const banner = (
|
||||
|
||||
@@ -124,7 +124,7 @@ export function BaseEmbedView({ node, editor, deleteNode }: NodeViewProps) {
|
||||
} else if (isError) {
|
||||
content = (
|
||||
<Box p="md" bg="gray.0" style={{ borderRadius: 8 }}>
|
||||
<Text c="dimmed">You don't have access to this database.</Text>
|
||||
<Text c="dimmed">You don't have access to this base.</Text>
|
||||
</Box>
|
||||
);
|
||||
} else {
|
||||
|
||||
@@ -44,7 +44,7 @@ export function EmptyPageGetStarted({
|
||||
|
||||
const chips = [
|
||||
{
|
||||
key: "database",
|
||||
key: "base",
|
||||
label: t("Base"),
|
||||
icon: IconTable,
|
||||
onClick: () => convertMutation.mutate({ pageId }),
|
||||
|
||||
@@ -63,7 +63,7 @@ import type { Editor } from "@tiptap/core";
|
||||
import { v7 as uuid7 } from "uuid";
|
||||
|
||||
// Resolve the position of a baseEmbed placeholder by its pendingKey.
|
||||
// Used by the Database slash command to patch in the real pageId once
|
||||
// Used by the Base slash command to patch in the real pageId once
|
||||
// the create-base API responds — positions may have shifted in the
|
||||
// interim from collab edits, undo/redo, or concurrent slash commands.
|
||||
function findBaseEmbedPlaceholderPos(
|
||||
|
||||
Reference in New Issue
Block a user