AFFiNE/packages/frontend/templates/onboarding/RCpxnWMtBWmUZy5awgJBh.snapshot.json
Peng Xiao 3978b2dfd2
refactor(core): onboarding using new transformer api (#5412)
Use new `transformer` to import onboarding json templates.

The json files are generated via this gist
https://gist.github.com/pengx17/ef92c305ac23123803a1a6a20e31f822

Not using the all-in-one `ZipTransformer` to import onboarding via a zip file.
1. The main concerns is that we still need to serve the blob resources via CDN to reduce user's blob usage. Otherwise the user will get the onboarding images being uploaded to cloud server every time he creates a new workspace. In this PR we extracted parts of the code from `ZipTransformer` in blocksuite and mute some code for uploading blobs.
2. it maybe not necessary to use zip for loading snapshots.

This PR is a short term solution. whether or not to tune the transformer api design may need further discussions.

fix TOV-264
2023-12-28 13:59:21 +00:00

457 lines
13 KiB
JSON

{
"type": "page",
"meta": {
"id": "RCpxnWMtBWmUZy5awgJBh",
"title": "OKR Template",
"createDate": 1691636192263,
"tags": [
"q3mceOl_zi",
"g1L5dXKctL"
]
},
"blocks": {
"type": "block",
"id": "0tJt1nfXpr",
"flavour": "affine:page",
"props": {
"title": {
"$blocksuite:internal:text$": true,
"delta": [
{
"insert": "OKR Template"
}
]
}
},
"children": [
{
"type": "block",
"id": "-SeDPuI6pE",
"flavour": "affine:surface",
"props": {
"elements": {}
},
"children": []
},
{
"type": "block",
"id": "gjPKqwOdlZ",
"flavour": "affine:note",
"props": {
"xywh": "[0,0,800,1418]",
"background": "--affine-background-secondary-color",
"index": "a0",
"hidden": false,
"edgeless": {
"style": {
"borderRadius": 8,
"borderSize": 4,
"borderStyle": "solid",
"shadowType": "--affine-note-shadow-box"
}
}
},
"children": [
{
"type": "block",
"id": "syUYSO6Hlw",
"flavour": "affine:image",
"props": {
"caption": "",
"sourceId": "/static/VuXYyM9JUv1Fv_qjg1v5Go4Zksz0r4NXFeh3Na7JkIc=.png",
"width": 752,
"height": 501.2734375,
"index": "a0",
"xywh": "[0,0,0,0]",
"rotate": 0,
"size": -1
},
"children": []
},
{
"type": "block",
"id": "B12ua5IVdH",
"flavour": "affine:paragraph",
"props": {
"type": "quote",
"text": {
"$blocksuite:internal:text$": true,
"delta": [
{
"insert": "Using "
},
{
"insert": "OKR (Objectives and Key Results)",
"attributes": {
"link": "https://en.wikipedia.org/wiki/Objectives_and_key_results"
}
},
{
"insert": " helps teams work together to create and break down their goals. They also figure out how to reach those goals and use their own ideas and creativity. Every week, the team checks in to make sure everyone understands the goals, shares their thoughts, and makes changes as needed to get the job done well and quickly."
}
]
}
},
"children": []
},
{
"type": "block",
"id": "UWKiht4_yF",
"flavour": "affine:paragraph",
"props": {
"type": "text",
"text": {
"$blocksuite:internal:text$": true,
"delta": []
}
},
"children": []
},
{
"type": "block",
"id": "tsqRR7Aqqe",
"flavour": "affine:paragraph",
"props": {
"type": "h2",
"text": {
"$blocksuite:internal:text$": true,
"delta": [
{
"insert": "I. Synchronization of team OKR progress "
}
]
}
},
"children": []
},
{
"type": "block",
"id": "TzALQTyjsF",
"flavour": "affine:paragraph",
"props": {
"type": "text",
"text": {
"$blocksuite:internal:text$": true,
"delta": []
}
},
"children": []
},
{
"type": "block",
"id": "-RNdJMcB-M",
"flavour": "affine:paragraph",
"props": {
"type": "text",
"text": {
"$blocksuite:internal:text$": true,
"delta": [
{
"insert": "All team members collectively update the latest progress and the next step plan for the person responsible for the OKR. These updates are discussed during the weekly Team OKR meeting."
}
]
}
},
"children": []
},
{
"type": "block",
"id": "_E43A1XjkR",
"flavour": "affine:paragraph",
"props": {
"type": "text",
"text": {
"$blocksuite:internal:text$": true,
"delta": []
}
},
"children": []
},
{
"type": "block",
"id": "lbLc-rsTQ_",
"flavour": "affine:paragraph",
"props": {
"type": "h1",
"text": {
"$blocksuite:internal:text$": true,
"delta": [
{
"insert": "O1: Fourth quarter revenue 1 million "
}
]
}
},
"children": []
},
{
"type": "block",
"id": "IbLsSTqZWu",
"flavour": "affine:paragraph",
"props": {
"type": "text",
"text": {
"$blocksuite:internal:text$": true,
"delta": []
}
},
"children": []
},
{
"type": "block",
"id": "LfH4-lvRy1",
"flavour": "affine:database",
"props": {
"views": [
{
"id": "BjTEwK-3iR",
"name": "table",
"mode": "table",
"columns": [
{
"id": "f15PcPjtU8",
"width": 246
},
{
"id": "LfH4-lvRy1",
"hide": false,
"width": 260
},
{
"id": "ftL1qPRgYl",
"hide": false,
"width": 200
},
{
"id": "3s4GtwNZTH",
"hide": false,
"width": 108
},
{
"id": "IwZCoBvV9W",
"hide": false,
"width": 142
}
],
"filter": {
"type": "group",
"op": "and",
"conditions": []
}
}
],
"title": {
"$blocksuite:internal:text$": true,
"delta": [
{
"insert": "KR setting & reviewing "
}
]
},
"cells": {
"C75yOBGfeP": {
"ftL1qPRgYl": {
"columnId": "ftL1qPRgYl",
"value": {
"$blocksuite:internal:text$": true,
"delta": [
{
"insert": "the planning case has been reviewed, see doc for details "
}
]
}
},
"IwZCoBvV9W": {
"columnId": "IwZCoBvV9W",
"value": 85
}
},
"iouBY8Zk33": {
"ftL1qPRgYl": {
"columnId": "ftL1qPRgYl",
"value": {
"$blocksuite:internal:text$": true,
"delta": [
{
"insert": "worning on it "
}
]
}
},
"IwZCoBvV9W": {
"columnId": "IwZCoBvV9W",
"value": 46
},
"3s4GtwNZTH": {
"columnId": "3s4GtwNZTH",
"value": "Qp1kGLAbfE"
}
},
"jRFdpU21Jf": {
"ftL1qPRgYl": {
"columnId": "ftL1qPRgYl",
"value": {
"$blocksuite:internal:text$": true,
"delta": [
{
"insert": "waiting "
}
]
}
},
"IwZCoBvV9W": {
"columnId": "IwZCoBvV9W",
"value": 3
},
"3s4GtwNZTH": {
"columnId": "3s4GtwNZTH",
"value": "yCF1NgLWhh"
}
},
"CLLfj990JA": {
"ftL1qPRgYl": {
"columnId": "ftL1qPRgYl",
"value": {
"$blocksuite:internal:text$": true,
"delta": [
{
"insert": "The planning case has been reviewed, see doc for details "
}
]
}
},
"IwZCoBvV9W": {
"columnId": "IwZCoBvV9W",
"value": 70
},
"3s4GtwNZTH": {
"columnId": "3s4GtwNZTH",
"value": "KHKc4e79W8"
}
}
},
"columns": [
{
"id": "f15PcPjtU8",
"type": "title",
"name": "Key Resluts ",
"data": {}
},
{
"type": "title",
"id": "LfH4-lvRy1",
"name": "Title",
"data": {}
},
{
"type": "progress",
"name": "progress bar ",
"data": {},
"id": "IwZCoBvV9W"
},
{
"type": "rich-text",
"name": "Notes ",
"data": {
"options": []
},
"id": "ftL1qPRgYl"
},
{
"type": "select",
"name": "priority ",
"data": {
"options": [
{
"id": "yCF1NgLWhh",
"value": "not urgent",
"color": "var(--affine-tag-blue)"
},
{
"id": "Qp1kGLAbfE",
"value": "urgent",
"color": "var(--affine-tag-red)"
},
{
"id": "KHKc4e79W8",
"value": "important",
"color": "var(--affine-tag-yellow)"
}
]
},
"id": "3s4GtwNZTH"
}
]
},
"children": [
{
"type": "block",
"id": "CLLfj990JA",
"flavour": "affine:paragraph",
"props": {
"type": "text",
"text": {
"$blocksuite:internal:text$": true,
"delta": [
{
"insert": "The campus activity was successfully released, and the exposure was not less than 1 million people"
}
]
}
},
"children": []
},
{
"type": "block",
"id": "iouBY8Zk33",
"flavour": "affine:paragraph",
"props": {
"type": "text",
"text": {
"$blocksuite:internal:text$": true,
"delta": [
{
"insert": "describe Key results "
}
]
}
},
"children": []
},
{
"type": "block",
"id": "jRFdpU21Jf",
"flavour": "affine:paragraph",
"props": {
"type": "text",
"text": {
"$blocksuite:internal:text$": true,
"delta": [
{
"insert": "KR1: Describe Key results "
}
]
}
},
"children": []
}
]
},
{
"type": "block",
"id": "PmstSRjisx",
"flavour": "affine:paragraph",
"props": {
"type": "text",
"text": {
"$blocksuite:internal:text$": true,
"delta": []
}
},
"children": []
}
]
}
]
}
}