NobGit
public anord read

Ledger

Why work hard when you can work easier?

Languages

Repository composition by tracked source files.

TypeScript
TypeScript 86% CSS 10% SQL 3% Shell 1% HTML 0%
Create file Wiki Documentation
Clone
https://nobgit.com/orgs/anord/ledger.git
ssh://[email protected]:2222/orgs/anord/ledger.git

Trace

apps/web/src/components/PageEditor.tsx

Trace helps you understand code history line by line. See who changed each line, when it changed, and which commit introduced it.

PageEditor.tsx on main
Author Date Commit Line Code
Alex Nord 3 months ago fee4a2a

Fixing loading issue when putting Ledger behind domain

Full commit hash
fee4a2ae4600b4a17f643e09e505e3f7445dce1d
Author
Alex Nord <[email protected]>
Date
3 months ago
Selected line
1
import { useEffect, useMemo, useState } from "react";
Open commit View diff
1 import { useEffect, useMemo, useState } from "react";
same change fee4a2a

Fixing loading issue when putting Ledger behind domain

Full commit hash
fee4a2ae4600b4a17f643e09e505e3f7445dce1d
Author
Alex Nord <[email protected]>
Date
3 months ago
Selected line
2
import type { PageDetail } from "@ledger/shared";
Open commit View diff
2 import type { PageDetail } from "@ledger/shared";
Alex Nord 3 months ago 4527dbd

First commit v2

Full commit hash
4527dbdfcb1470a5c2476e2a5208f7bf48cc9d27
Author
Alex Nord <[email protected]>
Date
3 months ago
Selected line
3
import { api } from "../lib/api";
Open commit View diff
3 import { api } from "../lib/api";
Alex Nord 3 months ago 39c4a7e

Continues UI fixes and fixing Docs

Full commit hash
39c4a7eb40e70508ca2290d8656cf640971c5c56
Author
Alex Nord <[email protected]>
Date
3 months ago
Selected line
4
import { MarkdownComposerHint } from "./MarkdownComposerHint";
Open commit View diff
4 import { MarkdownComposerHint } from "./MarkdownComposerHint";
Alex Nord 3 months ago 4527dbd

First commit v2

Full commit hash
4527dbdfcb1470a5c2476e2a5208f7bf48cc9d27
Author
Alex Nord <[email protected]>
Date
3 months ago
Selected line
5
Open commit View diff
5
same change 4527dbd

First commit v2

Full commit hash
4527dbdfcb1470a5c2476e2a5208f7bf48cc9d27
Author
Alex Nord <[email protected]>
Date
3 months ago
Selected line
6
const emptyPage = {
Open commit View diff
6 const emptyPage = {
same change 4527dbd

First commit v2

Full commit hash
4527dbdfcb1470a5c2476e2a5208f7bf48cc9d27
Author
Alex Nord <[email protected]>
Date
3 months ago
Selected line
7
  spaceId: "",
Open commit View diff
7 spaceId: "",
same change 4527dbd

First commit v2

Full commit hash
4527dbdfcb1470a5c2476e2a5208f7bf48cc9d27
Author
Alex Nord <[email protected]>
Date
3 months ago
Selected line
8
  title: "",
Open commit View diff
8 title: "",
same change 4527dbd

First commit v2

Full commit hash
4527dbdfcb1470a5c2476e2a5208f7bf48cc9d27
Author
Alex Nord <[email protected]>
Date
3 months ago
Selected line
9
  slug: "",
Open commit View diff
9 slug: "",
Alex Nord 3 months ago 39c4a7e

Continues UI fixes and fixing Docs

Full commit hash
39c4a7eb40e70508ca2290d8656cf640971c5c56
Author
Alex Nord <[email protected]>
Date
3 months ago
Selected line
10
  bodyMarkdown: "",
Open commit View diff
10 bodyMarkdown: "",
Alex Nord 3 months ago 4527dbd

First commit v2

Full commit hash
4527dbdfcb1470a5c2476e2a5208f7bf48cc9d27
Author
Alex Nord <[email protected]>
Date
3 months ago
Selected line
11
  excerpt: "",
Open commit View diff
11 excerpt: "",
same change 4527dbd

First commit v2

Full commit hash
4527dbdfcb1470a5c2476e2a5208f7bf48cc9d27
Author
Alex Nord <[email protected]>
Date
3 months ago
Selected line
12
  visibility: "internal",
Open commit View diff
12 visibility: "internal",
same change 4527dbd

First commit v2

Full commit hash
4527dbdfcb1470a5c2476e2a5208f7bf48cc9d27
Author
Alex Nord <[email protected]>
Date
3 months ago
Selected line
13
  state: "draft",
Open commit View diff
13 state: "draft",
same change 4527dbd

First commit v2

Full commit hash
4527dbdfcb1470a5c2476e2a5208f7bf48cc9d27
Author
Alex Nord <[email protected]>
Date
3 months ago
Selected line
14
  tagNames: [] as string[]
Open commit View diff
14 tagNames: [] as string[]
same change 4527dbd

First commit v2

Full commit hash
4527dbdfcb1470a5c2476e2a5208f7bf48cc9d27
Author
Alex Nord <[email protected]>
Date
3 months ago
Selected line
15
};
Open commit View diff
15 };
same change 4527dbd

First commit v2

Full commit hash
4527dbdfcb1470a5c2476e2a5208f7bf48cc9d27
Author
Alex Nord <[email protected]>
Date
3 months ago
Selected line
16
Open commit View diff
16
Alex Nord 3 months ago 39c4a7e

Continues UI fixes and fixing Docs

Full commit hash
39c4a7eb40e70508ca2290d8656cf640971c5c56
Author
Alex Nord <[email protected]>
Date
3 months ago
Selected line
17
function normalizeMarkdownForEmptyState(value: string) {
Open commit View diff
17 function normalizeMarkdownForEmptyState(value: string) {
same change 39c4a7e

Continues UI fixes and fixing Docs

Full commit hash
39c4a7eb40e70508ca2290d8656cf640971c5c56
Author
Alex Nord <[email protected]>
Date
3 months ago
Selected line
18
  return value
Open commit View diff
18 return value
same change 39c4a7e

Continues UI fixes and fixing Docs

Full commit hash
39c4a7eb40e70508ca2290d8656cf640971c5c56
Author
Alex Nord <[email protected]>
Date
3 months ago
Selected line
19
    .replace(/\u200B/g, "")
Open commit View diff
19 .replace(/\u200B/g, "")
same change 39c4a7e

Continues UI fixes and fixing Docs

Full commit hash
39c4a7eb40e70508ca2290d8656cf640971c5c56
Author
Alex Nord <[email protected]>
Date
3 months ago
Selected line
20
    .replace(/\r\n/g, "\n")
Open commit View diff
20 .replace(/\r\n/g, "\n")
same change 39c4a7e

Continues UI fixes and fixing Docs

Full commit hash
39c4a7eb40e70508ca2290d8656cf640971c5c56
Author
Alex Nord <[email protected]>
Date
3 months ago
Selected line
21
    .trim();
Open commit View diff
21 .trim();
same change 39c4a7e

Continues UI fixes and fixing Docs

Full commit hash
39c4a7eb40e70508ca2290d8656cf640971c5c56
Author
Alex Nord <[email protected]>
Date
3 months ago
Selected line
22
}
Open commit View diff
22 }
same change 39c4a7e

Continues UI fixes and fixing Docs

Full commit hash
39c4a7eb40e70508ca2290d8656cf640971c5c56
Author
Alex Nord <[email protected]>
Date
3 months ago
Selected line
23
Open commit View diff
23
same change 39c4a7e

Continues UI fixes and fixing Docs

Full commit hash
39c4a7eb40e70508ca2290d8656cf640971c5c56
Author
Alex Nord <[email protected]>
Date
3 months ago
Selected line
24
function hasMeaningfulMarkdown(value: string) {
Open commit View diff
24 function hasMeaningfulMarkdown(value: string) {
same change 39c4a7e

Continues UI fixes and fixing Docs

Full commit hash
39c4a7eb40e70508ca2290d8656cf640971c5c56
Author
Alex Nord <[email protected]>
Date
3 months ago
Selected line
25
  const normalized = normalizeMarkdownForEmptyState(value);
Open commit View diff
25 const normalized = normalizeMarkdownForEmptyState(value);
same change 39c4a7e

Continues UI fixes and fixing Docs

Full commit hash
39c4a7eb40e70508ca2290d8656cf640971c5c56
Author
Alex Nord <[email protected]>
Date
3 months ago
Selected line
26
  if (!normalized) {
Open commit View diff
26 if (!normalized) {
same change 39c4a7e

Continues UI fixes and fixing Docs

Full commit hash
39c4a7eb40e70508ca2290d8656cf640971c5c56
Author
Alex Nord <[email protected]>
Date
3 months ago
Selected line
27
    return false;
Open commit View diff
27 return false;
same change 39c4a7e

Continues UI fixes and fixing Docs

Full commit hash
39c4a7eb40e70508ca2290d8656cf640971c5c56
Author
Alex Nord <[email protected]>
Date
3 months ago
Selected line
28
  }
Open commit View diff
28 }
same change 39c4a7e

Continues UI fixes and fixing Docs

Full commit hash
39c4a7eb40e70508ca2290d8656cf640971c5c56
Author
Alex Nord <[email protected]>
Date
3 months ago
Selected line
29
Open commit View diff
29
same change 39c4a7e

Continues UI fixes and fixing Docs

Full commit hash
39c4a7eb40e70508ca2290d8656cf640971c5c56
Author
Alex Nord <[email protected]>
Date
3 months ago
Selected line
30
  return normalized !== "# New page\n\nStart writing..." && normalized !== "Start writing...";
Open commit View diff
30 return normalized !== "# New page\n\nStart writing..." && normalized !== "Start writing...";
same change 39c4a7e

Continues UI fixes and fixing Docs

Full commit hash
39c4a7eb40e70508ca2290d8656cf640971c5c56
Author
Alex Nord <[email protected]>
Date
3 months ago
Selected line
31
}
Open commit View diff
31 }
same change 39c4a7e

