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/PageSidebar.tsx

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

PageSidebar.tsx on main
Author Date Commit Line Code
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
1
import { useMemo, useState } from "react";
Open commit View diff
1 import { useMemo, useState } from "react";
same change 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
2
import { Link, useLocation } from "react-router-dom";
Open commit View diff
2 import { Link, useLocation } from "react-router-dom";
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 type { PageSummary } from "@ledger/shared";
Open commit View diff
3 import type { PageSummary } from "@ledger/shared";
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
4
import { Icon } from "./Icon";
Open commit View diff
4 import { Icon } from "./Icon";
same change 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
5
Open commit View diff
5
same change 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
6
type Space = {
Open commit View diff
6 type Space = {
same change 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
7
  id: string;
Open commit View diff
7 id: string;
same change 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
8
  name: string;
Open commit View diff
8 name: string;
same change 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
9
  key: string;
Open commit View diff
9 key: string;
same change 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
10
  visibility: string;
Open commit View diff
10 visibility: string;
same change 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
11
};
Open commit View diff
11 };
same change 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
12
Open commit View diff
12
same change 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
13
type PageNode = PageSummary & { children: PageNode[] };
Open commit View diff
13 type PageNode = PageSummary & { children: PageNode[] };
same change 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
14
Open commit View diff
14
same change 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
15
function closeSidebarOnMobile(onClose: () => void) {
Open commit View diff
15 function closeSidebarOnMobile(onClose: () => void) {
same change 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
16
  if (window.innerWidth <= 920) {
Open commit View diff
16 if (window.innerWidth <= 920) {
same change 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
17
    onClose();
Open commit View diff
17 onClose();
same change 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
18
  }
Open commit View diff
18 }
same change 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
19
}
Open commit View diff
19 }
same change 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
20
Open commit View diff
20
same change 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
21
function buildTree(pages: PageSummary[]) {
Open commit View diff
21 function buildTree(pages: PageSummary[]) {
same change 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
22
  const byId = new Map<string, PageNode>();
Open commit View diff
22 const byId = new Map<string, PageNode>();
same change 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
23
  const roots: PageNode[] = [];
Open commit View diff
23 const roots: PageNode[] = [];
same change 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
24
Open commit View diff
24
same change 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
25
  for (const page of pages) {
Open commit View diff
25 for (const page of pages) {
same change 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
26
    byId.set(page.id, { ...page, children: [] });
Open commit View diff
26 byId.set(page.id, { ...page, children: [] });
same change 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
27
  }
Open commit View diff
27 }
same change 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
28
Open commit View diff
28
same change 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
29
  for (const node of byId.values()) {
Open commit View diff
29 for (const node of byId.values()) {
same change 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
30
    if (node.parentPageId && byId.has(node.parentPageId)) {
Open commit View diff
30 if (node.parentPageId && byId.has(node.parentPageId)) {
same change 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
31
      byId.get(node.parentPageId)!.children.push(node);
Open commit View diff
31 byId.get(node.parentPageId)!.children.push(node);
same change 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
32
    } else {
Open commit View diff
32 } else {
same change 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
33
      roots.push(node);
Open commit View diff
33 roots.push(node);
same change 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
34
    }
Open commit View diff
34 }
same change 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
35
  }
Open commit View diff
35 }
same change 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
36
Open commit View diff
36
same change 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
37
  const sortNodes = (nodes: PageNode[]) => {
Open commit View diff
37 const sortNodes = (nodes: PageNode[]) => {
same change 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
38
    nodes.sort((a, b) => a.title.localeCompare(b.title));
Open commit View diff
38 nodes.sort((a, b) => a.title.localeCompare(b.title));
same change 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
39
    nodes.forEach((node) => sortNodes(node.children));
Open commit View diff
39 nodes.forEach((node) => sortNodes(node.children));
same change 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
40
  };
Open commit View diff
40 };
same change 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
41
Open commit View diff
41
same change 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
42
  sortNodes(roots);
Open commit View diff
42 sortNodes(roots);
same change 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
43
  return roots;
Open commit View diff
43 return roots;
same change 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
44
}
Open commit View diff
44 }
same change 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
45
Open commit View diff
45
same change 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
46
function TreeNode({
Open commit View diff
46 function TreeNode({
same change 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
47
  node,
Open commit View diff
47 node,
same change 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
48
  depth,
Open commit View diff
48 depth,
same change 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
49
  currentSlug,
Open commit View diff
49 currentSlug,
same change 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
50
  onClose
Open commit View diff
50 onClose
same change 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
51
}: {
Open commit View diff
51 }: {
same change 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
52
  node: PageNode;
Open commit View diff
52 node: PageNode;
same change 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
53
  depth: number;
Open commit View diff
53 depth: number;
same change 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
54
  currentSlug: string | undefined;
Open commit View diff
54 currentSlug: string | undefined;
same change 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
55
  onClose: () => void;
Open commit View diff
55 onClose: () => void;
same change 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
56
}) {
Open commit View diff
56 }) {
same change 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
57
  const [isOpen, setIsOpen] = useState(true);
Open commit View diff
57 const [isOpen, setIsOpen] = useState(true);
same change 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
58
  const isActive = node.slug === currentSlug;
Open commit View diff
58 const isActive = node.slug === currentSlug;
same change 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
59
  const hasChildren = node.children.length > 0;
Open commit View diff
59 const hasChildren = node.children.length > 0;
Alex Nord 3 months ago 4527dbd

First commit v2

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

First commit v2

Full commit hash
4527dbdfcb1470a5c2476e2a5208f7bf48cc9d27
Author
Alex Nord <[email protected]>
Date
3 months ago
Selected line
61
  return (
Open commit View diff
61 return (
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
62
    <div className="tree-node">
Open commit View diff
62 <div className="tree-node">
same change 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
63
      <div className={`tree-item${isActive ? " is-active" : ""}`} style={{ paddingLeft: `${depth * 0.85 + 0.75}rem` }}>
Open commit View diff
63 <div className={`tree-item${isActive ? " is-active" : ""}`} style={{ paddingLeft: `${depth * 0.85 + 0.75}rem` }}>
same change 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
64
        {hasChildren ? (
Open commit View diff
64 {hasChildren ? (
same change 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
65
          <button
Open commit View diff
65 <button
same change 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
66
            type="button"
Open commit View diff
66 type="button"
same change 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
67
            className="tree-toggle"
Open commit View diff
67 className="tree-toggle"
same change 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
68
            onClick={() => setIsOpen((value) => !value)}
Open commit View diff
68 onClick={() => setIsOpen((value) => !value)}
same change 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
69
            aria-label={isOpen ? "Collapse section" : "Expand section"}
Open commit View diff
69 aria-label={isOpen ? "Collapse section" : "Expand section"}
same change 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
70
          >
Open commit View diff
70 >
same change 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
71
            <Icon name={isOpen ? "chevronDown" : "chevronRight"} className="icon icon-sm" />
Open commit View diff
71 <Icon name={isOpen ? "chevronDown" : "chevronRight"} className="icon icon-sm" />
same change 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
72
          </button>
Open commit View diff
72 </button>
same change 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
73
        ) : (
Open commit View diff
73 ) : (
same change 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
74
          <span className="tree-spacer" />
Open commit View diff
74 <span className="tree-spacer" />
same change 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
75
        )}
Open commit View diff
75 )}
same change 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
76
        <Link to={`/page/${node.slug}`} className="tree-link" onClick={() => closeSidebarOnMobile(onClose)}>
Open commit View diff
76 <Link to={`/page/${node.slug}`} className="tree-link" onClick={() => closeSidebarOnMobile(onClose)}>
same change 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
77
          <span className="tree-link__title">{node.title}</span>
Open commit View diff
77 <span className="tree-link__title">{node.title}</span>
same change 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
78
          <span className={`badge badge-${node.visibility}`}>{node.visibility}</span>
Open commit View diff
78 <span className={`badge badge-${node.visibility}`}>{node.visibility}</span>
same change 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
79
        </Link>
Open commit View diff
79 </Link>
Alex Nord 3 months ago 4527dbd

First commit v2

Full commit hash
4527dbdfcb1470a5c2476e2a5208f7bf48cc9d27
Author
Alex Nord <[email protected]>
Date
3 months ago
Selected line
80
      </div>
Open commit View diff
80 </div>
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
81
      {hasChildren && isOpen ? (
Open commit View diff
81 {hasChildren && isOpen ? (
same change 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
82
        <div className="tree-children">
Open commit View diff
82 <div className="tree-children">
same change 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
83
          {node.children.map((child) => (
Open commit View diff
83 {node.children.map((child) => (
same change 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
84
            <TreeNode key={child.id} node={child} depth={depth + 1} currentSlug={currentSlug} onClose={onClose} />
Open commit View diff
84 <TreeNode key={child.id} node={child} depth={depth + 1} currentSlug={currentSlug} onClose={onClose} />
same change 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
85
          ))}
Open commit View diff
85 ))}
same change 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
86
        </div>
Open commit View diff
86 </div>
same change 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
87
      ) : null}
Open commit View diff
87 ) : null}
same change 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
88
    </div>
Open commit View diff
88 </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
89
  );
Open commit View diff
89 );
same change 4527dbd

First commit v2

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

First commit v2

Full commit hash
4527dbdfcb1470a5c2476e2a5208f7bf48cc9d27
Author
Alex Nord <[email protected]>
Date
3 months ago
Selected line
91
Open commit View diff
91
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
92
export function PageSidebar({
Open commit View diff
92 export function PageSidebar({
same change 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
93
  spaces,
Open commit View diff
93 spaces,
same change 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
94
  pagesBySpace,
Open commit View diff
94 pagesBySpace,
same change 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
95
  currentSpaceKey,
Open commit View diff
95 currentSpaceKey,
same change 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
96
  currentSlug,
Open commit View diff
96 currentSlug,
same change 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
97
  user,
Open commit View diff
97 user,
same change 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
98
  isOpen,
Open commit View diff
98 isOpen,
same change 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
99
  onClose
Open commit View diff
99 onClose
same change 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
100
}: {
Open commit View diff
100 }: {
same change 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
101
  spaces: Space[];
Open commit View diff
101 spaces: Space[];
same change 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
102
  pagesBySpace: Record<string, PageSummary[]>;
Open commit View diff
102 pagesBySpace: Record<string, PageSummary[]>;
same change 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
103
  currentSpaceKey?: string;
Open commit View diff
103 currentSpaceKey?: string;
same change 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
104
  currentSlug?: string;
Open commit View diff
104 currentSlug?: string;
same change 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
  user: { displayName: string; role: string } | null;
Open commit View diff
105 user: { displayName: string; role: string } | null;
same change 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
106
  isOpen: boolean;
Open commit View diff
106 isOpen: boolean;
same change 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
107
  onClose: () => void;
Open commit View diff
107 onClose: () => void;
same change 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
108
}) {
Open commit View diff
108 }) {
same change 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
109
  const location = useLocation();
Open commit View diff
109 const location = useLocation();
same change 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
110
  const [collapsedSpaces, setCollapsedSpaces] = useState<Record<string, boolean>>({});
Open commit View diff
110 const [collapsedSpaces, setCollapsedSpaces] = useState<Record<string, boolean>>({});
same change 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
111
Open commit View diff
111
same change 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
112
  const recentPages = useMemo(
Open commit View diff
112 const recentPages = useMemo(
same change 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
113
    () =>
Open commit View diff
113 () =>
same change 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
114
      Object.values(pagesBySpace)
Open commit View diff
114 Object.values(pagesBySpace)
same change 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
115
        .flat()
Open commit View diff
115 .flat()
same change 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
        .sort((a, b) => Date.parse(b.updatedAt) - Date.parse(a.updatedAt))
Open commit View diff
116 .sort((a, b) => Date.parse(b.updatedAt) - Date.parse(a.updatedAt))
same change 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
117
        .slice(0, 5),
Open commit View diff
117 .slice(0, 5),
same change 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
118
    [pagesBySpace]
Open commit View diff
118 [pagesBySpace]
same change 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
119
  );
Open commit View diff
119 );
same change 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
120
Open commit View diff
120
same change 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
121
  return (
Open commit View diff
121 return (
same change 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
122
    <>
Open commit View diff
122 <>
same change 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
123
      <div className={`sidebar-overlay${isOpen ? " is-open" : ""}`} onClick={onClose} />
Open commit View diff
123 <div className={`sidebar-overlay${isOpen ? " is-open" : ""}`} onClick={onClose} />
same change 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
124
      <aside className={`sidebar${isOpen ? " is-open" : ""}`}>
Open commit View diff
124 <aside className={`sidebar${isOpen ? " is-open" : ""}`}>
same change 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
125
        <div className="sidebar__top">
Open commit View diff
125 <div className="sidebar__top">
same change 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
126
          <div>
Open commit View diff
126 <div>
same change 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
127
            <p className="eyebrow">Workspace</p>
Open commit View diff
127 <p className="eyebrow">Workspace</p>
same change 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
128
            <h2 className="sidebar__workspace">Ledger</h2>
Open commit View diff
128 <h2 className="sidebar__workspace">Ledger</h2>
same change 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
129
            <p className="muted">{user ? `${user.displayName} · ${user.role}` : "Public knowledge base"}</p>
Open commit View diff
129 <p className="muted">{user ? `${user.displayName} · ${user.role}` : "Public knowledge base"}</p>
same change 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
130
          </div>
Open commit View diff
130 </div>
same change 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
131
          <button type="button" className="mobile-only button-ghost" onClick={onClose}>
Open commit View diff
131 <button type="button" className="mobile-only button-ghost" onClick={onClose}>
same change 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
132
            <Icon name="chevronRight" className="icon" />
Open commit View diff
132 <Icon name="chevronRight" className="icon" />
same change 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
133
          </button>
Open commit View diff
133 </button>
same change 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
134
        </div>
Open commit View diff
134 </div>
same change 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
135
Open commit View diff
135
same change 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
136
        <nav className="sidebar-nav" aria-label="Primary">
Open commit View diff
136 <nav className="sidebar-nav" aria-label="Primary">
same change 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
137
          <Link className={`sidebar-nav__item${location.pathname === "/" ? " is-current" : ""}`} to="/">
Open commit View diff
137 <Link className={`sidebar-nav__item${location.pathname === "/" ? " is-current" : ""}`} to="/">
same change 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
138
            <Icon name="home" className="icon icon-sm" />
Open commit View diff
138 <Icon name="home" className="icon icon-sm" />
same change 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
139
            <span>Overview</span>
Open commit View diff
139 <span>Overview</span>
same change 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
140
          </Link>
Open commit View diff
140 </Link>
same change 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
141
          <Link className={`sidebar-nav__item${location.pathname === "/dashboard" ? " is-current" : ""}`} to="/dashboard">
Open commit View diff
141 <Link className={`sidebar-nav__item${location.pathname === "/dashboard" ? " is-current" : ""}`} to="/dashboard">
same change 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
142
            <Icon name="settings" className="icon icon-sm" />
Open commit View diff
142 <Icon name="settings" className="icon icon-sm" />
same change 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
143
            <span>Manage</span>
Open commit View diff
143 <span>Manage</span>
same change 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
144
          </Link>
Open commit View diff
144 </Link>
same change 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
145
        </nav>
Open commit View diff
145 </nav>
same change 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
146
Open commit View diff
146
same change 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
147
        <section className="sidebar-section">
Open commit View diff
147 <section className="sidebar-section">
same change 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
148
          <div className="sidebar-section__header">
Open commit View diff
148 <div className="sidebar-section__header">
same change 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
149
            <span>Recent</span>
Open commit View diff
149 <span>Recent</span>
same change 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
150
          </div>
Open commit View diff
150 </div>
same change 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
151
          <div className="sidebar-list">
Open commit View diff
151 <div className="sidebar-list">
same change 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
152
            {recentPages.length === 0 ? <p className="muted">No documents yet.</p> : null}
Open commit View diff
152 {recentPages.length === 0 ? <p className="muted">No documents yet.</p> : null}
same change 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
153
            {recentPages.map((page) => (
Open commit View diff
153 {recentPages.map((page) => (
same change 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
154
              <Link key={page.id} to={`/page/${page.slug}`} className={`sidebar-doc${page.slug === currentSlug ? " is-current" : ""}`}>
Open commit View diff
154 <Link key={page.id} to={`/page/${page.slug}`} className={`sidebar-doc${page.slug === currentSlug ? " is-current" : ""}`}>
same change 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
155
                <Icon name="document" className="icon icon-sm" />
Open commit View diff
155 <Icon name="document" className="icon icon-sm" />
same change 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
156
                <span>{page.title}</span>
Open commit View diff
156 <span>{page.title}</span>
same change 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
157
              </Link>
Open commit View diff
157 </Link>
same change 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
158
            ))}
Open commit View diff
158 ))}
same change 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
159
          </div>
Open commit View diff
159 </div>
same change 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
160
        </section>
Open commit View diff
160 </section>
same change 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
161
Open commit View diff
161
same change 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
162
        <section className="sidebar-section">
Open commit View diff
162 <section className="sidebar-section">
same change 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
163
          <div className="sidebar-section__header">
Open commit View diff
163 <div className="sidebar-section__header">
same change 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
164
            <span>Collections</span>
Open commit View diff
164 <span>Collections</span>
same change 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
165
          </div>
Open commit View diff
165 </div>
same change 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
166
          <div className="sidebar-collections">
Open commit View diff
166 <div className="sidebar-collections">
same change 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
167
            {spaces.map((space) => {
Open commit View diff
167 {spaces.map((space) => {
same change 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
168
              const isCollapsed = collapsedSpaces[space.key] ?? false;
Open commit View diff
168 const isCollapsed = collapsedSpaces[space.key] ?? false;
same change 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
169
              const tree = buildTree(pagesBySpace[space.key] ?? []);
Open commit View diff
169 const tree = buildTree(pagesBySpace[space.key] ?? []);
same change 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
170
Open commit View diff
170
same change 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
171
              return (
Open commit View diff
171 return (
same change 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
172
                <div key={space.id} className="collection-group">
Open commit View diff
172 <div key={space.id} className="collection-group">
same change 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
173
                  <button
Open commit View diff
173 <button
same change 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
174
                    type="button"
Open commit View diff
174 type="button"
same change 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
175
                    className={`collection-group__header${space.key === currentSpaceKey ? " is-current" : ""}`}
Open commit View diff
175 className={`collection-group__header${space.key === currentSpaceKey ? " is-current" : ""}`}
same change 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
176
                    onClick={() =>
Open commit View diff
176 onClick={() =>
same change 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
177
                      setCollapsedSpaces((current) => ({
Open commit View diff
177 setCollapsedSpaces((current) => ({
same change 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
178
                        ...current,
Open commit View diff
178 ...current,
same change 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
179
                        [space.key]: !isCollapsed
Open commit View diff
179 [space.key]: !isCollapsed
same change 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
180
                      }))
Open commit View diff
180 }))
same change 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
181
                    }
Open commit View diff
181 }
same change 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
182
                  >
Open commit View diff
182 >
same change 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
183
                    <span className="collection-group__title">
Open commit View diff
183 <span className="collection-group__title">
same change 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
184
                      <Icon name={isCollapsed ? "chevronRight" : "chevronDown"} className="icon icon-sm" />
Open commit View diff
184 <Icon name={isCollapsed ? "chevronRight" : "chevronDown"} className="icon icon-sm" />
same change 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
185
                      <Icon name="collection" className="icon icon-sm" />
Open commit View diff
185 <Icon name="collection" className="icon icon-sm" />
same change 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
186
                      {space.name}
Open commit View diff
186 {space.name}
same change 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
187
                    </span>
Open commit View diff
187 </span>
same change 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
188
                    <span className={`badge badge-${space.visibility}`}>{space.visibility}</span>
Open commit View diff
188 <span className={`badge badge-${space.visibility}`}>{space.visibility}</span>
same change 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
189
                  </button>
Open commit View diff
189 </button>
same change 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
190
Open commit View diff
190
same change 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
191
                  {!isCollapsed ? (
Open commit View diff
191 {!isCollapsed ? (
same change 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
192
                    <div className="collection-group__body">
Open commit View diff
192 <div className="collection-group__body">
same change 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
193
                      <Link to={`/space/${space.key}`} className={`collection-link${space.key === currentSpaceKey && !currentSlug ? " is-current" : ""}`}>
Open commit View diff
193 <Link to={`/space/${space.key}`} className={`collection-link${space.key === currentSpaceKey && !currentSlug ? " is-current" : ""}`}>
same change 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
194
                        Browse collection
Open commit View diff
194 Browse collection
same change 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
195
                      </Link>
Open commit View diff
195 </Link>
same change 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
196
                      {tree.length === 0 ? <p className="muted">No published pages yet.</p> : null}
Open commit View diff
196 {tree.length === 0 ? <p className="muted">No published pages yet.</p> : null}
same change 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
197
                      {tree.map((node) => (
Open commit View diff
197 {tree.map((node) => (
same change 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
198
                        <TreeNode key={node.id} node={node} depth={0} currentSlug={currentSlug} />
Open commit View diff
198 <TreeNode key={node.id} node={node} depth={0} currentSlug={currentSlug} />
same change 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
199
                      ))}
Open commit View diff
199 ))}
same change 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
200
                    </div>
Open commit View diff
200 </div>
same change 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
201
                  ) : null}
Open commit View diff
201 ) : null}
same change 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
202
                </div>
Open commit View diff
202 </div>
same change 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
203
              );
Open commit View diff
203 );
same change 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
204
            })}
Open commit View diff
204 })}
same change 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
205
          </div>
Open commit View diff
205 </div>
same change 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
206
        </section>
Open commit View diff
206 </section>
same change 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
207
      </aside>
Open commit View diff
207 </aside>
same change 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
208
    </>
Open commit View diff
208 </>
same change 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
209
  );
Open commit View diff
209 );
same change 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
210
}
Open commit View diff
210 }