fix(base): refer to the feature as 'base' rather than 'database'

This commit is contained in:
Philipinho
2026-06-15 09:46:08 +01:00
parent 748401e1d4
commit ab1b3723bc
4 changed files with 6 additions and 6 deletions
@@ -1,7 +1,7 @@
import { useCallback, useEffect, useMemo, useRef } from "react"; import { useCallback, useEffect, useMemo, useRef } from "react";
import { Text, Stack } from "@mantine/core"; import { Text, Stack } from "@mantine/core";
import { useAtom } from "jotai"; import { useAtom } from "jotai";
import { IconDatabase } from "@tabler/icons-react"; import { IconTable } from "@tabler/icons-react";
import { useTranslation } from "react-i18next"; import { useTranslation } from "react-i18next";
import { notifications } from "@mantine/notifications"; import { notifications } from "@mantine/notifications";
import { reorder } from "@atlaskit/pragmatic-drag-and-drop/reorder"; import { reorder } from "@atlaskit/pragmatic-drag-and-drop/reorder";
@@ -364,14 +364,14 @@ export function BaseView({ pageId, embedded, editable = true, titleSlot }: BaseV
if (baseError) { if (baseError) {
return ( return (
<Stack align="center" gap="sm" p="xl"> <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> <Text c="dimmed">{t("Failed to load base")}</Text>
</Stack> </Stack>
); );
} }
if (!base) return null; 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 isFiltered = (activeFilter?.children?.length ?? 0) > 0;
const banner = ( const banner = (
@@ -124,7 +124,7 @@ export function BaseEmbedView({ node, editor, deleteNode }: NodeViewProps) {
} else if (isError) { } else if (isError) {
content = ( content = (
<Box p="md" bg="gray.0" style={{ borderRadius: 8 }}> <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> </Box>
); );
} else { } else {
@@ -44,7 +44,7 @@ export function EmptyPageGetStarted({
const chips = [ const chips = [
{ {
key: "database", key: "base",
label: t("Base"), label: t("Base"),
icon: IconTable, icon: IconTable,
onClick: () => convertMutation.mutate({ pageId }), onClick: () => convertMutation.mutate({ pageId }),
@@ -63,7 +63,7 @@ import type { Editor } from "@tiptap/core";
import { v7 as uuid7 } from "uuid"; import { v7 as uuid7 } from "uuid";
// Resolve the position of a baseEmbed placeholder by its pendingKey. // 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 // the create-base API responds — positions may have shifted in the
// interim from collab edits, undo/redo, or concurrent slash commands. // interim from collab edits, undo/redo, or concurrent slash commands.
function findBaseEmbedPlaceholderPos( function findBaseEmbedPlaceholderPos(