Classic conflict block with emerald current section, sky incoming section, and <<< === >>> markers.
<<<<<<< CurrentHEADconst greet = (name) =>`Hi, ${name}!`;=======const greet = (name: string) =>`Merhaba, ${name}!`;>>>>>>> Incomingfeat/onboarding
Requires shadcn/ui initialized. Run npx shadcn@latest init if you haven't.
import { Editor31 } from "@/components/beste/piece/editor31";
<Editor31
currentBranch="HEAD"
incomingBranch="feat/onboarding"
currentCode={[
"const greet = (name) =>",
" `Hi, ${name}!`;"
]}
incomingCode={[
"const greet = (name: string) =>",
" `Merhaba, ${name}!`;"
]}
/>import { greet } from './greet';const user = { name: 'Ayşe' };const msg = greet(user.name);console.log(msg);
Code lines with colored gutter stripes showing added (emerald), modified (sky), and removed (rose) lines.
Branch picker popover with search, a list of branches, ahead counts, and an emerald check on the current one.
const value = user.prfile.name;Code line with a lightbulb quick-fix tile and a dropdown of fix options. Preferred fix gets an amber tag.
--primary: #f43f5e;--accent: #8b5cf6;--surface: #0ea5e9;
CSS lines with inline color swatch squares next to each hex value.
Pill with filename and a state glyph: emerald check for saved, sky dot for dirty.
1// TODO migrate to server components2// FIXME handles null state poorly3// NOTE revisit once design lock lands
Italic comment lines with colored TODO, FIXME, NOTE, or HACK tags.