Continues UI fixes and fixing Docs

Full commit hash
39c4a7eb40e70508ca2290d8656cf640971c5c56
Author
Alex Nord <[email protected]>
Date
3 months ago
Selected line
32
Open commit View diff
32
Alex Nord 3 months ago 3d9ace8

Continues UI Fixes

Full commit hash
3d9ace86fe418af41d072e29d321cbe81d325aa9
Author
Alex Nord <[email protected]>
Date
3 months ago
Selected line
33
export function PageEditor({
Open commit View diff
33 export function PageEditor({
same change 3d9ace8

Continues UI Fixes

Full commit hash
3d9ace86fe418af41d072e29d321cbe81d325aa9
Author
Alex Nord <[email protected]>
Date
3 months ago
Selected line
34
  spaces,
Open commit View diff
34 spaces,
Alex Nord 3 months ago fee4a2a

Fixing loading issue when putting Ledger behind domain

Full commit hash
fee4a2ae4600b4a17f643e09e505e3f7445dce1d
Author
Alex Nord <[email protected]>
Date
3 months ago
Selected line
35
  initialPage,
Open commit View diff
35 initialPage,
same change fee4a2a

Fixing loading issue when putting Ledger behind domain

Full commit hash
fee4a2ae4600b4a17f643e09e505e3f7445dce1d
Author
Alex Nord <[email protected]>
Date
3 months ago
Selected line
36
  mode = "create",
Open commit View diff
36 mode = "create",
Alex Nord 3 months ago 3d9ace8

Continues UI Fixes

Full commit hash
3d9ace86fe418af41d072e29d321cbe81d325aa9
Author
Alex Nord <[email protected]>
Date
3 months ago
Selected line
37
  variant = "panel",
Open commit View diff
37 variant = "panel",
Alex Nord 3 months ago fee4a2a

Fixing loading issue when putting Ledger behind domain

Full commit hash
fee4a2ae4600b4a17f643e09e505e3f7445dce1d
Author
Alex Nord <[email protected]>
Date
3 months ago
Selected line
38
  onSaved,
Open commit View diff
38 onSaved,
Alex Nord 3 months ago 3d9ace8

Continues UI Fixes

Full commit hash
3d9ace86fe418af41d072e29d321cbe81d325aa9
Author
Alex Nord <[email protected]>
Date
3 months ago
Selected line
39
  onCancel
Open commit View diff
39 onCancel
same change 3d9ace8

Continues UI Fixes

Full commit hash
3d9ace86fe418af41d072e29d321cbe81d325aa9
Author
Alex Nord <[email protected]>
Date
3 months ago
Selected line
40
}: {
Open commit View diff
40 }: {
same change 3d9ace8

Continues UI Fixes

Full commit hash
3d9ace86fe418af41d072e29d321cbe81d325aa9
Author
Alex Nord <[email protected]>
Date
3 months ago
Selected line
41
  spaces: Array<{ id: string; name: string; key: string }>;
Open commit View diff
41 spaces: Array<{ id: string; name: string; key: string }>;
Alex Nord 3 months ago fee4a2a

Fixing loading issue when putting Ledger behind domain

Full commit hash
fee4a2ae4600b4a17f643e09e505e3f7445dce1d
Author
Alex Nord <[email protected]>
Date
3 months ago
Selected line
42
  initialPage?: (Pick<PageDetail, "id" | "spaceId" | "title" | "slug" | "bodyMarkdown" | "excerpt" | "visibility" | "state" | "tags"> & {
Open commit View diff
42 initialPage?: (Pick<PageDetail, "id" | "spaceId" | "title" | "slug" | "bodyMarkdown" | "excerpt" | "visibility" | "state" | "tags"> & {
same change fee4a2a

Fixing loading issue when putting Ledger behind domain

Full commit hash
fee4a2ae4600b4a17f643e09e505e3f7445dce1d
Author
Alex Nord <[email protected]>
Date
3 months ago
Selected line
43
    parentPageId?: string | null;
Open commit View diff
43 parentPageId?: string | null;
same change fee4a2a

Fixing loading issue when putting Ledger behind domain

Full commit hash
fee4a2ae4600b4a17f643e09e505e3f7445dce1d
Author
Alex Nord <[email protected]>
Date
3 months ago
Selected line
44
  }) | null;
Open commit View diff
44 }) | null;
same change fee4a2a

Fixing loading issue when putting Ledger behind domain

Full commit hash
fee4a2ae4600b4a17f643e09e505e3f7445dce1d
Author
Alex Nord <[email protected]>
Date
3 months ago
Selected line
45
  mode?: "create" | "edit";
Open commit View diff
45 mode?: "create" | "edit";
same change fee4a2a

Fixing loading issue when putting Ledger behind domain

Full commit hash
fee4a2ae4600b4a17f643e09e505e3f7445dce1d
Author
Alex Nord <[email protected]>
Date
3 months ago
Selected line
46
  variant?: "panel" | "dialog" | "page";
Open commit View diff
46 variant?: "panel" | "dialog" | "page";
same change fee4a2a

Fixing loading issue when putting Ledger behind domain

Full commit hash
fee4a2ae4600b4a17f643e09e505e3f7445dce1d
Author
Alex Nord <[email protected]>
Date
3 months ago
Selected line
47
  onSaved?: (slug: string) => void;
Open commit View diff
47 onSaved?: (slug: string) => void;
Alex Nord 3 months ago 3d9ace8

Continues UI Fixes

Full commit hash
3d9ace86fe418af41d072e29d321cbe81d325aa9
Author
Alex Nord <[email protected]>
Date
3 months ago
Selected line
48
  onCancel?: () => void;
Open commit View diff
48 onCancel?: () => void;
same change 3d9ace8

Continues UI Fixes

Full commit hash
3d9ace86fe418af41d072e29d321cbe81d325aa9
Author
Alex Nord <[email protected]>
Date
3 months ago
Selected line
49
}) {
Open commit View diff
49 }) {
Alex Nord 3 months ago fee4a2a

Fixing loading issue when putting Ledger behind domain

Full commit hash
fee4a2ae4600b4a17f643e09e505e3f7445dce1d
Author
Alex Nord <[email protected]>
Date
3 months ago
Selected line
50
  const createEmptyForm = () => ({
Open commit View diff
50 const createEmptyForm = () => ({
Alex Nord 3 months ago 4527dbd

First commit v2

Full commit hash
4527dbdfcb1470a5c2476e2a5208f7bf48cc9d27
Author
Alex Nord <[email protected]>
Date
3 months ago
Selected line
51
    ...emptyPage,
Open commit View diff
51 ...emptyPage,
Alex Nord 3 months ago fee4a2a

Fixing loading issue when putting Ledger behind domain

Full commit hash
fee4a2ae4600b4a17f643e09e505e3f7445dce1d
Author
Alex Nord <[email protected]>
Date
3 months ago
Selected line
52
    spaceId: initialPage?.spaceId ?? spaces[0]?.id ?? "",
Open commit View diff
52 spaceId: initialPage?.spaceId ?? spaces[0]?.id ?? "",
same change fee4a2a

Fixing loading issue when putting Ledger behind domain

Full commit hash
fee4a2ae4600b4a17f643e09e505e3f7445dce1d
Author
Alex Nord <[email protected]>
Date
3 months ago
Selected line
53
    title: initialPage?.title ?? "",
Open commit View diff
53 title: initialPage?.title ?? "",
same change fee4a2a

Fixing loading issue when putting Ledger behind domain

Full commit hash
fee4a2ae4600b4a17f643e09e505e3f7445dce1d
Author
Alex Nord <[email protected]>
Date
3 months ago
Selected line
54
    slug: initialPage?.slug ?? "",
Open commit View diff
54 slug: initialPage?.slug ?? "",
same change fee4a2a

Fixing loading issue when putting Ledger behind domain

Full commit hash
fee4a2ae4600b4a17f643e09e505e3f7445dce1d
Author
Alex Nord <[email protected]>
Date
3 months ago
Selected line
55
    bodyMarkdown: initialPage?.bodyMarkdown ?? "",
Open commit View diff
55 bodyMarkdown: initialPage?.bodyMarkdown ?? "",
same change fee4a2a

Fixing loading issue when putting Ledger behind domain

Full commit hash
fee4a2ae4600b4a17f643e09e505e3f7445dce1d
Author
Alex Nord <[email protected]>
Date
3 months ago
Selected line
56
    excerpt: initialPage?.excerpt ?? "",
Open commit View diff
56 excerpt: initialPage?.excerpt ?? "",
same change fee4a2a

Fixing loading issue when putting Ledger behind domain

Full commit hash
fee4a2ae4600b4a17f643e09e505e3f7445dce1d
Author
Alex Nord <[email protected]>
Date
3 months ago
Selected line
57
    visibility: initialPage?.visibility ?? "internal",
Open commit View diff
57 visibility: initialPage?.visibility ?? "internal",
same change fee4a2a

Fixing loading issue when putting Ledger behind domain

Full commit hash
fee4a2ae4600b4a17f643e09e505e3f7445dce1d
Author
Alex Nord <[email protected]>
Date
3 months ago
Selected line
58
    state: initialPage?.state ?? "draft",
Open commit View diff
58 state: initialPage?.state ?? "draft",
same change fee4a2a

Fixing loading issue when putting Ledger behind domain

Full commit hash
fee4a2ae4600b4a17f643e09e505e3f7445dce1d
Author
Alex Nord <[email protected]>
Date
3 months ago
Selected line
59
    tagNames: initialPage?.tags ?? [],
Open commit View diff
59 tagNames: initialPage?.tags ?? [],
same change fee4a2a

Fixing loading issue when putting Ledger behind domain

Full commit hash
fee4a2ae4600b4a17f643e09e505e3f7445dce1d
Author
Alex Nord <[email protected]>
Date
3 months ago
Selected line
60
    parentPageId: initialPage?.parentPageId ?? null
Open commit View diff
60 parentPageId: initialPage?.parentPageId ?? null
Alex Nord 3 months ago 4527dbd

First commit v2

Full commit hash
4527dbdfcb1470a5c2476e2a5208f7bf48cc9d27
Author
Alex Nord <[email protected]>
Date
3 months ago
Selected line
61
  });
Open commit View diff
61 });
Alex Nord 3 months ago fee4a2a

Fixing loading issue when putting Ledger behind domain

Full commit hash
fee4a2ae4600b4a17f643e09e505e3f7445dce1d
Author
Alex Nord <[email protected]>
Date
3 months ago
Selected line
62
Open commit View diff
62
same change fee4a2a

Fixing loading issue when putting Ledger behind domain

Full commit hash
fee4a2ae4600b4a17f643e09e505e3f7445dce1d
Author
Alex Nord <[email protected]>
Date
3 months ago
Selected line
63
  const [form, setForm] = useState(createEmptyForm);
Open commit View diff
63 const [form, setForm] = useState(createEmptyForm);
same change fee4a2a

Fixing loading issue when putting Ledger behind domain

Full commit hash
fee4a2ae4600b4a17f643e09e505e3f7445dce1d
Author
Alex Nord <[email protected]>
Date
3 months ago
Selected line
64
  const [tagInput, setTagInput] = useState((initialPage?.tags ?? []).join(", "));
Open commit View diff
64 const [tagInput, setTagInput] = useState((initialPage?.tags ?? []).join(", "));
Alex Nord 3 months ago 4527dbd

First commit v2

Full commit hash
4527dbdfcb1470a5c2476e2a5208f7bf48cc9d27
Author
Alex Nord <[email protected]>
Date
3 months ago
Selected line
65
  const [status, setStatus] = useState<string | null>(null);
Open commit View diff
65 const [status, setStatus] = useState<string | null>(null);
Alex Nord 3 months ago 3d9ace8

Continues UI Fixes

Full commit hash
3d9ace86fe418af41d072e29d321cbe81d325aa9
Author
Alex Nord <[email protected]>
Date
3 months ago
Selected line
66
  const isDialog = variant === "dialog";
Open commit View diff
66 const isDialog = variant === "dialog";
Alex Nord 3 months ago fee4a2a

Fixing loading issue when putting Ledger behind domain

Full commit hash
fee4a2ae4600b4a17f643e09e505e3f7445dce1d
Author
Alex Nord <[email protected]>
Date
3 months ago
Selected line
67
  const isPage = variant === "page";
Open commit View diff
67 const isPage = variant === "page";
Alex Nord 3 months ago 39c4a7e

Continues UI fixes and fixing Docs

Full commit hash
39c4a7eb40e70508ca2290d8656cf640971c5c56
Author
Alex Nord <[email protected]>
Date
3 months ago
Selected line
68
  const showMarkdownHelper = useMemo(() => !hasMeaningfulMarkdown(form.bodyMarkdown), [form.bodyMarkdown]);
Open commit View diff
68 const showMarkdownHelper = useMemo(() => !hasMeaningfulMarkdown(form.bodyMarkdown), [form.bodyMarkdown]);
Alex Nord 3 months ago fee4a2a

Fixing loading issue when putting Ledger behind domain

Full commit hash
fee4a2ae4600b4a17f643e09e505e3f7445dce1d
Author
Alex Nord <[email protected]>
Date
3 months ago
Selected line
69
  const canPublish = form.state === "published";
Open commit View diff
69 const canPublish = form.state === "published";
same change fee4a2a

Fixing loading issue when putting Ledger behind domain

Full commit hash
fee4a2ae4600b4a17f643e09e505e3f7445dce1d
Author
Alex Nord <[email protected]>
Date
3 months ago
Selected line
70
Open commit View diff
70
same change fee4a2a

Fixing loading issue when putting Ledger behind domain

Full commit hash
fee4a2ae4600b4a17f643e09e505e3f7445dce1d
Author
Alex Nord <[email protected]>
Date
3 months ago
Selected line
71
  useEffect(() => {
Open commit View diff
71 useEffect(() => {
same change fee4a2a

Fixing loading issue when putting Ledger behind domain

Full commit hash
fee4a2ae4600b4a17f643e09e505e3f7445dce1d
Author
Alex Nord <[email protected]>
Date
3 months ago
Selected line
72
    setForm(createEmptyForm());
Open commit View diff
72 setForm(createEmptyForm());
same change fee4a2a

Fixing loading issue when putting Ledger behind domain

Full commit hash
fee4a2ae4600b4a17f643e09e505e3f7445dce1d
Author
Alex Nord <[email protected]>
Date
3 months ago
Selected line
73
    setTagInput((initialPage?.tags ?? []).join(", "));
Open commit View diff
73 setTagInput((initialPage?.tags ?? []).join(", "));
same change fee4a2a

Fixing loading issue when putting Ledger behind domain

Full commit hash
fee4a2ae4600b4a17f643e09e505e3f7445dce1d
Author
Alex Nord <[email protected]>
Date
3 months ago
Selected line
74
  }, [initialPage, spaces]);
Open commit View diff
74 }, [initialPage, spaces]);
Alex Nord 3 months ago 4527dbd

First commit v2

Full commit hash
4527dbdfcb1470a5c2476e2a5208f7bf48cc9d27
Author
Alex Nord <[email protected]>
Date
3 months ago
Selected line
75
Open commit View diff
75
Alex Nord 3 months ago fee4a2a

Fixing loading issue when putting Ledger behind domain

Full commit hash
fee4a2ae4600b4a17f643e09e505e3f7445dce1d
Author
Alex Nord <[email protected]>
Date
3 months ago
Selected line
76
  async function submit(nextState?: "draft" | "published") {
Open commit View diff
76 async function submit(nextState?: "draft" | "published") {
Alex Nord 3 months ago 4527dbd

First commit v2

Full commit hash
4527dbdfcb1470a5c2476e2a5208f7bf48cc9d27
Author
Alex Nord <[email protected]>
Date
3 months ago
Selected line
77
    try {
Open commit View diff
77 try {
Alex Nord 3 months ago fee4a2a

Fixing loading issue when putting Ledger behind domain

Full commit hash
fee4a2ae4600b4a17f643e09e505e3f7445dce1d
Author
Alex Nord <[email protected]>
Date
3 months ago
Selected line
78
      const payload = {
Open commit View diff
78 const payload = {
Alex Nord 3 months ago 4527dbd

First commit v2

Full commit hash
4527dbdfcb1470a5c2476e2a5208f7bf48cc9d27
Author
Alex Nord <[email protected]>
Date
3 months ago
Selected line
79
        ...form,
Open commit View diff
79 ...form,
Alex Nord 3 months ago fee4a2a

Fixing loading issue when putting Ledger behind domain

Full commit hash
fee4a2ae4600b4a17f643e09e505e3f7445dce1d
Author
Alex Nord <[email protected]>
Date
3 months ago
Selected line
80
        state: nextState ?? form.state,
Open commit View diff
80 state: nextState ?? form.state,
Alex Nord 3 months ago 4527dbd

First commit v2

Full commit hash
4527dbdfcb1470a5c2476e2a5208f7bf48cc9d27
Author
Alex Nord <[email protected]>
Date
3 months ago
Selected line
81
        tagNames: form.tagNames,
Open commit View diff
81 tagNames: form.tagNames,
same change 4527dbd

First commit v2

Full commit hash
4527dbdfcb1470a5c2476e2a5208f7bf48cc9d27
Author
Alex Nord <[email protected]>
Date
3 months ago
Selected line
82
        allowedRoleKeys: form.visibility === "restricted" ? ["viewer"] : []
Open commit View diff
82 allowedRoleKeys: form.visibility === "restricted" ? ["viewer"] : []
Alex Nord 3 months ago fee4a2a

Fixing loading issue when putting Ledger behind domain

Full commit hash
fee4a2ae4600b4a17f643e09e505e3f7445dce1d
Author
Alex Nord <[email protected]>
Date
3 months ago
Selected line
83
      };
Open commit View diff
83 };
same change fee4a2a

Fixing loading issue when putting Ledger behind domain

Full commit hash
fee4a2ae4600b4a17f643e09e505e3f7445dce1d
Author
Alex Nord <[email protected]>
Date
3 months ago
Selected line
84
      const result =
Open commit View diff
84 const result =
same change fee4a2a

Fixing loading issue when putting Ledger behind domain

Full commit hash
fee4a2ae4600b4a17f643e09e505e3f7445dce1d
Author
Alex Nord <[email protected]>
Date
3 months ago
Selected line
85
        mode === "edit" && initialPage
Open commit View diff
85 mode === "edit" && initialPage
same change fee4a2a

Fixing loading issue when putting Ledger behind domain

Full commit hash
fee4a2ae4600b4a17f643e09e505e3f7445dce1d
Author
Alex Nord <[email protected]>
Date
3 months ago
Selected line
86
          ? await api.put<{ slug: string }>(`/api/pages/${initialPage.id}`, payload)
Open commit View diff
86 ? await api.put<{ slug: string }>(`/api/pages/${initialPage.id}`, payload)
same change fee4a2a

Fixing loading issue when putting Ledger behind domain

Full commit hash
fee4a2ae4600b4a17f643e09e505e3f7445dce1d
Author
Alex Nord <[email protected]>
Date
3 months ago
Selected line
87
          : await api.post<{ slug: string }>("/api/pages", payload);
Open commit View diff
87 : await api.post<{ slug: string }>("/api/pages", payload);
same change fee4a2a

Fixing loading issue when putting Ledger behind domain

Full commit hash
fee4a2ae4600b4a17f643e09e505e3f7445dce1d
Author
Alex Nord <[email protected]>
Date
3 months ago
Selected line
88
      setStatus(mode === "edit" ? "Document saved." : `Saved page ${result.slug}`);
Open commit View diff
88 setStatus(mode === "edit" ? "Document saved." : `Saved page ${result.slug}`);
same change fee4a2a

Fixing loading issue when putting Ledger behind domain

Full commit hash
fee4a2ae4600b4a17f643e09e505e3f7445dce1d
Author
Alex Nord <[email protected]>
Date
3 months ago
Selected line
89
      if (mode === "create") {
Open commit View diff
89 if (mode === "create") {
same change fee4a2a

Fixing loading issue when putting Ledger behind domain

Full commit hash
fee4a2ae4600b4a17f643e09e505e3f7445dce1d
Author
Alex Nord <[email protected]>
Date
3 months ago
Selected line
90
        setForm({
Open commit View diff
90 setForm({
same change fee4a2a

Fixing loading issue when putting Ledger behind domain

Full commit hash
fee4a2ae4600b4a17f643e09e505e3f7445dce1d
Author
Alex Nord <[email protected]>
Date
3 months ago
Selected line
91
          ...emptyPage,
Open commit View diff
91 ...emptyPage,
same change fee4a2a

Fixing loading issue when putting Ledger behind domain

Full commit hash
fee4a2ae4600b4a17f643e09e505e3f7445dce1d
Author
Alex Nord <[email protected]>
Date
3 months ago
Selected line
92
          spaceId: spaces[0]?.id ?? ""
Open commit View diff
92 spaceId: spaces[0]?.id ?? ""
same change fee4a2a

Fixing loading issue when putting Ledger behind domain

Full commit hash
fee4a2ae4600b4a17f643e09e505e3f7445dce1d
Author
Alex Nord <[email protected]>
Date
3 months ago
Selected line
93
        });
Open commit View diff
93 });
same change fee4a2a

Fixing loading issue when putting Ledger behind domain

Full commit hash
fee4a2ae4600b4a17f643e09e505e3f7445dce1d
Author
Alex Nord <[email protected]>
Date
3 months ago
Selected line
94
        setTagInput("");
Open commit View diff
94 setTagInput("");
same change fee4a2a

Fixing loading issue when putting Ledger behind domain

Full commit hash
fee4a2ae4600b4a17f643e09e505e3f7445dce1d
Author
Alex Nord <[email protected]>
Date
3 months ago
Selected line
95
      }
Open commit View diff
95 }
same change fee4a2a

Fixing loading issue when putting Ledger behind domain

Full commit hash
fee4a2ae4600b4a17f643e09e505e3f7445dce1d
Author
Alex Nord <[email protected]>
Date
3 months ago
Selected line
96
      onSaved?.(result.slug);
Open commit View diff
96 onSaved?.(result.slug);
Alex Nord 3 months ago 4527dbd

First commit v2

Full commit hash
4527dbdfcb1470a5c2476e2a5208f7bf48cc9d27
Author
Alex Nord <[email protected]>
Date
3 months ago
Selected line
97
    } catch (error) {
Open commit View diff
97 } catch (error) {
same change 4527dbd

First commit v2

Full commit hash
4527dbdfcb1470a5c2476e2a5208f7bf48cc9d27
Author
Alex Nord <[email protected]>
Date
3 months ago
Selected line
98
      setStatus(error instanceof Error ? error.message : "Could not save page");
Open commit View diff
98 setStatus(error instanceof Error ? error.message : "Could not save page");
same change 4527dbd

First commit v2

Full commit hash
4527dbdfcb1470a5c2476e2a5208f7bf48cc9d27
Author
Alex Nord <[email protected]>
Date
3 months ago
Selected line
99
    }
Open commit View diff
99 }
same change 4527dbd

First commit v2

Full commit hash
4527dbdfcb1470a5c2476e2a5208f7bf48cc9d27
Author
Alex Nord <[email protected]>
Date
3 months ago
Selected line
100
  }
Open commit View diff
100 }
same change 4527dbd

First commit v2

Full commit hash
4527dbdfcb1470a5c2476e2a5208f7bf48cc9d27
Author
Alex Nord <[email protected]>
Date
3 months ago
Selected line
101
Open commit View diff
101
same change 4527dbd

First commit v2

Full commit hash
4527dbdfcb1470a5c2476e2a5208f7bf48cc9d27
Author
Alex Nord <[email protected]>
Date
3 months ago
Selected line
102
  return (
Open commit View diff
102 return (
Alex Nord 3 months ago fee4a2a

Fixing loading issue when putting Ledger behind domain

Full commit hash
fee4a2ae4600b4a17f643e09e505e3f7445dce1d
Author
Alex Nord <[email protected]>
Date
3 months ago
Selected line
103
    <section className={isPage ? "composer-shell" : isDialog ? "editor-dialog" : "panel"}>
Open commit View diff
103 <section className={isPage ? "composer-shell" : isDialog ? "editor-dialog" : "panel"}>
same change fee4a2a

Fixing loading issue when putting Ledger behind domain

Full commit hash
fee4a2ae4600b4a17f643e09e505e3f7445dce1d
Author
Alex Nord <[email protected]>
Date
3 months ago
Selected line
104
      <div className={`panel__header${isPage ? " composer-header" : ""}`}>
Open commit View diff
104 <div className={`panel__header${isPage ? " composer-header" : ""}`}>
Alex Nord 3 months ago 9693751

Redesign the web app into a docs-first knowledge base UI

Full commit hash
9693751c4efa74f02fcfa752eedbe80955e1f2ee
Author
Alex Nord <[email protected]>
Date
3 months ago
Selected line
105
        <div>
Open commit View diff
105 <div>
Alex Nord 3 months ago fee4a2a

Fixing loading issue when putting Ledger behind domain

Full commit hash
fee4a2ae4600b4a17f643e09e505e3f7445dce1d
Author
Alex Nord <[email protected]>
Date
3 months ago
Selected line
106
          <p className="eyebrow">{mode === "edit" ? "Editor" : "Publishing"}</p>
Open commit View diff
106 <p className="eyebrow">{mode === "edit" ? "Editor" : "Publishing"}</p>
same change fee4a2a

Fixing loading issue when putting Ledger behind domain

Full commit hash
fee4a2ae4600b4a17f643e09e505e3f7445dce1d
Author
Alex Nord <[email protected]>
Date
3 months ago
Selected line
107
          <h3>{mode === "edit" ? "Edit document" : isDialog ? "New document" : isPage ? "New document" : "Create a new page"}</h3>
Open commit View diff
107 <h3>{mode === "edit" ? "Edit document" : isDialog ? "New document" : isPage ? "New document" : "Create a new page"}</h3>
same change fee4a2a

Fixing loading issue when putting Ledger behind domain

Full commit hash
fee4a2ae4600b4a17f643e09e505e3f7445dce1d
Author
Alex Nord <[email protected]>
Date
3 months ago
Selected line
108
        </div>
Open commit View diff
108 </div>
same change fee4a2a

Fixing loading issue when putting Ledger behind domain

Full commit hash
fee4a2ae4600b4a17f643e09e505e3f7445dce1d
Author
Alex Nord <[email protected]>
Date
3 months ago
Selected line
109
        <div className="composer-header__actions">
Open commit View diff
109 <div className="composer-header__actions">
same change fee4a2a

Fixing loading issue when putting Ledger behind domain

Full commit hash
fee4a2ae4600b4a17f643e09e505e3f7445dce1d
Author
Alex Nord <[email protected]>
Date
3 months ago
Selected line
110
          <span className="pill">{mode === "edit" ? "Draft editor" : "Editor"}</span>
Open commit View diff
110 <span className="pill">{mode === "edit" ? "Draft editor" : "Editor"}</span>
same change fee4a2a

Fixing loading issue when putting Ledger behind domain

Full commit hash
fee4a2ae4600b4a17f643e09e505e3f7445dce1d
Author
Alex Nord <[email protected]>
Date
3 months ago
Selected line
111
          {onCancel ? (
Open commit View diff
111 {onCancel ? (
same change fee4a2a

Fixing loading issue when putting Ledger behind domain

Full commit hash
fee4a2ae4600b4a17f643e09e505e3f7445dce1d
Author
Alex Nord <[email protected]>
Date
3 months ago
Selected line
112
            <button type="button" className="button-secondary" onClick={onCancel}>
Open commit View diff
112 <button type="button" className="button-secondary" onClick={onCancel}>
same change fee4a2a

Fixing loading issue when putting Ledger behind domain

Full commit hash
fee4a2ae4600b4a17f643e09e505e3f7445dce1d
Author
Alex Nord <[email protected]>
Date
3 months ago
Selected line
113
              Cancel
Open commit View diff
113 Cancel
same change fee4a2a

Fixing loading issue when putting Ledger behind domain

Full commit hash
fee4a2ae4600b4a17f643e09e505e3f7445dce1d
Author
Alex Nord <[email protected]>
Date
3 months ago
Selected line
114
            </button>
Open commit View diff
114 </button>
same change fee4a2a

Fixing loading issue when putting Ledger behind domain

Full commit hash
fee4a2ae4600b4a17f643e09e505e3f7445dce1d
Author
Alex Nord <[email protected]>
Date
3 months ago
Selected line
115
          ) : null}
Open commit View diff
115 ) : null}
Alex Nord 3 months ago 9693751

Redesign the web app into a docs-first knowledge base UI

Full commit hash
9693751c4efa74f02fcfa752eedbe80955e1f2ee
Author
Alex Nord <[email protected]>
Date
3 months ago
Selected line
116
        </div>
Open commit View diff
116 </div>
Alex Nord 3 months ago 4527dbd

First commit v2

Full commit hash
4527dbdfcb1470a5c2476e2a5208f7bf48cc9d27
Author
Alex Nord <[email protected]>
Date
3 months ago
Selected line
117
      </div>
Open commit View diff
117 </div>
Alex Nord 3 months ago fee4a2a

Fixing loading issue when putting Ledger behind domain

Full commit hash
fee4a2ae4600b4a17f643e09e505e3f7445dce1d
Author
Alex Nord <[email protected]>
Date
3 months ago
Selected line
118
      <div className={isPage ? "composer-layout" : "stack-page"}>
Open commit View diff
118 <div className={isPage ? "composer-layout" : "stack-page"}>
same change fee4a2a

Fixing loading issue when putting Ledger behind domain

Full commit hash
fee4a2ae4600b4a17f643e09e505e3f7445dce1d
Author
Alex Nord <[email protected]>
Date
3 months ago
Selected line
119
        <div className="composer-main">
Open commit View diff
119 <div className="composer-main">
same change fee4a2a

Fixing loading issue when putting Ledger behind domain

Full commit hash
fee4a2ae4600b4a17f643e09e505e3f7445dce1d
Author
Alex Nord <[email protected]>
Date
3 months ago
Selected line
120
          <label className="field">
Open commit View diff
120 <label className="field">
same change fee4a2a

Fixing loading issue when putting Ledger behind domain

Full commit hash
fee4a2ae4600b4a17f643e09e505e3f7445dce1d
Author
Alex Nord <[email protected]>
Date
3 months ago
Selected line
121
            Title
Open commit View diff
121 Title
same change fee4a2a

Fixing loading issue when putting Ledger behind domain

Full commit hash
fee4a2ae4600b4a17f643e09e505e3f7445dce1d
Author
Alex Nord <[email protected]>
Date
3 months ago
Selected line
122
            <input
Open commit View diff
122 <input
same change fee4a2a

Fixing loading issue when putting Ledger behind domain

Full commit hash
fee4a2ae4600b4a17f643e09e505e3f7445dce1d
Author
Alex Nord <[email protected]>
Date
3 months ago
Selected line
123
              value={form.title}
Open commit View diff
123 value={form.title}
same change fee4a2a

Fixing loading issue when putting Ledger behind domain

Full commit hash
fee4a2ae4600b4a17f643e09e505e3f7445dce1d
Author
Alex Nord <[email protected]>
Date
3 months ago
Selected line
124
              placeholder="Untitled document"
Open commit View diff
124 placeholder="Untitled document"
same change fee4a2a

Fixing loading issue when putting Ledger behind domain

Full commit hash
fee4a2ae4600b4a17f643e09e505e3f7445dce1d
Author
Alex Nord <[email protected]>
Date
3 months ago
Selected line
125
              onChange={(event) => setForm((current) => ({ ...current, title: event.target.value }))}
Open commit View diff
125 onChange={(event) => setForm((current) => ({ ...current, title: event.target.value }))}
same change fee4a2a

Fixing loading issue when putting Ledger behind domain

Full commit hash
fee4a2ae4600b4a17f643e09e505e3f7445dce1d
Author
Alex Nord <[email protected]>
Date
3 months ago
Selected line
126
            />
Open commit View diff
126 />
same change fee4a2a

Fixing loading issue when putting Ledger behind domain

Full commit hash
fee4a2ae4600b4a17f643e09e505e3f7445dce1d
Author
Alex Nord <[email protected]>
Date
3 months ago
Selected line
127
          </label>
Open commit View diff
127 </label>
same change fee4a2a

Fixing loading issue when putting Ledger behind domain

Full commit hash
fee4a2ae4600b4a17f643e09e505e3f7445dce1d
Author
Alex Nord <[email protected]>
Date
3 months ago
Selected line
128
          <label className="field">
Open commit View diff
128 <label className="field">
same change fee4a2a

Fixing loading issue when putting Ledger behind domain

Full commit hash
fee4a2ae4600b4a17f643e09e505e3f7445dce1d
Author
Alex Nord <[email protected]>
Date
3 months ago
Selected line
129
            Markdown
Open commit View diff
129 Markdown
same change fee4a2a

Fixing loading issue when putting Ledger behind domain

Full commit hash
fee4a2ae4600b4a17f643e09e505e3f7445dce1d
Author
Alex Nord <[email protected]>
Date
3 months ago
Selected line
130
            {showMarkdownHelper ? <MarkdownComposerHint /> : null}
Open commit View diff
130 {showMarkdownHelper ? <MarkdownComposerHint /> : null}
same change fee4a2a

Fixing loading issue when putting Ledger behind domain

Full commit hash
fee4a2ae4600b4a17f643e09e505e3f7445dce1d
Author
Alex Nord <[email protected]>
Date
3 months ago
Selected line
131
            <textarea
Open commit View diff
131 <textarea
same change fee4a2a

Fixing loading issue when putting Ledger behind domain

Full commit hash
fee4a2ae4600b4a17f643e09e505e3f7445dce1d
Author
Alex Nord <[email protected]>
Date
3 months ago
Selected line
132
              className={`editor-textarea${isDialog ? " editor-textarea-dialog" : ""}${isPage ? " editor-textarea-page" : ""}`}
Open commit View diff
132 className={`editor-textarea${isDialog ? " editor-textarea-dialog" : ""}${isPage ? " editor-textarea-page" : ""}`}
same change fee4a2a

Fixing loading issue when putting Ledger behind domain

Full commit hash
fee4a2ae4600b4a17f643e09e505e3f7445dce1d
Author
Alex Nord <[email protected]>
Date
3 months ago
Selected line
133
              value={form.bodyMarkdown}
Open commit View diff
133 value={form.bodyMarkdown}
same change fee4a2a

Fixing loading issue when putting Ledger behind domain

Full commit hash
fee4a2ae4600b4a17f643e09e505e3f7445dce1d
Author
Alex Nord <[email protected]>
Date
3 months ago
Selected line
134
              onChange={(event) => setForm((current) => ({ ...current, bodyMarkdown: event.target.value }))}
Open commit View diff
134 onChange={(event) => setForm((current) => ({ ...current, bodyMarkdown: event.target.value }))}
same change fee4a2a

Fixing loading issue when putting Ledger behind domain

Full commit hash
fee4a2ae4600b4a17f643e09e505e3f7445dce1d
Author
Alex Nord <[email protected]>
Date
3 months ago
Selected line
135
              placeholder="Write Markdown, use / for blocks, or paste existing docs…"
Open commit View diff
135 placeholder="Write Markdown, use / for blocks, or paste existing docs…"
same change fee4a2a

Fixing loading issue when putting Ledger behind domain

Full commit hash
fee4a2ae4600b4a17f643e09e505e3f7445dce1d
Author
Alex Nord <[email protected]>
Date
3 months ago
Selected line
136
              aria-label="Document markdown body"
Open commit View diff
136 aria-label="Document markdown body"
same change fee4a2a

Fixing loading issue when putting Ledger behind domain

Full commit hash
fee4a2ae4600b4a17f643e09e505e3f7445dce1d
Author
Alex Nord <[email protected]>
Date
3 months ago
Selected line
137
            />
Open commit View diff
137 />
same change fee4a2a

Fixing loading issue when putting Ledger behind domain

Full commit hash
fee4a2ae4600b4a17f643e09e505e3f7445dce1d
Author
Alex Nord <[email protected]>
Date
3 months ago
Selected line
138
          </label>
Open commit View diff
138 </label>
same change fee4a2a

Fixing loading issue when putting Ledger behind domain

Full commit hash
fee4a2ae4600b4a17f643e09e505e3f7445dce1d
Author
Alex Nord <[email protected]>
Date
3 months ago
Selected line
139
        </div>
Open commit View diff
139 </div>
same change fee4a2a

Fixing loading issue when putting Ledger behind domain

Full commit hash
fee4a2ae4600b4a17f643e09e505e3f7445dce1d
Author
Alex Nord <[email protected]>
Date
3 months ago
Selected line
140
Open commit View diff
140
same change fee4a2a

Fixing loading issue when putting Ledger behind domain

Full commit hash
fee4a2ae4600b4a17f643e09e505e3f7445dce1d
Author
Alex Nord <[email protected]>
Date
3 months ago
Selected line
141
        <aside className={`composer-sidebar${isPage ? " rail-card" : ""}`}>
Open commit View diff
141 <aside className={`composer-sidebar${isPage ? " rail-card" : ""}`}>
same change fee4a2a

Fixing loading issue when putting Ledger behind domain

Full commit hash
fee4a2ae4600b4a17f643e09e505e3f7445dce1d
Author
Alex Nord <[email protected]>
Date
3 months ago
Selected line
142
          <label className="field">
Open commit View diff
142 <label className="field">
same change fee4a2a

Fixing loading issue when putting Ledger behind domain

Full commit hash
fee4a2ae4600b4a17f643e09e505e3f7445dce1d
Author
Alex Nord <[email protected]>
Date
3 months ago
Selected line
143
            Space
Open commit View diff
143 Space
same change fee4a2a

Fixing loading issue when putting Ledger behind domain

Full commit hash
fee4a2ae4600b4a17f643e09e505e3f7445dce1d
Author
Alex Nord <[email protected]>
Date
3 months ago
Selected line
144
            <select
Open commit View diff
144 <select
same change fee4a2a

Fixing loading issue when putting Ledger behind domain

Full commit hash
fee4a2ae4600b4a17f643e09e505e3f7445dce1d
Author
Alex Nord <[email protected]>
Date
3 months ago
Selected line
145
              value={form.spaceId}
Open commit View diff
145 value={form.spaceId}
same change fee4a2a

Fixing loading issue when putting Ledger behind domain

Full commit hash
fee4a2ae4600b4a17f643e09e505e3f7445dce1d
Author
Alex Nord <[email protected]>
Date
3 months ago
Selected line
146
              onChange={(event) => setForm((current) => ({ ...current, spaceId: event.target.value }))}
Open commit View diff
146 onChange={(event) => setForm((current) => ({ ...current, spaceId: event.target.value }))}
same change fee4a2a

Fixing loading issue when putting Ledger behind domain

Full commit hash
fee4a2ae4600b4a17f643e09e505e3f7445dce1d
Author
Alex Nord <[email protected]>
Date
3 months ago
Selected line
147
            >
Open commit View diff
147 >
same change fee4a2a

Fixing loading issue when putting Ledger behind domain

Full commit hash
fee4a2ae4600b4a17f643e09e505e3f7445dce1d
Author
Alex Nord <[email protected]>
Date
3 months ago
Selected line
148
              {spaces.map((space) => (
Open commit View diff
148 {spaces.map((space) => (
same change fee4a2a

Fixing loading issue when putting Ledger behind domain

Full commit hash
fee4a2ae4600b4a17f643e09e505e3f7445dce1d
Author
Alex Nord <[email protected]>
Date
3 months ago
Selected line
149
                <option key={space.id} value={space.id}>
Open commit View diff
149 <option key={space.id} value={space.id}>
same change fee4a2a

Fixing loading issue when putting Ledger behind domain

Full commit hash
fee4a2ae4600b4a17f643e09e505e3f7445dce1d
Author
Alex Nord <[email protected]>
Date
3 months ago
Selected line
150
                  {space.name}
Open commit View diff
150 {space.name}
same change fee4a2a

Fixing loading issue when putting Ledger behind domain

Full commit hash
fee4a2ae4600b4a17f643e09e505e3f7445dce1d
Author
Alex Nord <[email protected]>
Date
3 months ago
Selected line
151
                </option>
Open commit View diff
151 </option>
same change fee4a2a

Fixing loading issue when putting Ledger behind domain

Full commit hash
fee4a2ae4600b4a17f643e09e505e3f7445dce1d
Author
Alex Nord <[email protected]>
Date
3 months ago
Selected line
152
              ))}
Open commit View diff
152 ))}
same change fee4a2a

Fixing loading issue when putting Ledger behind domain

Full commit hash
fee4a2ae4600b4a17f643e09e505e3f7445dce1d
Author
Alex Nord <[email protected]>
Date
3 months ago
Selected line
153
            </select>
Open commit View diff
153 </select>
same change fee4a2a

Fixing loading issue when putting Ledger behind domain

Full commit hash
fee4a2ae4600b4a17f643e09e505e3f7445dce1d
Author
Alex Nord <[email protected]>
Date
3 months ago
Selected line
154
          </label>
Open commit View diff
154 </label>
same change fee4a2a

Fixing loading issue when putting Ledger behind domain

Full commit hash
fee4a2ae4600b4a17f643e09e505e3f7445dce1d
Author
Alex Nord <[email protected]>
Date
3 months ago
Selected line
155
          <label className="field">
Open commit View diff
155 <label className="field">
same change fee4a2a

Fixing loading issue when putting Ledger behind domain

Full commit hash
fee4a2ae4600b4a17f643e09e505e3f7445dce1d
Author
Alex Nord <[email protected]>
Date
3 months ago
Selected line
156
            Slug
Open commit View diff
156 Slug
same change fee4a2a

Fixing loading issue when putting Ledger behind domain

Full commit hash
fee4a2ae4600b4a17f643e09e505e3f7445dce1d
Author
Alex Nord <[email protected]>
Date
3 months ago
Selected line
157
            <input
Open commit View diff
157 <input
same change fee4a2a

Fixing loading issue when putting Ledger behind domain

Full commit hash
fee4a2ae4600b4a17f643e09e505e3f7445dce1d
Author
Alex Nord <[email protected]>
Date
3 months ago
Selected line
158
              value={form.slug}
Open commit View diff
158 value={form.slug}
same change fee4a2a

Fixing loading issue when putting Ledger behind domain

Full commit hash
fee4a2ae4600b4a17f643e09e505e3f7445dce1d
Author
Alex Nord <[email protected]>
Date
3 months ago
Selected line
159
              placeholder="generated-from-title"
Open commit View diff
159 placeholder="generated-from-title"
same change fee4a2a

Fixing loading issue when putting Ledger behind domain

Full commit hash
fee4a2ae4600b4a17f643e09e505e3f7445dce1d
Author
Alex Nord <[email protected]>
Date
3 months ago
Selected line
160
              onChange={(event) => setForm((current) => ({ ...current, slug: event.target.value }))}
Open commit View diff
160 onChange={(event) => setForm((current) => ({ ...current, slug: event.target.value }))}
same change fee4a2a

Fixing loading issue when putting Ledger behind domain

Full commit hash
fee4a2ae4600b4a17f643e09e505e3f7445dce1d
Author
Alex Nord <[email protected]>
Date
3 months ago
Selected line
161
            />
Open commit View diff
161 />
same change fee4a2a

Fixing loading issue when putting Ledger behind domain

Full commit hash
fee4a2ae4600b4a17f643e09e505e3f7445dce1d
Author
Alex Nord <[email protected]>
Date
3 months ago
Selected line
162
          </label>
Open commit View diff
162 </label>
same change fee4a2a

Fixing loading issue when putting Ledger behind domain

Full commit hash
fee4a2ae4600b4a17f643e09e505e3f7445dce1d
Author
Alex Nord <[email protected]>
Date
3 months ago
Selected line
163
          <label className="field">
Open commit View diff
163 <label className="field">
same change fee4a2a

Fixing loading issue when putting Ledger behind domain

Full commit hash
fee4a2ae4600b4a17f643e09e505e3f7445dce1d
Author
Alex Nord <[email protected]>
Date
3 months ago
Selected line
164
            Excerpt
Open commit View diff
164 Excerpt
same change fee4a2a

Fixing loading issue when putting Ledger behind domain

Full commit hash
fee4a2ae4600b4a17f643e09e505e3f7445dce1d
Author
Alex Nord <[email protected]>
Date
3 months ago
Selected line
165
            <input
Open commit View diff
165 <input
same change fee4a2a

Fixing loading issue when putting Ledger behind domain

Full commit hash
fee4a2ae4600b4a17f643e09e505e3f7445dce1d
Author
Alex Nord <[email protected]>
Date
3 months ago
Selected line
166
              value={form.excerpt}
Open commit View diff
166 value={form.excerpt}
same change fee4a2a

Fixing loading issue when putting Ledger behind domain

Full commit hash
fee4a2ae4600b4a17f643e09e505e3f7445dce1d
Author
Alex Nord <[email protected]>
Date
3 months ago
Selected line
167
              placeholder="Short summary shown in lists"
Open commit View diff
167 placeholder="Short summary shown in lists"
same change fee4a2a

Fixing loading issue when putting Ledger behind domain

Full commit hash
fee4a2ae4600b4a17f643e09e505e3f7445dce1d
Author
Alex Nord <[email protected]>
Date
3 months ago
Selected line
168
              onChange={(event) => setForm((current) => ({ ...current, excerpt: event.target.value }))}
Open commit View diff
168 onChange={(event) => setForm((current) => ({ ...current, excerpt: event.target.value }))}
same change fee4a2a

Fixing loading issue when putting Ledger behind domain

Full commit hash
fee4a2ae4600b4a17f643e09e505e3f7445dce1d
Author
Alex Nord <[email protected]>
Date
3 months ago
Selected line
169
            />
Open commit View diff
169 />
same change fee4a2a

Fixing loading issue when putting Ledger behind domain

Full commit hash
fee4a2ae4600b4a17f643e09e505e3f7445dce1d
Author
Alex Nord <[email protected]>
Date
3 months ago
Selected line
170
          </label>
Open commit View diff
170 </label>
same change fee4a2a

Fixing loading issue when putting Ledger behind domain

Full commit hash
fee4a2ae4600b4a17f643e09e505e3f7445dce1d
Author
Alex Nord <[email protected]>
Date
3 months ago
Selected line
171
          <div className="field-grid">
Open commit View diff
171 <div className="field-grid">
same change fee4a2a

Fixing loading issue when putting Ledger behind domain

Full commit hash
fee4a2ae4600b4a17f643e09e505e3f7445dce1d
Author
Alex Nord <[email protected]>
Date
3 months ago
Selected line
172
            <label className="field">
Open commit View diff
172 <label className="field">
same change fee4a2a

Fixing loading issue when putting Ledger behind domain

Full commit hash
fee4a2ae4600b4a17f643e09e505e3f7445dce1d
Author
Alex Nord <[email protected]>
Date
3 months ago
Selected line
173
              Visibility
Open commit View diff
173 Visibility
same change fee4a2a

Fixing loading issue when putting Ledger behind domain

Full commit hash
fee4a2ae4600b4a17f643e09e505e3f7445dce1d
Author
Alex Nord <[email protected]>
Date
3 months ago
Selected line
174
              <select
Open commit View diff
174 <select
same change fee4a2a

Fixing loading issue when putting Ledger behind domain

Full commit hash
fee4a2ae4600b4a17f643e09e505e3f7445dce1d
Author
Alex Nord <[email protected]>
Date
3 months ago
Selected line
175
                value={form.visibility}
Open commit View diff
175 value={form.visibility}
same change fee4a2a

Fixing loading issue when putting Ledger behind domain

Full commit hash
fee4a2ae4600b4a17f643e09e505e3f7445dce1d
Author
Alex Nord <[email protected]>
Date
3 months ago
Selected line
176
                onChange={(event) => setForm((current) => ({ ...current, visibility: event.target.value as "public" | "internal" | "restricted" }))}
Open commit View diff
176 onChange={(event) => setForm((current) => ({ ...current, visibility: event.target.value as "public" | "internal" | "restricted" }))}
same change fee4a2a

Fixing loading issue when putting Ledger behind domain

Full commit hash
fee4a2ae4600b4a17f643e09e505e3f7445dce1d
Author
Alex Nord <[email protected]>
Date
3 months ago
Selected line
177
              >
Open commit View diff
177 >
same change fee4a2a

Fixing loading issue when putting Ledger behind domain

Full commit hash
fee4a2ae4600b4a17f643e09e505e3f7445dce1d
Author
Alex Nord <[email protected]>
Date
3 months ago
Selected line
178
                <option value="public">Public</option>
Open commit View diff
178 <option value="public">Public</option>
same change fee4a2a

Fixing loading issue when putting Ledger behind domain

Full commit hash
fee4a2ae4600b4a17f643e09e505e3f7445dce1d
Author
Alex Nord <[email protected]>
Date
3 months ago
Selected line
179
                <option value="internal">Internal</option>
Open commit View diff
179 <option value="internal">Internal</option>
same change fee4a2a

Fixing loading issue when putting Ledger behind domain

Full commit hash
fee4a2ae4600b4a17f643e09e505e3f7445dce1d
Author
Alex Nord <[email protected]>
Date
3 months ago
Selected line
180
                <option value="restricted">Restricted</option>
Open commit View diff
180 <option value="restricted">Restricted</option>
same change fee4a2a

Fixing loading issue when putting Ledger behind domain

Full commit hash
fee4a2ae4600b4a17f643e09e505e3f7445dce1d
Author
Alex Nord <[email protected]>
Date
3 months ago
Selected line
181
              </select>
Open commit View diff
181 </select>
same change fee4a2a

Fixing loading issue when putting Ledger behind domain

Full commit hash
fee4a2ae4600b4a17f643e09e505e3f7445dce1d
Author
Alex Nord <[email protected]>
Date
3 months ago
Selected line
182
            </label>
Open commit View diff
182 </label>
same change fee4a2a

Fixing loading issue when putting Ledger behind domain

Full commit hash
fee4a2ae4600b4a17f643e09e505e3f7445dce1d
Author
Alex Nord <[email protected]>
Date
3 months ago
Selected line
183
            <label className="field">
Open commit View diff
183 <label className="field">
same change fee4a2a

Fixing loading issue when putting Ledger behind domain

Full commit hash
fee4a2ae4600b4a17f643e09e505e3f7445dce1d
Author
Alex Nord <[email protected]>
Date
3 months ago
Selected line
184
              State
Open commit View diff
184 State
same change fee4a2a

Fixing loading issue when putting Ledger behind domain

Full commit hash
fee4a2ae4600b4a17f643e09e505e3f7445dce1d
Author
Alex Nord <[email protected]>
Date
3 months ago
Selected line
185
              <select
Open commit View diff
185 <select
same change fee4a2a

Fixing loading issue when putting Ledger behind domain

Full commit hash
fee4a2ae4600b4a17f643e09e505e3f7445dce1d
Author
Alex Nord <[email protected]>
Date
3 months ago
Selected line
186
                value={form.state}
Open commit View diff
186 value={form.state}
same change fee4a2a

Fixing loading issue when putting Ledger behind domain

Full commit hash
fee4a2ae4600b4a17f643e09e505e3f7445dce1d
Author
Alex Nord <[email protected]>
Date
3 months ago
Selected line
187
                onChange={(event) => setForm((current) => ({ ...current, state: event.target.value as "draft" | "published" }))}
Open commit View diff
187 onChange={(event) => setForm((current) => ({ ...current, state: event.target.value as "draft" | "published" }))}
same change fee4a2a

Fixing loading issue when putting Ledger behind domain

Full commit hash
fee4a2ae4600b4a17f643e09e505e3f7445dce1d
Author
Alex Nord <[email protected]>
Date
3 months ago
Selected line
188
              >
Open commit View diff
188 >
same change fee4a2a

Fixing loading issue when putting Ledger behind domain

Full commit hash
fee4a2ae4600b4a17f643e09e505e3f7445dce1d
Author
Alex Nord <[email protected]>
Date
3 months ago
Selected line
189
                <option value="draft">Draft</option>
Open commit View diff
189 <option value="draft">Draft</option>
same change fee4a2a

Fixing loading issue when putting Ledger behind domain

Full commit hash
fee4a2ae4600b4a17f643e09e505e3f7445dce1d
Author
Alex Nord <[email protected]>
Date
3 months ago
Selected line
190
                <option value="published">Published</option>
Open commit View diff
190 <option value="published">Published</option>
same change fee4a2a

Fixing loading issue when putting Ledger behind domain

Full commit hash
fee4a2ae4600b4a17f643e09e505e3f7445dce1d
Author
Alex Nord <[email protected]>
Date
3 months ago
Selected line
191
              </select>
Open commit View diff
191 </select>
same change fee4a2a

Fixing loading issue when putting Ledger behind domain

Full commit hash
fee4a2ae4600b4a17f643e09e505e3f7445dce1d
Author
Alex Nord <[email protected]>
Date
3 months ago
Selected line
192
            </label>
Open commit View diff
192 </label>
same change fee4a2a

Fixing loading issue when putting Ledger behind domain

Full commit hash
fee4a2ae4600b4a17f643e09e505e3f7445dce1d
Author
Alex Nord <[email protected]>
Date
3 months ago
Selected line
193
          </div>
Open commit View diff
193 </div>
same change fee4a2a

Fixing loading issue when putting Ledger behind domain

Full commit hash
fee4a2ae4600b4a17f643e09e505e3f7445dce1d
Author
Alex Nord <[email protected]>
Date
3 months ago
Selected line
194
          <label className="field">
Open commit View diff
194 <label className="field">
same change fee4a2a

Fixing loading issue when putting Ledger behind domain

Full commit hash
fee4a2ae4600b4a17f643e09e505e3f7445dce1d
Author
Alex Nord <[email protected]>
Date
3 months ago
Selected line
195
            Tags
Open commit View diff
195 Tags
same change fee4a2a

Fixing loading issue when putting Ledger behind domain

Full commit hash
fee4a2ae4600b4a17f643e09e505e3f7445dce1d
Author
Alex Nord <[email protected]>
Date
3 months ago
Selected line
196
            <input
Open commit View diff
196 <input
same change fee4a2a

Fixing loading issue when putting Ledger behind domain

Full commit hash
fee4a2ae4600b4a17f643e09e505e3f7445dce1d
Author
Alex Nord <[email protected]>
Date
3 months ago
Selected line
197
              value={tagInput}
Open commit View diff
197 value={tagInput}
same change fee4a2a

Fixing loading issue when putting Ledger behind domain

Full commit hash
fee4a2ae4600b4a17f643e09e505e3f7445dce1d
Author
Alex Nord <[email protected]>
Date
3 months ago
Selected line
198
              placeholder="comma,separated,tags"
Open commit View diff
198 placeholder="comma,separated,tags"
same change fee4a2a

Fixing loading issue when putting Ledger behind domain

Full commit hash
fee4a2ae4600b4a17f643e09e505e3f7445dce1d
Author
Alex Nord <[email protected]>
Date
3 months ago
Selected line
199
              onChange={(event) => {
Open commit View diff
199 onChange={(event) => {
same change fee4a2a

Fixing loading issue when putting Ledger behind domain

Full commit hash
fee4a2ae4600b4a17f643e09e505e3f7445dce1d
Author
Alex Nord <[email protected]>
Date
3 months ago
Selected line
200
                const value = event.target.value;
Open commit View diff
200 const value = event.target.value;
same change fee4a2a

Fixing loading issue when putting Ledger behind domain

Full commit hash
fee4a2ae4600b4a17f643e09e505e3f7445dce1d
Author
Alex Nord <[email protected]>
Date
3 months ago
Selected line
201
                setTagInput(value);
Open commit View diff
201 setTagInput(value);
same change fee4a2a

Fixing loading issue when putting Ledger behind domain

Full commit hash
fee4a2ae4600b4a17f643e09e505e3f7445dce1d
Author
Alex Nord <[email protected]>
Date
3 months ago
Selected line
202
                setForm((current) => ({
Open commit View diff
202 setForm((current) => ({
same change fee4a2a

Fixing loading issue when putting Ledger behind domain

Full commit hash
fee4a2ae4600b4a17f643e09e505e3f7445dce1d
Author
Alex Nord <[email protected]>
Date
3 months ago
Selected line
203
                  ...current,
Open commit View diff
203 ...current,
same change fee4a2a

Fixing loading issue when putting Ledger behind domain

Full commit hash
fee4a2ae4600b4a17f643e09e505e3f7445dce1d
Author
Alex Nord <[email protected]>
Date
3 months ago
Selected line
204
                  tagNames: value
Open commit View diff
204 tagNames: value
same change fee4a2a

Fixing loading issue when putting Ledger behind domain

Full commit hash
fee4a2ae4600b4a17f643e09e505e3f7445dce1d
Author
Alex Nord <[email protected]>
Date
3 months ago
Selected line
205
                    .split(",")
Open commit View diff
205 .split(",")
same change fee4a2a

Fixing loading issue when putting Ledger behind domain

Full commit hash
fee4a2ae4600b4a17f643e09e505e3f7445dce1d
Author
Alex Nord <[email protected]>
Date
3 months ago
Selected line
206
                    .map((tag) => tag.trim())
Open commit View diff
206 .map((tag) => tag.trim())
same change fee4a2a

Fixing loading issue when putting Ledger behind domain

Full commit hash
fee4a2ae4600b4a17f643e09e505e3f7445dce1d
Author
Alex Nord <[email protected]>
Date
3 months ago
Selected line
207
                    .filter(Boolean)
Open commit View diff
207 .filter(Boolean)
same change fee4a2a

Fixing loading issue when putting Ledger behind domain

Full commit hash
fee4a2ae4600b4a17f643e09e505e3f7445dce1d
Author
Alex Nord <[email protected]>
Date
3 months ago
Selected line
208
                }));
Open commit View diff
208 }));
same change fee4a2a

Fixing loading issue when putting Ledger behind domain

Full commit hash
fee4a2ae4600b4a17f643e09e505e3f7445dce1d
Author
Alex Nord <[email protected]>
Date
3 months ago
Selected line
209
              }}
Open commit View diff
209 }}
same change fee4a2a

Fixing loading issue when putting Ledger behind domain

Full commit hash
fee4a2ae4600b4a17f643e09e505e3f7445dce1d
Author
Alex Nord <[email protected]>
Date
3 months ago
Selected line
210
            />
Open commit View diff
210 />
same change fee4a2a

Fixing loading issue when putting Ledger behind domain

Full commit hash
fee4a2ae4600b4a17f643e09e505e3f7445dce1d
Author
Alex Nord <[email protected]>
Date
3 months ago
Selected line
211
          </label>
Open commit View diff
211 </label>
same change fee4a2a

Fixing loading issue when putting Ledger behind domain

Full commit hash
fee4a2ae4600b4a17f643e09e505e3f7445dce1d
Author
Alex Nord <[email protected]>
Date
3 months ago
Selected line
212
          <div className="composer-toolbar">
Open commit View diff
212 <div className="composer-toolbar">
same change fee4a2a

Fixing loading issue when putting Ledger behind domain

Full commit hash
fee4a2ae4600b4a17f643e09e505e3f7445dce1d
Author
Alex Nord <[email protected]>
Date
3 months ago
Selected line
213
            <button type="button" onClick={() => void submit("draft")}>
Open commit View diff
213 <button type="button" onClick={() => void submit("draft")}>
same change fee4a2a

Fixing loading issue when putting Ledger behind domain

Full commit hash
fee4a2ae4600b4a17f643e09e505e3f7445dce1d
Author
Alex Nord <[email protected]>
Date
3 months ago
Selected line
214
              {mode === "edit" ? "Save draft" : "Create draft"}
Open commit View diff
214 {mode === "edit" ? "Save draft" : "Create draft"}
same change fee4a2a

Fixing loading issue when putting Ledger behind domain

Full commit hash
fee4a2ae4600b4a17f643e09e505e3f7445dce1d
Author
Alex Nord <[email protected]>
Date
3 months ago
Selected line
215
            </button>
Open commit View diff
215 </button>
same change fee4a2a

Fixing loading issue when putting Ledger behind domain

Full commit hash
fee4a2ae4600b4a17f643e09e505e3f7445dce1d
Author
Alex Nord <[email protected]>
Date
3 months ago
Selected line
216
            <button type="button" className="button-secondary" onClick={() => void submit("published")}>
Open commit View diff
216 <button type="button" className="button-secondary" onClick={() => void submit("published")}>
same change fee4a2a

Fixing loading issue when putting Ledger behind domain

Full commit hash
fee4a2ae4600b4a17f643e09e505e3f7445dce1d
Author
Alex Nord <[email protected]>
Date
3 months ago
Selected line
217
              {canPublish || mode === "edit" ? "Publish" : "Create and publish"}
Open commit View diff
217 {canPublish || mode === "edit" ? "Publish" : "Create and publish"}
same change fee4a2a

Fixing loading issue when putting Ledger behind domain

Full commit hash
fee4a2ae4600b4a17f643e09e505e3f7445dce1d
Author
Alex Nord <[email protected]>
Date
3 months ago
Selected line
218
            </button>
Open commit View diff
218 </button>
same change fee4a2a

Fixing loading issue when putting Ledger behind domain

Full commit hash
fee4a2ae4600b4a17f643e09e505e3f7445dce1d
Author
Alex Nord <[email protected]>
Date
3 months ago
Selected line
219
            {status ? <p className="muted">{status}</p> : null}
Open commit View diff
219 {status ? <p className="muted">{status}</p> : null}
same change fee4a2a

Fixing loading issue when putting Ledger behind domain

Full commit hash
fee4a2ae4600b4a17f643e09e505e3f7445dce1d
Author
Alex Nord <[email protected]>
Date
3 months ago
Selected line
220
          </div>
Open commit View diff
220 </div>
same change fee4a2a

Fixing loading issue when putting Ledger behind domain

Full commit hash
fee4a2ae4600b4a17f643e09e505e3f7445dce1d
Author
Alex Nord <[email protected]>
Date
3 months ago
Selected line
221
        </aside>
Open commit View diff
221 </aside>
Alex Nord 3 months ago 9693751

Redesign the web app into a docs-first knowledge base UI

Full commit hash
9693751c4efa74f02fcfa752eedbe80955e1f2ee
Author
Alex Nord <[email protected]>
Date
3 months ago
Selected line
222
      </div>
Open commit View diff
222 </div>
Alex Nord 3 months ago 4527dbd

First commit v2

Full commit hash
4527dbdfcb1470a5c2476e2a5208f7bf48cc9d27
Author
Alex Nord <[email protected]>
Date
3 months ago
Selected line
223
    </section>
Open commit View diff
223 </section>
same change 4527dbd

First commit v2

Full commit hash
4527dbdfcb1470a5c2476e2a5208f7bf48cc9d27
Author
Alex Nord <[email protected]>
Date
3 months ago
Selected line
224
  );
Open commit View diff
224 );
same change 4527dbd

First commit v2

Full commit hash
4527dbdfcb1470a5c2476e2a5208f7bf48cc9d27
Author
Alex Nord <[email protected]>
Date
3 months ago
Selected line
225
}
Open commit View diff
225 }