Skip to content
Closed
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
8 changes: 3 additions & 5 deletions app/projects/[id]/editor/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ import { CommitMessageDialog } from "@/components/editor/CommitMessageDialog";
import { AddEntityDialog, type NewEntityInfo } from "@/components/editor/AddEntityDialog";
import { useToast } from "@/lib/context/ToastContext";
import { ModeSwitcher } from "@/components/editor/ModeSwitcher";
import { ContinuousEditingToggle } from "@/components/editor/ContinuousEditingToggle";
import { DeveloperEditorLayout } from "@/components/editor/developer/DeveloperEditorLayout";
import { StandardEditorLayout } from "@/components/editor/standard/StandardEditorLayout";
import { BranchSelector, RevisionHistoryPanel, HistoryButton } from "@/components/revision";
Expand Down Expand Up @@ -823,18 +822,17 @@ export default function EditorPage() {
<div className="flex items-center justify-between">
<div className="flex items-center gap-4">
<Link
href={`/projects/${projectId}`}
href={`/projects/${projectId}${selectedIri ? `?classIri=${encodeURIComponent(selectedIri)}` : ""}`}
className="flex items-center gap-2 text-sm text-slate-600 hover:text-slate-900 dark:text-slate-400 dark:hover:text-slate-200"
>
<ArrowLeft className="h-4 w-4" />
Back
<Eye className="h-4 w-4" />
Close Editor
</Link>
<div className="h-5 w-px bg-slate-200 dark:bg-slate-700" />
<h1 className="font-semibold text-slate-900 dark:text-white">{project.name}</h1>
<span className="text-sm text-slate-500 dark:text-slate-400">{totalClasses} classes</span>
{/* Mode Switcher */}
<ModeSwitcher />
{canSuggest && <ContinuousEditingToggle />}

{/* Suggestion mode indicator */}
{isSuggestionMode && (
Expand Down
2 changes: 1 addition & 1 deletion app/projects/[id]/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -258,7 +258,7 @@ function ViewerContent({

{/* Open Editor / Sign In */}
{canSuggest ? (
<Link href={`/projects/${projectId}/editor`}>
<Link href={`/projects/${projectId}/editor${selectedIri ? `?classIri=${encodeURIComponent(selectedIri)}` : ""}`}>
<Button size="sm" className="gap-2">
<Pencil className="h-4 w-4" />
<span className="hidden sm:inline">Open Editor</span>
Expand Down