From e93e23c7af7cc10ee4c609662f436a521585023c Mon Sep 17 00:00:00 2001 From: Alfred Mountfield Date: Thu, 8 Sep 2022 16:29:55 +0100 Subject: [PATCH] Squashed commit of the following: MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit commit 906231eef385d729022ab0163a8dfae8551560ae Author: Alfred Mountfield Date: Thu Sep 8 16:23:27 2022 +0100 Fix errors commit d115a5ff6afebc7722e308f1375e7fca8eebb220 Author: Tim Diekmann <21277928+TimDiekmann@users.noreply.github.com> Date: Thu Sep 8 17:18:16 2022 +0200 Re-add external services commit 78265a18b77a4803325fb98e40661f93557f6d1b Author: Tim Diekmann <21277928+TimDiekmann@users.noreply.github.com> Date: Thu Sep 8 17:03:09 2022 +0200 Fix Rust CI commit d33cf06e9219747c417da246fdffb4006ec03b10 Merge: 67116523e e1f7c0dc2 Author: Alfred Mountfield Date: Thu Sep 8 15:51:36 2022 +0100 Merge branch 'main' into dev/graph commit e1f7c0dc24df9925ebd4ec684833dca93159b072 Author: Bilal Mahmoud Date: Thu Sep 8 12:06:50 2022 +0200 Add required components to the `toolchain.toml` of `error-stack` (#1045) Co-authored-by: Tim Diekmann <21277928+TimDiekmann@users.noreply.github.com> commit 870290a9af254ffb92d9194d3a809c866fb0976c Author: Bilal Mahmoud Date: Thu Sep 8 11:20:25 2022 +0200 `attach_printable()` attachments now invoke hooks in `error-stack` (#1044) commit e2592f64393d6954d537a518f8c13c731fb60b6c Author: Bilal Mahmoud Date: Thu Sep 8 10:45:56 2022 +0200 Remove defer from `error-stack` `Debug` and API cleanup (#1032) remove emit adjust documentation remove tests drive-by: rename increment/decrement to *_counter drive-by: make Counter of increment/decrement type private update preview README commit ef5720a929bed9602a7ba9c57ca4e53645fc8bd6 Author: Tim Diekmann <21277928+TimDiekmann@users.noreply.github.com> Date: Wed Sep 7 18:43:03 2022 +0200 Mention support for `core::error:Error` in CHANGELOG.md (#1042) commit ecd73ba14f7bf190ec6321df72a54a19087629f3 Author: Tim Diekmann <21277928+TimDiekmann@users.noreply.github.com> Date: Wed Sep 7 18:25:02 2022 +0200 Support `core::error::Error` (#1038) commit edaf86ee00bdcbd6d12b381288b414863999b892 Author: Tim Diekmann <21277928+TimDiekmann@users.noreply.github.com> Date: Wed Sep 7 14:34:37 2022 +0200 Bump toolchain to `2022-08-27` (#1037) commit b110bf3e712caf2113d490591412a5482381ee36 Author: luisbettencourt <37453800+luisbettencourt@users.noreply.github.com> Date: Tue Sep 6 18:15:11 2022 +0100 Allow reordering of sidebar pages (#931) * progress * progress * progress * progress * progress * progress * progress * cleanup * update page order only when it's different * lint fixes * lint fix * temporarily remove migration * sidebar pages loading state and reorder pages without index * dnd dropAnimation cleanup * fix drag and drop animation bug * prevent hover switching during drag * fix dragEnd animation * cleanup dropAnimation * fix drag and drop animation bug * collapsible animation * revert disabling buttons * store flat list of pageIds in state * rename utilities file to utils * Remove Drag Handle * lint fix * fix incorrect page depth limits when dragging * change function name * useCreateSubPage cleanup * useAccountPages cleanup * hooks cleanup * isDragging state * move pagesFlatIdList calculation to useMemo * move loading calculation and added useAccountPages loading state * switch useMemo with useEffect * remove unecessary casting * set variable type instead of defining it with keyword "as" * pageTreeItem Props cleanup * simplify pageTreeItem hoveredState * forwardRef generic argument * remove unecessary parameter * added getProjection comments * renamed filteredPages to expandedPages * remove dragDepth calculation from getProjection and unify identationWidth in one variable * removed unecessary import * simplify pageList state * simplify getPageList * removed unecessary field from TreeElement * state cleanup * Rename pageList to TreeItems and change structure * send previous and next index on reorder request * revert getEntityIncomingLinks * prevent multiple subpages from being created at once * prevent index non-nullable field error * lint fixes * make prevIndex optional on createPage * page loading indicator * lint fix * initial pages loading fix jump * lint fix * revert file * cursor unmount logic * remove redundant code * replace "as" keyword with type definition * derive state from props outside useEffect * remove initialLoading for page skeletons * remove last index calculation when creating root page * lint fixes commit 72d210c0628c55c50ce535253604ce623338e122 Author: Teymour Aldridge Date: Tue Sep 6 17:44:32 2022 +0100 Use arrow2 to deserialize Arrow Flatbuffers schema messages (#1036) commit 8af89ee2a252cd12783059e19e39564d887fc731 Author: Bilal Mahmoud Date: Tue Sep 6 16:45:00 2022 +0200 rework how hooks in `error-stack` emit lines and snippets. (#1008) Co-authored-by: Tim Diekmann <21277928+TimDiekmann@users.noreply.github.com> commit f59227ab9c9302750434a6ec9cbb33f63f03e112 Author: Yusuf Kınataş Date: Mon Sep 5 19:08:36 2022 +0300 Implement loading state for pages (#1010) * remove prosemirror select outline * implement page content loading via BlankView * rename `blank` node to `loading` * implement page loading state * remove unnecessary public fields * fix wrong `Container` component import * improve styling of page loading state commit b3a357299cc2585fa57cc1927cb53ad996a15070 Author: Yusuf Kınataş Date: Mon Sep 5 14:40:08 2022 +0300 fix BlockContextMenu focus outline issue (#1020) * fix BlockContextMenu focus outline issue * fix :active visual issue commit fa828d44b5f30e39ddde3199382bdfa44cf30fd6 Author: Ciaran Morinan <37743469+CiaranMn@users.noreply.github.com> Date: Mon Sep 5 10:22:20 2022 +0100 Improve 'add entity to block' (#1014) * rename and improve guessEntityName * filter out text entities/blocks as 'swap entity' source and target * fix text block entity filtering * use existing block type checking utilities Co-authored-by: Yusuf Kınataş commit 541c649d8b225ab91430b02f909f152c3f748d37 Author: Ciaran Morinan <37743469+CiaranMn@users.noreply.github.com> Date: Fri Sep 2 14:29:55 2022 +0100 increase slonik connection timeout (#1015) commit 2aecd1690907156c68e6fae9b2ed4043c06979f4 Author: Yusuf Kınataş Date: Fri Sep 2 10:13:45 2022 +0300 Fix integration tests got broken by `PageTitle` changes (#1018) * upgrade playwright version for VSCode extension * fix broken integration tests * fix broken entity-creation test * Update packages/hash/playwright/tests/page-creation.spec.ts remove stale comment line Co-authored-by: Alexander Kachkaev * add resetDb for playwright * rename util files to kebab-case * rename util files to kebab-case Co-authored-by: Alexander Kachkaev commit 96347b1222b5a74f74caaa45a6037ac4289afca8 Author: Bilal Mahmoud Date: Thu Sep 1 14:01:25 2022 +0200 Cleanup `error-stack` `fmt` Instruction to Symbol conversion (#1013) commit 3b4866dbb708db449e48d72386b4171224e4466a Author: Yusuf Kınataş Date: Thu Sep 1 11:54:43 2022 +0300 Add loading state to pages list on the sidebar (#1009) * add sidebar pages loading state * make sidebar loading pixel-perfect Co-authored-by: Nate Higgins commit a37ef1cc9bb7cf796fdfda7dc4a57af9a1432ecc Author: Teymour Aldridge Date: Wed Aug 31 18:11:24 2022 +0100 Refactor JavaScript runner into separate modules (#1001) Co-authored-by: David Wilkinson <6226576+nonparibus@users.noreply.github.com> Co-authored-by: Tim Diekmann <21277928+TimDiekmann@users.noreply.github.com> commit 346cc6f7eaf9d5d5721399bad1fd0fb4a1fb3435 Author: Bilal Mahmoud Date: Wed Aug 31 16:44:31 2022 +0200 Remove builtin debug fallback in favor of default hooks in `error-stack` (#987) commit 10304c4a407ec10aaccf16b2ede686a589ddb756 Author: Tim Diekmann <21277928+TimDiekmann@users.noreply.github.com> Date: Wed Aug 31 16:30:53 2022 +0200 Add planned features to `error-stack` changelog (#1004) commit 3491d9574d4e9dc34d91b8d6b2805e3ded7152e0 Author: Tim Diekmann <21277928+TimDiekmann@users.noreply.github.com> Date: Wed Aug 31 16:20:36 2022 +0200 Fix `anyhow` test to support backtraces (#1011) commit e44ad8e89aa0efa672cef20475d4d62e9befd814 Author: Teymour Aldridge Date: Wed Aug 31 12:59:00 2022 +0100 Improve shared memory segment cleanup (#998) - we now maintain an internal list containing the id of every allocated segment, which we can use to clean up the segments on operating systems (e.g. MacOS) which do not provide a way to obtain a list of all the existing shared-memory segments on the system. - also added more debug assertions to ensure correct handling of shared memory segments (i.e. not opening segments which haven't been created) commit 494d296f2e9594b23ea458da234c9494077dcc6a Author: luisbettencourt <37453800+luisbettencourt@users.noreply.github.com> Date: Wed Aug 31 11:02:15 2022 +0100 Replace DOM query with ref in Suggester (#1003) * replace querySelector with ref * PR feedback * cleanup commit ea0dacf87b6a120986081803a541cdb27ff85b02 Author: Yusuf Kınataş Date: Tue Aug 30 13:23:42 2022 +0300 Improve alignment of page title and layout (#956) * use h1 as page title instead of input * implement focusPageTitlePlugin * focus to block from page title by arrow-down WIP * suppress contentEditableWarning on page title * update editor & page layout to match design * implement focus-to-editor from header * move page title to it's own folder with own utils * add `line-height` to page title * throw error if PageContext is not provided * use `TextareaAutosize` on `PageTitle` * create StyledTextarea * Support empty page titles * improve `focusEditorBeginning` function * fix lint issue * use ref instead of query selector for page title * cleanup code * use state instead of ref inside component body commit f4fa7fe54eec361411752b6b7410e6eb82313827 Author: Yusuf Kınataş Date: Tue Aug 30 13:04:04 2022 +0300 Show placeholder on empty paragraphs on the editor (#953) * create PlaceholderPlugin for ProseMirror * cleanup placeholder plugin * focus on first paragraph if its empty and alone * show placeholder only for paragraph blocks * cleanup placeholder plugin * cleanup placeholder plugin * remove wrong eslint rule for DecorationSet * rename variables used for blockComponentIds * improve styling of Placeholder component * use Typography variant instead of line-height * fix blinking placeholder on focus bug * fix selection bug caused by placeholder * improve the decoration code * create `isParagraphNode`util * add comment line * improve placeholder style * move prosemirror util to related file * add comment line * move `editable` check to plugin state * clear react tree via `renderPortal` on destroy * improve selection position after `onBlockInsert` * improve state update logic of collab commit c3c8253b4626972dacf632284b142ed3a5458213 Author: luisbettencourt <37453800+luisbettencourt@users.noreply.github.com> Date: Mon Aug 29 17:03:26 2022 +0100 page menu stop onClick propagation (#1002) commit d9bf9487e316c64fe7dcf5abd8e28a56149f6631 Author: Bilal Mahmoud Date: Mon Aug 29 16:44:41 2022 +0200 Add support for Provider API in hooks in `error-stack` (#974) * feat: implement request_ref based hooks * feat: support hook overwrite * feat: run on nightly and stable * feat: unify `Hooks::downcast` and `Hooks::request` * fix: doc tests * docs: improve example * docs: fallback on context example * feat: extend `DebugDiagnostic` capabilities * feat: make `DebugDiagnostic` useful, tests * chore: clippy * feat: disable false-positive * Apply suggestions from code review Co-authored-by: Tim Diekmann <21277928+TimDiekmann@users.noreply.github.com> * fix: cleanup * doc: clarification * feat: move DebugDiagnostic logic into fallback * feat: introduce `Diagnostic` (future replacement for `DebugDiagnostic`) * feat: move to `Trace`, to support multiple `Emit` * fix: merge * fix: docs * fix: remove `mod unstable` * feat: move from `cfg(nightly)` to `cfg(rust_1_65)` for backtrace * fix: docs * fix: doctest nightly only * fix: apply suggestions * fix: doc cfg_attr test wording * fix: clarify docs; always append hook * Update packages/libs/error-stack/src/hook.rs Co-authored-by: Tim Diekmann <21277928+TimDiekmann@users.noreply.github.com> Co-authored-by: Tim Diekmann <21277928+TimDiekmann@users.noreply.github.com> commit 7167192f4c8b2fa278cf5affefcb7be214307451 Author: David Wilkinson <6226576+nonparibus@users.noreply.github.com> Date: Fri Aug 26 17:34:32 2022 +0200 Minor updates to copy (#999) * Update 1_block-design.mdx * Remove simulation.school reference (for now) * Update CONTRIBUTING.md * Update 3_one-principle.mdx commit 0296c88eedf1e2bba937b4151ebf6e1fe14c49a5 Author: Teymour Aldridge Date: Thu Aug 25 16:34:30 2022 +0100 Upgrade arrow2 from 0.12 to 0.13 (#993) commit ef578429c48ccf5e21be3f33b22f88ff582c1bb3 Author: Teymour Aldridge Date: Thu Aug 25 15:39:09 2022 +0100 Fix a memory leak (#985) * Improve handling of shared memory segments - Now SharedStore is dropped before the experiment end - We also unmap shared memory on the Python side commit 1ec231c33390031ccc652cb704986f4d65bebe8b Author: Teymour Aldridge Date: Thu Aug 25 14:20:26 2022 +0100 Update Swatinem/rust-cache to v2 (#994) Co-authored-by: Tim Diekmann <21277928+TimDiekmann@users.noreply.github.com> commit 2226dad3be03bab68fd173f9f5275a163bfb4048 Author: Nate Higgins Date: Thu Aug 25 10:08:25 2022 +0100 Assorted tidy up (#986) commit 6d045d3b6c13da30901fa50d2148d40df202ba95 Author: Tim Diekmann <21277928+TimDiekmann@users.noreply.github.com> Date: Wed Aug 24 16:17:56 2022 +0200 Publish `error-stack-macros` crate (#990) commit 766ec7226a97c7d492eb04ffd321a887a3bc849e Author: Tim Diekmann <21277928+TimDiekmann@users.noreply.github.com> Date: Wed Aug 24 15:12:34 2022 +0200 Attempt to fix `publish` job on push to `main`, II (#992) commit 791b8cc061219bf297f64744723ed74db7a1d163 Author: Tim Diekmann <21277928+TimDiekmann@users.noreply.github.com> Date: Wed Aug 24 14:04:09 2022 +0200 Attempt to fix the `publish` job on push to main (#991) commit 5d48c662d031eec7670c3564c3f703f8cdc75503 Author: Tim Diekmann <21277928+TimDiekmann@users.noreply.github.com> Date: Wed Aug 24 13:10:27 2022 +0200 Fix refs in publish job and prepare `error-stack-macros` release (#989) commit 32e2ebd54d8235413672208326366a1a7a32f044 Author: Ciaran Morinan <37743469+CiaranMn@users.noreply.github.com> Date: Wed Aug 24 10:41:39 2022 +0100 Identify paragraph block by its componentId, not name (#978) * identify paragraph block bys its componentId, not name * remove inappropriate links from block readmes commit 8fc09122240c6b36a72b7bcb360709fc6d2dd221 Author: Bilal Mahmoud Date: Tue Aug 23 20:02:15 2022 +0200 Add support for multipe emits in debug hooks in `error-stack` (#976) Co-authored-by: Tim Diekmann <21277928+TimDiekmann@users.noreply.github.com> commit 26f42bfcad1391c14e52f4616e440774e43ee189 Author: Tim Diekmann <21277928+TimDiekmann@users.noreply.github.com> Date: Tue Aug 23 19:51:53 2022 +0200 Add `error-stack-macros` crate (#982) * Add `error-stack-macros` crate * Allow publishing of sub-crates commit 06ee1a7b0ee922c10760e427530a84acaadc25cc Author: Teymour Aldridge Date: Tue Aug 23 18:00:30 2022 +0100 Replace a number of tuples with structs (#984) commit 64c2debf982486b7574da715762a49a72a8d70e9 Author: Nate Higgins Date: Tue Aug 23 16:57:46 2022 +0100 Remove editableRef (#972) Co-authored-by: Alexander Kachkaev commit 71babb33034ac2955f6820e13d2eedb3abf4c892 Author: Teymour Aldridge Date: Tue Aug 23 15:43:45 2022 +0100 Use tracing rather than `println!` for ffi errors. (#983) commit 984fbec064e2229cd3c3061ee387297c9a694a84 Author: Teymour Aldridge Date: Tue Aug 23 13:15:16 2022 +0100 Fix `nng` compilation on aarch64-darwin and update Python and Python dependencies (#949) - Updates all Python dependencies to latest available versions - Bumps tested Python version from 3.7 to 3.10 - Makes it possible to use nng natively on M1 mac commit 8d94768d4c592bed2ae9fb84e7ee271996e53122 Author: Tim Diekmann <21277928+TimDiekmann@users.noreply.github.com> Date: Mon Aug 22 15:53:24 2022 +0200 Support `Backtrace` on non-nightly Rust (≥ 1.65) (#968) commit 6dd8875df1bae6ef42a607534291d9010e97aef7 Author: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon Aug 22 13:46:39 2022 +0100 Bump apollo-server-core from 3.9.0 to 3.10.1 (#958) Bumps [apollo-server-core](https://github.com/apollographql/apollo-server/tree/HEAD/packages/apollo-server-core) from 3.9.0 to 3.10.1. - [Release notes](https://github.com/apollographql/apollo-server/releases) - [Changelog](https://github.com/apollographql/apollo-server/blob/main/CHANGELOG.md) - [Commits](https://github.com/apollographql/apollo-server/commits/apollo-server-core@3.10.1/packages/apollo-server-core) --- updated-dependencies: - dependency-name: apollo-server-core dependency-type: direct:production ... Signed-off-by: dependabot[bot] Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> commit da4bba688881b576c95a4c88ca8a62d7ec5e5e71 Author: Teymour Aldridge Date: Mon Aug 22 13:20:13 2022 +0100 Migrate from `arrow` (`apache/arrow-rs`) to `arrow2` (unofficial, safer) (#842) Co-authored-by: Tim Diekmann <21277928+TimDiekmann@users.noreply.github.com> commit 7671483736b0089277712b7799251874bcc61727 Author: Tim Diekmann <21277928+TimDiekmann@users.noreply.github.com> Date: Mon Aug 22 12:41:26 2022 +0200 Simplify `Report` generation (#966) commit 265cad5b94aba746c39d4bded5feff74bbd754c8 Author: Tim Diekmann <21277928+TimDiekmann@users.noreply.github.com> Date: Mon Aug 22 11:58:38 2022 +0200 Move extension traits into `error_stack::ext` module (#970) commit 0705fbdc50aa6bc3344f9d7890cd39a242e1b1d6 Author: Nate Higgins Date: Mon Aug 22 09:46:05 2022 +0100 Convert paragraph and callout blocks to hook service (#971) commit 07758acaeaf83ce123f5ea399d8cee79da55a95e Author: Bilal Mahmoud Date: Mon Aug 22 08:28:09 2022 +0200 Change `error-stack` `pub(crate)` lints (#975) commit a0bebe04c24e824250b897551639a99373cdd8dc Author: Bilal Mahmoud Date: Sun Aug 21 00:24:57 2022 +0200 Update `error-stack` changelog (#973) commit a5a4dd186b0ffc746d3fd007cb4e5bce0bcc2531 Author: Tim Diekmann <21277928+TimDiekmann@users.noreply.github.com> Date: Sat Aug 20 20:05:02 2022 +0200 Bump `error-stack` toolchain to `2022-08-19` (#967) commit 83a563df3e09afbaac858ef0dbe34cf3d298697f Author: Bilal Mahmoud Date: Sat Aug 20 15:59:48 2022 +0200 Add `fancy` output implementation for `error-stack` (#794) Co-authored-by: Tim Diekmann <21277928+TimDiekmann@users.noreply.github.com> commit 03a86a5eb3db3e5b8fe2e103a757a6668306974b Author: Tim Diekmann <21277928+TimDiekmann@users.noreply.github.com> Date: Sat Aug 20 15:40:17 2022 +0200 Add badges to crate documentation (#969) commit 6d13fa650aadf7b9b3a8e22708e77806fbd198d9 Author: Bilal Mahmoud Date: Fri Aug 19 21:42:26 2022 +0200 Adjust `error-stack` `rustfmt.toml` (#965) commit 2fc044a469ae13fd1586b63ac160b81d83e2f700 Author: Teymour Aldridge Date: Fri Aug 19 18:32:13 2022 +0100 Create log directory if it does not exist (#964) Also raise an error if the log directory is a file. Co-authored-by: Tim Diekmann <21277928+TimDiekmann@users.noreply.github.com> commit 9acf8c50608d26adffb62cd4ad0acca556220f16 Author: Tim Diekmann <21277928+TimDiekmann@users.noreply.github.com> Date: Fri Aug 19 16:12:03 2022 +0200 Bump `rustc_version` to `v0.4` (#962) commit 256fa23cc7b032ffcd7c682dc4eb2b5610fae64a Author: Teymour Aldridge Date: Fri Aug 19 14:30:33 2022 +0100 Add error message for Mac shared-memory oom. (#946) Co-authored-by: Tim Diekmann <21277928+TimDiekmann@users.noreply.github.com> commit 8c50ad1a7189feafe616827ec55b0391c0428a6f Author: Bilal Mahmoud Date: Fri Aug 19 13:21:44 2022 +0200 Add feature groups for linting (#959) Co-authored-by: Tim Diekmann <21277928+TimDiekmann@users.noreply.github.com> commit b112770850ed01510c15bc6e2b173b82602d2aab Author: Teymour Aldridge Date: Fri Aug 19 11:05:40 2022 +0100 Fix the `multiple_runners` test. (#948) Co-authored-by: Tim Diekmann <21277928+TimDiekmann@users.noreply.github.com> commit 1054c4b254fdeb99147a13da1a1543e158eb11a5 Author: Tim Diekmann <21277928+TimDiekmann@users.noreply.github.com> Date: Thu Aug 18 14:31:09 2022 +0200 Set MSRV to 1.63 (#944) commit 085c9cbec045628f9765cb75d454564ac0183410 Author: Tim Diekmann <21277928+TimDiekmann@users.noreply.github.com> Date: Thu Aug 18 13:10:51 2022 +0200 Support different toolchains for different Rust projects (#943) commit 8d22420f7b8e467eba13edb174a4b43599837d68 Author: Nate Higgins Date: Wed Aug 17 17:54:01 2022 +0100 Implement hook service in HASH (and Header blocks) (#936) commit 2beb700e8453dbb0752a2bed712114d0a38f71ef Author: Ciaran Morinan <37743469+CiaranMn@users.noreply.github.com> Date: Wed Aug 17 12:25:38 2022 +0100 Introduce data mapping prototype (#918) commit 2a7ca14837599a33c040b33a50cbee3e5fcf4dc4 Author: Ugbala Valentino Date: Mon Aug 15 17:53:17 2022 +0100 Add top context bar to pages (#929) * wip: add page context bar UI * wip: add breadcrumbs * wip: remove need to render banner/context bar in sidebar layout * add contextbar to pages * add context bar to entity and type pages * fix lint issues * rename to top context bar * add untracked file * add icon to top context bar Co-authored-by: Nate Higgins commit 9c64419d8e2555b0e461ac82a627e5f52b4404b9 Author: Yusuf Kınataş Date: Mon Aug 15 18:10:27 2022 +0300 Add page emoji support (#933) * fix wrong file icon on page-tree-item * remove unused favicon inside PlainLayout * add icon field to PageProperties * add PageIcon and EmojiPicker components * patch @types/emoji-mart for typescript consistency * add declaration file for @emoji-mart/react package * fix bg color visibility issue of PageIcon * add !important to not-working style on sidebar * include page icon on page title as Safari fallback * add comment * fix yarn.lock for linting * fix wrong imports * use fragment for PageProperties * add comment line explaining type casting for emoji * move type definition into d.ts file from component commit c3f8125df06e4fcbe89cca65203d611fbf8bc38c Author: Teymour Aldridge Date: Mon Aug 15 14:53:19 2022 +0100 Update clap version (#935) commit bea9238710996596a48cecfa49f0d221874bc042 Author: Nate Higgins Date: Mon Aug 15 10:23:06 2022 +0100 Replace text entities with an empty string (#925) commit 51b4a8e86c01c7853c4d96fd0365a4c7a2116481 Author: Alexander Kachkaev Date: Thu Aug 11 16:59:02 2022 +0100 Update Sentry config (#920) commit 70e94a2156f293aa314c5a9149a17d8a96523d74 Author: David Wilkinson <6226576+nonparibus@users.noreply.github.com> Date: Thu Aug 11 11:39:26 2022 +0200 Add GitHub issue templates (#915) * Add GitHub issue templates * Update .github/ISSUE_TEMPLATE/bug_report.md * Update .github/ISSUE_TEMPLATE/bug-report--website-.md * Update .github/ISSUE_TEMPLATE/bug-report--hash-engine-.md * Update .github/ISSUE_TEMPLATE/bug-report--hash-app-.md * Update .github/ISSUE_TEMPLATE/bug-report--block-.md * Update .github/ISSUE_TEMPLATE/bug-report---error-stack--.md * Update templates for `error-stack` and hEngine * `yarn fix:markdownlint` && `yarn fix:prettier` * Minor tweak * Markdown newlines * Markdown newlines (2) * Rename files * Assignees and labels https://docs.github.com/en/communities/using-templates-to-encourage-useful-issues-and-pull-requests/configuring-issue-templates-for-your-repository Co-authored-by: Tim Diekmann <21277928+TimDiekmann@users.noreply.github.com> Co-authored-by: Alexander Kachkaev commit 4bf3165e0358c3a4fc056c219362b294c5b7ee56 Author: Ciaran Morinan <37743469+CiaranMn@users.noreply.github.com> Date: Thu Aug 11 09:30:29 2022 +0100 rename sentry project (#922) commit 7327a726a1035eac543468fbc7c646b3394e7ffd Author: Yusuf Kınataş Date: Thu Aug 11 10:52:05 2022 +0300 Implement BlockHighlight to highlight linked block (#914) * Implement BlockHighlight to highlight linked block * move BlockHighlightContext into the page folder * use MUI Fade instead of motion.div for Highlight * Move highlight logic into onBlockLoadedContext * Use blockEntityId instead of blockView.dom.id commit 835543f633bde5f5068e2a2c2f596ed8e510083a Author: Ugbala Valentino Date: Thu Aug 11 00:18:19 2022 +0100 Implement read-only UI in blocks (#899) * add readonly mode context * bump mock-block-dock version * add countdown block readonly mode * add readonly mode to drawing block * add readonly mode to github pr block * add readonly mode to shuffle block * add readonly mode to video block * add readonly mode to image block * add readonly mode to table block * add readonly mode to timer block * update lock file * cleanups * add tests for readonly mode * add tests for readonly mode * bump mock-block-dock version in blocks * bump mock-block-dock version * update lock file * cleanups commit 018d3a12a4aff61644e6374803211b83139c0b48 Author: Yusuf Kınataş Date: Wed Aug 10 10:15:27 2022 +0300 Show block handles only on mouse hover (#907) * Show BlockHandle on hover, hide it by default * Change spelling to American on comment line * Move hover logic to BlockHandle from css * Call removeEventListener for the correct element Co-authored-by: luisbettencourt <37453800+luisbettencourt@users.noreply.github.com> Co-authored-by: David Wilkinson <6226576+nonparibus@users.noreply.github.com> Co-authored-by: luisbettencourt <37453800+luisbettencourt@users.noreply.github.com> commit 9e81151721028771b56b734c4f76ccc50b99afcb Author: luisbettencourt <37453800+luisbettencourt@users.noreply.github.com> Date: Tue Aug 9 19:18:09 2022 +0100 Fix block suggester positioning (#896) * progress * switch to popper * popper dimensions fix * cleanup * PR feedback Co-authored-by: Ugbala Valentino commit fdcc6dd84a8f4d3b550595f4bb2960ec7cd947a4 Author: luisbettencourt <37453800+luisbettencourt@users.noreply.github.com> Date: Tue Aug 9 16:30:37 2022 +0100 Add 'insert block' button (#887) * progress * block suggester * fix suggester overflowing the browser window * Add button to the top of the document * fix unit test * change contextMenu to contextMenuPosition * svg color * PR feedback * Focus created block and fix scroll bug when closing popover * fix button position * revert unintentional comment Co-authored-by: David Wilkinson <6226576+nonparibus@users.noreply.github.com> commit 0d92b849c575549d106e47478da70e0ae16f1b0a Author: Tim Diekmann <21277928+TimDiekmann@users.noreply.github.com> Date: Tue Aug 9 15:06:52 2022 +0200 Pin `error-stack` revision to 5edddb5 in hEngine (#908) commit 5edddb5566f9bd82dcdf9ba3b430759bc6b15dc5 Author: Tim Diekmann <21277928+TimDiekmann@users.noreply.github.com> Date: Tue Aug 9 13:57:20 2022 +0200 Bump Rust toolchain to `2022-08-08` (#904) * Bump toolchain to `2022-08-08` * Fix `error-stack` by using the Provider API on `Error` * Apply suggestions from clippy at hEngine * Fix UI test output * Fix test for provided backtrace * Change documentation for blanket implementation for `Error` * Mention change in CHANGELOG.md * Fix compatibility with `anyhow` and `eyre` commit 63389cb3b231f0517c465b12d2dff64ab4ee8017 Author: Alexander Kachkaev Date: Mon Aug 8 18:27:53 2022 +0100 Update Docker instructions and bump min Node version (#906) commit a2592e582a2fe77b228be4ece5a44fc91fad5acd Author: Ugbala Valentino Date: Mon Aug 8 14:20:16 2022 +0100 Implement read-only UI in HASH app (#893) * hide sidebar and block handle in readonly mode * hide markstooltip in readonly mode * remove unused styles * add method to set readonly mode in prosemirror * update graph functions to handle readonly mode * add readonly mode context * update readme * add requested changes * fix bug with update entity hook * fix bug with displaying marks tooltip in editable mode commit ce762e0082c2dc36e43c251517e4a631154a1382 Author: Bilal Mahmoud Date: Mon Aug 8 15:08:24 2022 +0200 Use test groups for testing `error-stack` Co-authored-by: Tim Diekmann <21277928+TimDiekmann@users.noreply.github.com> commit e87c060c21ca527ee11779b1b27adbc55a1259d1 Author: Tim Diekmann <21277928+TimDiekmann@users.noreply.github.com> Date: Mon Aug 8 14:29:39 2022 +0200 Use `error-stack` by path (#901) * Use path to `error-stack` in hEngine * Fix deprecations on error-stack usages commit 4df931c2081f5bb3623ab376cc99af98182e6ed4 Author: Tim Diekmann <21277928+TimDiekmann@users.noreply.github.com> Date: Mon Aug 8 13:40:11 2022 +0200 Fix output of toolchain in CI (#902) commit 375746ad2e71bff3ae2157e6327f9ead4b201d8c Author: Tim Diekmann <21277928+TimDiekmann@users.noreply.github.com> Date: Mon Aug 8 12:29:46 2022 +0200 Ensure, that `Report` will always be `Send + Sync + 'static` (#900) * Ensure, that `Report` will always be `Send + Sync + 'static` * Fix requirements for a `Frame` commit 45598cd1b39d63fbce1614ebbab799b19ee60173 Author: Ciaran Morinan <37743469+CiaranMn@users.noreply.github.com> Date: Thu Aug 4 08:34:25 2022 +0100 Load any child entity into a block + remove feature flag (#888) * load any child entity into a block. remove swap entity feature flag * remove __linkedData from mock data * Update packages/hash/api/src/collab/save.ts Co-authored-by: Ugbala Valentino * Update packages/hash/frontend/src/blocks/page/BlockContextMenu/LoadEntityMenuContent.tsx Co-authored-by: Ugbala Valentino Co-authored-by: Ugbala Valentino commit 6b02010ae1d789291038762b1e3192d077fd593c Author: Nate Higgins Date: Tue Aug 2 18:48:47 2022 +0100 Blocks dynamically become text blocks upon call to editableRef (#872) Co-authored-by: Ciaran Morinan <37743469+CiaranMn@users.noreply.github.com> commit f10c295f018f385bce153595541ae2c94efcd0b5 Author: luisbettencourt <37453800+luisbettencourt@users.noreply.github.com> Date: Mon Aug 1 14:18:41 2022 +0100 Fix overflow on link dialogue (#882) * add word-break to link * PR feedback commit e940d9cef3acf76043323dcc59a5dc3f849fd839 Author: luisbettencourt <37453800+luisbettencourt@users.noreply.github.com> Date: Mon Aug 1 13:13:12 2022 +0100 Disable page scrollbar when popups are opened (#865) * remove scrollbar from page when opening popovers, dialogs and menus * no-restricted-imports eslint fix * change overflow hidden to scroll on useScrollLock * eslint fixes * PR feedback commit b450ff11c4fa13082e9459128df3c619754ce0e7 Author: luisbettencourt <37453800+luisbettencourt@users.noreply.github.com> Date: Mon Aug 1 12:20:58 2022 +0100 prevent paragraph from being ignored in bolded and italics paragraphs (#880) * prevent paragraph from being ignored in bolded and italics paragraphs * remove paragraph check * remove unused import Co-authored-by: David Wilkinson <6226576+nonparibus@users.noreply.github.com> commit 251880c6aa94b16d61b3ea0249412b3805863276 Author: Ciaran Morinan <37743469+CiaranMn@users.noreply.github.com> Date: Mon Aug 1 11:37:11 2022 +0100 update blockprotocol version, fix react version consistency (#868) commit 93b643e3f17d16c3371c159dc865f234138faee3 Author: luisbettencourt <37453800+luisbettencourt@users.noreply.github.com> Date: Fri Jul 29 17:06:13 2022 +0100 change workspace name and fix examples (#881) commit 98818b692742dbadd77eaf824c6d51bb8dec7998 Author: luisbettencourt <37453800+luisbettencourt@users.noreply.github.com> Date: Fri Jul 29 14:33:55 2022 +0100 Shuffle Block (#835) * block init * progress * progress * sortable list * shuffle button * save block list * cleanup * reducer cleanup * reducer cleanup * block styling * block config * list item styles * cleanup * list items key prop * README * replace "Item" with "Thing" * disable shuffle button when only 1 item is in list * lint fixes * Update packages/blocks/shuffle/package.json Co-authored-by: Ciaran Morinan <37743469+CiaranMn@users.noreply.github.com> * fix Action type * dnd-kit tests * switch dnd library to dnd-kit * update entity when items change * block state management * optional block parameter * remove item id from db * fix reorder animations * styles * block metadata * lint fixes * findItemIndexById utility * remove early return * react to external changes in render function * prevent createItems from running on every render * changed list to draftItems and created helper function for updating state * getItemValues helper function * eslint fix * dragging animations * accessability * yarn.lock * update preview * allow removing all items * lint fix * remove ref from item propTypes * unecessary lodash isEqual call * dragOverlay pop animation cleanup * disable keyboard sorting * import button from @hashintel/hash-design-system Co-authored-by: Ciaran Morinan <37743469+CiaranMn@users.noreply.github.com> Co-authored-by: Nate Higgins commit a33222071bb4d85b733f06675a12599f31ba97a2 Author: Bilal Mahmoud Date: Thu Jul 28 09:42:03 2022 +0200 Fix generic arguments when requesting from a `Provider` (#874) commit b850b02c3dbf1bd2cbbb404baa6ea1d581389cde Author: Tim Diekmann <21277928+TimDiekmann@users.noreply.github.com> Date: Wed Jul 27 17:18:57 2022 +0200 Pin cargo tool versions for `cargo make` (#866) commit 3eebdd7e0d91364f26ab4ef1995f85dce2add2ed Author: Ugbala Valentino Date: Tue Jul 26 21:06:46 2022 +0100 bump block-scripts to 0.014 (#859) commit c57df498afce4b2d0900c0cbdd64ace6aa01343d Author: Ciaran Morinan <37743469+CiaranMn@users.noreply.github.com> Date: Tue Jul 26 15:28:22 2022 +0100 Upgrade cron (#861) * upgrade cron * upgrade @types/cron * fix @types/cron version commit ce3700fc61af982fba584707ee5701813e2320ba Author: David Wilkinson <6226576+nonparibus@users.noreply.github.com> Date: Tue Jul 26 14:45:08 2022 +0200 Minor updates and fixes to glossary/docs (#857) * Rename fast-healthcare-interoperability-resources.mdx to fhir.mdx * Rename content-management-system.mdx to cms.mdx * Rename customer-relationship-management-system.mdx to crm.mdx * Rename applicant-tracking-system.mdx to ats.mdx * Update README.md * Update README.md Requires further improvements * Update entities.mdx * Add link to entities page * Update schemas.mdx Requires further revision to reflect altered role of schemas within HASH Co-authored-by: Ciaran Morinan <37743469+CiaranMn@users.noreply.github.com> commit 17296c918eeadfc86ec7e0c1c08638af955a225d Author: Ciaran Morinan <37743469+CiaranMn@users.noreply.github.com> Date: Tue Jul 26 11:51:58 2022 +0100 Escape less-thans in mdx (#856) commit 889ce0d2b27763d739808b5c5c66444653a77717 Author: Tim Diekmann <21277928+TimDiekmann@users.noreply.github.com> Date: Tue Jul 26 11:05:48 2022 +0200 Pin `cargo quickinstall` versions (#853) commit ce81bc7702cbf223665263b457c810ced9733922 Author: Ciaran Morinan <37743469+CiaranMn@users.noreply.github.com> Date: Mon Jul 25 15:11:07 2022 +0100 Remove `.hashconfig.json` (#829) commit 6591883199b4b07077155bc67da589179211cef7 Author: Alexander Kachkaev Date: Mon Jul 25 13:59:43 2022 +0100 Enable `reportUnusedDisableDirectives` in `.eslintrc.json` (#849) commit dd1545bf841f416d4d5165c296d7007729b70261 Author: Alexander Kachkaev Date: Mon Jul 25 12:41:09 2022 +0100 Align React imports (#847) commit eb327e81362d1191a8cbc7f779e49f0f5abe471f Author: Ahmad Sattar Date: Mon Jul 25 11:26:34 2022 +0200 Add timeout for Collab `positions` polling (#848) commit af0efcaafe0d8e397f46369297fc43592424d137 Author: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Date: Fri Jul 22 12:48:25 2022 +0100 Bump terser from 5.12.1 to 5.14.2 (#836) Bumps [terser](https://github.com/terser/terser) from 5.12.1 to 5.14.2. - [Release notes](https://github.com/terser/terser/releases) - [Changelog](https://github.com/terser/terser/blob/master/CHANGELOG.md) - [Commits](https://github.com/terser/terser/commits) --- updated-dependencies: - dependency-name: terser dependency-type: indirect ... Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> commit f08a2143c44f2352fda49563e92ba199a8f514d3 Author: Alfred Mountfield Date: Fri Jul 22 10:43:54 2022 +0100 Adding missing Python dependency (#846) commit 7bf8f576597f48f2bc70842d486befe9b4c47f02 Author: Ciaran Morinan <37743469+CiaranMn@users.noreply.github.com> Date: Thu Jul 21 17:18:33 2022 +0100 Return ALL types when selecting possible values or creating new entities (#837) * expand getAccountEntityTypes to also return all types (temporary hack) * fix test: bypass cache for listing account entity types, so they are current after updating an entity commit 9460f2317cb27d8167000b4c7317efee251e5b5f Author: Teymour Aldridge Date: Thu Jul 21 16:46:21 2022 +0100 Allow comments in engine json config files (#844) commit c65cb321d242919103b8c8f9064149473019621e Author: luisbettencourt <37453800+luisbettencourt@users.noreply.github.com> Date: Wed Jul 20 13:28:12 2022 +0100 Remove unsupported block types from swap list (#806) * remove unsupported block swap types * fix lint error * Hardcode swappable blocks by componentId * lint fix * PR feedback * Update packages/hash/frontend/src/blocks/page/BlockContext.tsx Co-authored-by: Nate Higgins * Update packages/hash/frontend/src/blocks/page/usePortals.tsx Co-authored-by: Nate Higgins * Update packages/hash/frontend/src/blocks/page/usePortals.tsx Co-authored-by: Nate Higgins * revert to id as optional parameter for renderPortal * lint fixes Co-authored-by: Nate Higgins commit af0da2d91bc951b5618e457b681657f78b8f8f5b Author: Ciaran Morinan <37743469+CiaranMn@users.noreply.github.com> Date: Tue Jul 19 19:39:19 2022 +0100 bump graph version (#825) Co-authored-by: Alexander Kachkaev commit 386175695d2f6e09baf7707fbf8c4f71552dee6c Author: Nate Higgins Date: Tue Jul 19 17:20:27 2022 +0100 Upgrade header & callout block to BP 0.2 (#826) commit 1f4632f39044959332be44a372d258b16b00aaf5 Author: Nate Higgins Date: Mon Jul 18 16:45:49 2022 +0100 Simplify portal implementation, improving performance (#820) commit f658a71c54974b12019ce4198d5f0f7c5b79f8f9 Author: Ugbala Valentino Date: Mon Jul 18 13:22:30 2022 +0100 Fix broken Table entity type page (#795) * stringify constraints commit b2a20abf92b8c2a5ffe576da40189046ecac00dc Author: West Date: Mon Jul 18 08:43:25 2022 +0000 Add rust-mode workaround for error_stack errors (#812) Co-authored-by: Tim Diekmann <21277928+TimDiekmann@users.noreply.github.com> commit e248d06d0b783a7d93875a7323d13e4ddd319fc9 Author: Alexander Kachkaev Date: Fri Jul 15 18:07:34 2022 +0100 Skip Playwright downloads by default to speed up CI (#813) commit 4cdadb59928777aef5484fb850fb32c430f1196d Author: Alexander Kachkaev Date: Fri Jul 15 17:27:26 2022 +0100 Cache frontend `.next` folder in CI (#810) commit 7e4bab06012144621c52e5e14be4f67e3d5c89cc Author: Ugbala Valentino Date: Thu Jul 14 15:42:54 2022 +0100 Fix bug where loading new blocks crashes other clients (#807) * ensure new blocks get defined during polling * add fallback to ensureBlocksDefined commit f007eb3553388bb62ed2fdc2664599612329fee4 Author: luisbettencourt <37453800+luisbettencourt@users.noreply.github.com> Date: Thu Jul 14 00:00:16 2022 +0100 insert block in the correct position (#782) Co-authored-by: Alexander Kachkaev commit 093f3fafff4f86210aa497a219d20a81979bd751 Author: luisbettencourt <37453800+luisbettencourt@users.noreply.github.com> Date: Wed Jul 13 23:49:10 2022 +0100 Add undo and redo actions to text blocks (#772) * Add undo and redo keymaps to prosemirror * PR feedback * PR feedback * Update packages/hash/shared/src/createProseMirrorState.ts Co-authored-by: Alexander Kachkaev * Update packages/hash/shared/src/createProseMirrorState.ts Co-authored-by: Alexander Kachkaev Co-authored-by: Alexander Kachkaev commit fe27f63ba562abb36b0f477d0c36c3cf025ea547 Author: Ciaran Morinan <37743469+CiaranMn@users.noreply.github.com> Date: Wed Jul 13 20:43:45 2022 +0100 add stage.hash.ai to api cors (#801) commit e6327ee1b3fe4ebc319188830ab4d7a6b35b0798 Author: Ciaran Morinan <37743469+CiaranMn@users.noreply.github.com> Date: Wed Jul 13 20:11:19 2022 +0100 send entity type for root entity to blocks (#800) commit d1d140e64393c185f90aa9bd986740b8f1af97a4 Author: Ugbala Valentino Date: Wed Jul 13 16:20:04 2022 +0100 Fix create page playwright test (#796) * fix failing playwright tests commit 9d01d30ea1707341387bd8fa21e637c70f9f8cfa Author: Teymour Aldridge Date: Wed Jul 13 11:49:22 2022 +0100 Turn some functions and traits into methods (#787) commit 3555f384b79dd2c7f0105a3753f30fb468c5ec9e Author: Ciaran Morinan <37743469+CiaranMn@users.noreply.github.com> Date: Wed Jul 13 10:57:55 2022 +0100 Upgrade HASH to use Block Protocol 0.2 (#752) commit 60291c3bc3fc656f866333de663fdf841a2a1db8 Author: Teymour Aldridge Date: Wed Jul 13 10:42:30 2022 +0100 Remove `batches` and `batches_mut` functions (#791) commit 1831bc84d6db7ba2f1d63ae5cf96c18ee0a045bf Author: Bilal Mahmoud Date: Tue Jul 12 19:30:04 2022 +0200 Support related errors in `error-stack` (#747) Co-authored-by: Tim Diekmann <21277928+TimDiekmann@users.noreply.github.com> commit bd7ff694dbd3afd9af53110bb8eb88c75f09d09f Author: Teymour Aldridge Date: Tue Jul 12 17:02:31 2022 +0100 Update v8 to latest version (#789) commit a1a3a9b236d0e58d2ba069d0817f8157849d8157 Author: Alexander Kachkaev Date: Tue Jul 12 12:50:47 2022 +0100 Update Node in Docker images from 16.14.2 to 16.16.0 (#786) commit 798e66454e89095098dcd37c3afcc36337389eba Author: Alexander Kachkaev Date: Tue Jul 12 10:18:56 2022 +0100 Update React to 18.2 (#769) commit 13ab41e8c9a73da87a7f44909cb9b9ee61ae2583 Author: Teymour Aldridge Date: Tue Jul 12 09:59:22 2022 +0100 Check path of `memory_id` not `id` when creating a `MemoryId` (#784) commit 6d9e19b060fdb0b7894e253ac88132e4b0c5e519 Author: David Wilkinson <6226576+nonparibus@users.noreply.github.com> Date: Mon Jul 11 19:43:09 2022 +0100 Update glossary definitions (#748) * Update digital-twin.mdx * Rename customer-relationship-management-system.mdx to crm.mdx * Rename content-management-system.mdx to cms.mdx * Rename applicant-tracking-system.mdx to ats.mdx * Rename fast-healthcare-interoperability-resources.mdx to fhir.mdx * Update and rename enterprise-resource-planning.mdx to erp.mdx * Update and rename robotic-process-automation.mdx to rpa.mdx * Update url_map.json `erp` and `rpa` changes reflected commit c791dec8c3db4930fdc8f1d40041899192d0910d Author: Tim Diekmann <21277928+TimDiekmann@users.noreply.github.com> Date: Mon Jul 11 19:01:14 2022 +0200 Improve Rust CI performance (#779) commit c81e2a18f364f073c6dc53693d998281d3b000ef Author: Alexander Kachkaev Date: Mon Jul 11 15:48:13 2022 +0100 Update GraphQL dependencies (#753) commit 1beb92c1f30c56b514cb34fef4c3f38311760aa1 Author: Teymour Aldridge Date: Mon Jul 11 12:53:38 2022 +0100 Revert v8 version (#778) commit 40eebcfcfc1e09ee21d65f6158d663098172974a Author: Tim Diekmann <21277928+TimDiekmann@users.noreply.github.com> Date: Mon Jul 11 13:15:28 2022 +0200 Create an extensive test suite (#777) * Add test suite to `error-stack` * Remove tests from source folder * Fix compatibility layer for `anyhow` and `eyre` * Fix bound on `Stream::attach_printable_lazy` * Properly re-export `StreamReportExt` as `StreamExt` * Improve error message for `ensure!` macro * Remove unneeded bound on `Report::current_context` * Fix `Display` output for `Report` commit 3282026a52d145a4d41d233ddac85e9e4e4c3dcb Author: luisbettencourt <37453800+luisbettencourt@users.noreply.github.com> Date: Mon Jul 11 11:04:02 2022 +0100 Introduce 'archived page' banner (#721) * archive page banner * fix banner collapse animation * use theme colors * prettier formatting * PR feedback * PR feedback * useArchivePage refecth query * apollo cache merge page properties * PR feedback * Apollo cache warning * lint fix * add unique identifier to PageProperties * fix missing pageEntityId in getAccountPages * tests fix Co-authored-by: David Wilkinson <6226576+nonparibus@users.noreply.github.com> Co-authored-by: Ciaran Morinan commit 72fc975f33c14f07ba8c13a8dddb8626ccd7fed6 Author: Tim Diekmann <21277928+TimDiekmann@users.noreply.github.com> Date: Mon Jul 11 11:36:00 2022 +0200 Greatly reduce the usage of `unsafe` code (#774) * Replace majority of `unsafe` code with safe code * Shrink the stack size of `Frame` to 2x `usize` in size * Move `FrameImpl` into it's own module commit 282a15cb0521dc61a6c7ee2341b528ffa423ee21 Author: luisbettencourt <37453800+luisbettencourt@users.noreply.github.com> Date: Mon Jul 11 10:14:40 2022 +0100 Fix multi-entity and multi-line mention insertion (#759) * fix suggester from and to indexes * PR feedback * PR feedback commit cb02e1f2362b6b7aeb8e9d3a41167c181966b5c9 Author: Tim Diekmann <21277928+TimDiekmann@users.noreply.github.com> Date: Sun Jul 10 14:12:08 2022 +0200 Add badge to `error-stack` readme for required version (#776) commit df0cf6c38fbdb6b14ad8ef3bc9af0694604c196d Author: Teymour Aldridge Date: Sun Jul 10 10:17:06 2022 +0100 Update engine dependencies (#765) * Update engine dependencies Co-authored-by: Tim Diekmann <21277928+TimDiekmann@users.noreply.github.com> commit 47e1de7673a057fb8d72c2d298c4543a2cbbfb09 Author: Teymour Aldridge Date: Sat Jul 9 21:43:42 2022 +0100 Load metaversion on the JavaScript side (#758) * Load metaversion on the Javascript side commit 48f3b82744a91e7e934cbfc356eb1e7017b35e10 Author: Tim Diekmann <21277928+TimDiekmann@users.noreply.github.com> Date: Fri Jul 8 16:40:42 2022 +0200 Update CHANGELOG.md (#773) commit 918923187422d8c0be152873c9f9ebad6ceaec4a Author: Tim Diekmann <21277928+TimDiekmann@users.noreply.github.com> Date: Fri Jul 8 16:16:32 2022 +0200 Add compatibility layer for `eyre` and `anyhow` (#763) commit aa0dfdc5db88c3cd53cc0f9eb502caaa37ff610f Author: luisbettencourt <37453800+luisbettencourt@users.noreply.github.com> Date: Fri Jul 8 13:52:11 2022 +0100 prevent words from breaking across lines (#767) Co-authored-by: Alexander Kachkaev commit b99461ba3dbbb25008b731679391b81d839e2057 Author: Tim Diekmann <21277928+TimDiekmann@users.noreply.github.com> Date: Fri Jul 8 10:50:37 2022 +0200 Fix stacked borrows for new miri version (#768) commit a6eaa29108833e41d400952dd702678cc1010a8e Author: Alexander Kachkaev Date: Thu Jul 7 18:51:58 2022 +0100 Move `getPhoto` to a separate file to fix hashdev build (#766) commit fb9ba535d360b4d75e1b4458d65ba9b152584291 Author: Ugbala Valentino Date: Thu Jul 7 18:37:40 2022 +0100 Improve ranking of users in @ mention menu (#754) * sort users in block suggester by org commit 687a38367f99f4aca24c4c8371b77bb9aba9c47a Author: Alexander Kachkaev Date: Thu Jul 7 15:14:02 2022 +0100 Remove `process` dependency (#757) commit 48214c2b83d7bf5d583be964662ac93d976a6182 Author: Alexander Kachkaev Date: Thu Jul 7 14:06:50 2022 +0100 Update Jest and TypeScript (#760) commit 920603e139f459bef6f5cd82a23886d02ab4a532 Author: Tim Diekmann <21277928+TimDiekmann@users.noreply.github.com> Date: Thu Jul 7 14:43:05 2022 +0200 Add link to open issues and discussions to readme (#764) commit 636514f905b88d887fa1ef8ccda6fc6a373200b8 Author: Teymour Aldridge Date: Thu Jul 7 13:02:11 2022 +0100 Test for assigment to immutable expressions (#742) * Test for assigment to immutable expressions. commit 043cc1f6e008c30d50a0ee5835f064d80b11f819 Author: Tim Diekmann <21277928+TimDiekmann@users.noreply.github.com> Date: Thu Jul 7 10:58:53 2022 +0200 Update labeler.yml (#762) commit 7d72b259249f05745ef9336b12f8a925d7b28798 Author: Teymour Aldridge Date: Wed Jul 6 12:28:29 2022 +0100 Update a small piece of documentation (#744) * Update changelog. * Update a small piece of documentation * Update documentation. commit 0a584e0418a007cc0775470de9373a3c78328fa5 Author: Nate Higgins Date: Tue Jul 5 15:33:30 2022 +0100 Remove storybook (#745) commit 1243f968e98b413b751e156b4cd55378e4f047c9 Author: luisbettencourt <37453800+luisbettencourt@users.noreply.github.com> Date: Tue Jul 5 13:31:50 2022 +0100 Handle outline styling correctly on click, versus tab events (#647) * override outline style * Added :focus-visible style to blocks * Firefox fix * Prevent keyboard navigation on editor * rollback Co-authored-by: Alexander Kachkaev commit b283cb4b066865e3ce372afda0de71dbcc961393 Author: Ugbala Valentino Date: Tue Jul 5 10:01:45 2022 +0100 Block Suggester improvements (#740) * add improvements to block suggester * filter blocks based on name and not description * add no results ui commit e17ba3725dc6f78959293c10777f27f4568070bc Author: Teymour Aldridge Date: Mon Jul 4 16:30:48 2022 +0100 Correct error message for failing tests (#743) * Correct error message for failing tests. * Fix grammar mistake. commit a0e7ffba45ed56246671aebac6c0aefd31f85e0e Author: Tim Diekmann <21277928+TimDiekmann@users.noreply.github.com> Date: Mon Jul 4 14:03:22 2022 +0200 Optimize CI cache and runs for Rust (#741) commit 0b3fd3406f6ca8f622f2a69cbb6a892514afceb8 Author: Teymour Aldridge Date: Mon Jul 4 11:33:52 2022 +0100 Add support for streams to `error-stack` (#718) * Add initial error stack streams. Co-authored-by: Tim Diekmann <21277928+TimDiekmann@users.noreply.github.com> commit 22482509294c90a72898d4307eaff8783b750c9d Author: Teymour Aldridge Date: Sat Jul 2 10:56:34 2022 +0100 Minor stylistic improvements to language docs (#725) * Minor stylistic improvements to language docs. * Update packages/engine/README.md Co-authored-by: David Wilkinson <6226576+nonparibus@users.noreply.github.com> * Update packages/engine/README.md Co-authored-by: David Wilkinson <6226576+nonparibus@users.noreply.github.com> Co-authored-by: David Wilkinson <6226576+nonparibus@users.noreply.github.com> commit d55ec465af4ca66d0ebb7e12453d26869360cb33 Author: Alexander Kachkaev Date: Fri Jul 1 18:21:28 2022 +0100 Move `resources` to a `sites/hashai/resources`, update Algolia script (#720) commit 4af0b17442929dce56bce57bfac53d070ce40f36 Author: Alfred Mountfield Date: Fri Jul 1 17:45:52 2022 +0100 Fix Python setup on macOS (#735) commit c57823fe694b3b1bb204eff25ef99e8aed6b7e35 Author: Teymour Aldridge Date: Fri Jul 1 16:49:52 2022 +0100 Don't compile memory resizing code on macOS (#731) * Don't compile memory resizing code on MacOS. commit d3299b8c00405cb681772970907365a2d4ee7bc4 Author: Teymour Aldridge Date: Fri Jul 1 16:03:18 2022 +0100 Add notes about shared memory non-resizeablility. (#724) * Add notes about shared memory non-resizeablility. Co-authored-by: Alfred Mountfield Co-authored-by: Alfred Mountfield commit 8dbcdc7a27d1f910a7953c094d82034c7f7efeee Author: Teymour Aldridge Date: Fri Jul 1 15:06:13 2022 +0100 Fix dead link (#732) commit f0eca2fd2a3b2ba66a97324e0b2a2edf0128143c Author: Alfred Mountfield Date: Fri Jul 1 14:26:01 2022 +0100 Improve architectural docs (#410) commit e5dedab9d6ec5501810cf254f62ce379fe738e14 Author: Tim Diekmann <21277928+TimDiekmann@users.noreply.github.com> Date: Fri Jul 1 13:55:05 2022 +0200 Add simple HASH Engine Dockerfile (#702) commit 46f0c0d622e2f98a3b9bb4833596b49066413002 Author: Tim Diekmann <21277928+TimDiekmann@users.noreply.github.com> Date: Fri Jul 1 11:48:18 2022 +0200 Support additional parameters for `cargo make test/miri` (#729) commit 2889b37ef2388cfd3de35719ef9ea3ad40d05f4d Author: luisbettencourt <37453800+luisbettencourt@users.noreply.github.com> Date: Thu Jun 30 21:28:23 2022 +0100 Fix API deployment (#726) * dockerfile codegen fix * PR feedback commit e589e72f30dbae3246c01260bb24fa965336f418 Author: Ugbala Valentino Date: Thu Jun 30 21:07:31 2022 +0300 Improve GitHub PR block (#705) * add styling improvements to block * use design system package in github PR block * port gh block to bp v0.2 * add preview image for bp hub commit df89888dc8e0d14da8ff6cb473093bc4490d4f54 Author: Alexander Kachkaev Date: Thu Jun 30 16:36:01 2022 +0100 Update URLs to docs and specs (#722) commit 65c5d6ccb5ec999b132b7d6994dc0440c0a62d8d Author: Teymour Aldridge Date: Thu Jun 30 16:03:15 2022 +0100 Add support for iterators to `error-stack` (#716) * Add support for iterators to `error-stack`. * Fix clippy errors. * Update packages/libs/error-stack/src/ext/iter.rs Co-authored-by: Tim Diekmann <21277928+TimDiekmann@users.noreply.github.com> * Apply suggestions from code review. * Apply further suggestions from code review. * Fix docs. * Fix spelling of attachment. * Add support for iterators to `error-stack`. * Fix clippy errors. * Update packages/libs/error-stack/src/ext/iter.rs Co-authored-by: Tim Diekmann <21277928+TimDiekmann@users.noreply.github.com> * Apply suggestions from code review. * Apply further suggestions from code review. * Fix docs. * Fix spelling of attachment. * Use Fn not FnOnce. * Use macro. * Add crate-level docs. * Update packages/libs/error-stack/src/ext/mod.rs Co-authored-by: Tim Diekmann <21277928+TimDiekmann@users.noreply.github.com> * Update packages/libs/error-stack/src/ext/iter.rs Co-authored-by: Tim Diekmann <21277928+TimDiekmann@users.noreply.github.com> * Update packages/libs/error-stack/src/ext/iter.rs Co-authored-by: Tim Diekmann <21277928+TimDiekmann@users.noreply.github.com> * Remove now incorrect statement from docs. * Change type from `A` to `T` * Update packages/libs/error-stack/src/ext/iter.rs Co-authored-by: Tim Diekmann <21277928+TimDiekmann@users.noreply.github.com> Co-authored-by: Alfred Mountfield Co-authored-by: Tim Diekmann <21277928+TimDiekmann@users.noreply.github.com> commit 46c75e1e808ec6b5d8e95c33f84a06bebb9ab392 Author: Ugbala Valentino Date: Thu Jun 30 16:06:46 2022 +0300 Persist expanded sidebar pages on route change (#711) * persist expanded sidebar pages on route change * sync html title with page's title commit ec150d507739f31c62128b18a661f7919e373cb7 Author: Teymour Aldridge Date: Wed Jun 29 18:15:06 2022 +0100 Fix a typo in the pull request template. (#719) publically -> publicly commit 1f1b66279060bf18cbcf0cbeb0765252ba6aa234 Author: Tim Diekmann <21277928+TimDiekmann@users.noreply.github.com> Date: Wed Jun 29 13:59:02 2022 +0200 Use `cargo make` in CI (#713) commit 0ceb0beb268718fc7a380e5e0a770e3609bbe3c8 Author: Alexander Kachkaev Date: Wed Jun 29 10:59:00 2022 +0200 Move `external-services` folder to `packages/hash` (#687) commit 78b91213292582935f47faefff4f07b485882c8d Author: luisbettencourt <37453800+luisbettencourt@users.noreply.github.com> Date: Tue Jun 28 17:28:28 2022 +0100 Enable page archiving (#690) * added page deletion * PR feedback * Update packages/hash/frontend/src/shared/layout/layout-with-sidebar/account-page-list/page-menu.tsx Co-authored-by: Ciaran Morinan <37743469+CiaranMn@users.noreply.github.com> * archive subpages * lint fix * Revert "archive subpages" This reverts commit 577d675a637c4fd087f1582ddf7c29e65ddba753. * Filter archived subpages on accountPages query Co-authored-by: Ben Werner * AccountPages Query documentation * useArchive hook return object Co-authored-by: Ciaran Morinan <37743469+CiaranMn@users.noreply.github.com> Co-authored-by: Ben Werner --- .env | 8 + .eslintrc.json | 4 +- .github/ISSUE_TEMPLATE/bug-report-block.md | 44 + .../ISSUE_TEMPLATE/bug-report-error-stack.md | 40 + .github/ISSUE_TEMPLATE/bug-report-hash-app.md | 41 + .../ISSUE_TEMPLATE/bug-report-hash-engine.md | 37 + .github/ISSUE_TEMPLATE/bug-report-website.md | 43 + .github/ISSUE_TEMPLATE/bug-report.md | 38 + .../feature-request-error-stack.md | 23 + .github/ISSUE_TEMPLATE/feature-request.md | 19 + .github/actions/warm-up-repo/action.yml | 14 +- .github/labeler.yml | 18 +- .github/pull_request_template.md | 2 +- .github/scripts/rust/requirements.txt | 1 + .github/scripts/rust/setup.py | 184 +- .github/workflows/ci.yml | 21 +- .github/workflows/codeql-analysis.yml | 2 +- .github/workflows/hash-backend-cd.yml | 10 +- .github/workflows/labeler.yml | 2 +- .github/workflows/rust.yml | 97 +- ...pload-index.yml => sync-algolia-index.yml} | 13 +- .gitignore | 2 +- .hashconfig.json | 3 - CONTRIBUTING.md | 2 +- LICENSE.md | 22 +- README.md | 7 +- packages/blocks/callout/README.md | 2 +- packages/blocks/callout/package.json | 3 +- packages/blocks/callout/src/app.tsx | 24 +- packages/blocks/embed/README.md | 2 +- packages/blocks/header/README.md | 2 +- packages/blocks/paragraph/README.md | 2 +- packages/blocks/paragraph/package.json | 10 +- packages/blocks/paragraph/src/app.tsx | 29 +- packages/blocks/paragraph/src/dev.tsx | 14 +- packages/blocks/toggle-item/src/app.tsx | 4 +- packages/engine/.dockerignore | 17 + packages/engine/.gitignore | 3 +- packages/engine/CONTRIBUTING.md | 2 +- packages/engine/Cargo.lock | 1070 +++++---- packages/engine/Cargo.toml | 14 +- packages/engine/Makefile.toml | 8 +- packages/engine/README.md | 82 +- packages/engine/bin/cli/Cargo.toml | 10 +- packages/engine/bin/cli/src/main.rs | 6 + packages/engine/bin/hash_engine/Cargo.toml | 6 +- packages/engine/bin/hash_engine/src/main.rs | 7 + packages/engine/docker/Dockerfile | 50 + packages/engine/docker/README.md | 36 + packages/engine/lib/execution/Cargo.toml | 32 +- packages/engine/lib/execution/src/error.rs | 2 +- .../context/agent_messages/collected.rs | 2 +- .../simulation/context/agent_messages/mod.rs | 40 +- .../simulation/context/api_requests/mod.rs | 43 +- .../src/package/simulation/context/mod.rs | 4 +- .../simulation/context/neighbors/map.rs | 8 +- .../simulation/context/neighbors/mod.rs | 40 +- .../simulation/output/analysis/analyzer.rs | 4 +- .../simulation/output/analysis/index_iter.rs | 2 +- .../state/behavior_execution/chain.rs | 79 +- .../state/behavior_execution/config.rs | 2 +- .../state/behavior_execution/fields.rs | 2 +- .../state/behavior_execution/mod.rs | 38 +- .../state/behavior_execution/package.js | 8 +- .../state/behavior_execution/package.py | 37 +- .../behavior_execution/reset_index_col.rs | 9 +- .../lib/execution/src/runner/comms/mod.rs | 44 +- .../execution/src/runner/javascript/batch.js | 30 +- .../src/runner/javascript/conversion.rs | 245 ++ .../src/runner/javascript/data_ffi.rs | 4 +- .../src/runner/javascript/embedded.rs | 89 + .../execution/src/runner/javascript/error.rs | 4 +- .../execution/src/runner/javascript/mod.rs | 1961 +--------------- .../src/runner/javascript/modules.rs | 144 ++ .../src/runner/javascript/reporting.rs | 170 ++ .../execution/src/runner/javascript/run.rs | 104 + .../execution/src/runner/javascript/runner.rs | 109 + .../execution/src/runner/javascript/state.js | 35 +- .../execution/src/runner/javascript/task.rs | 48 + .../thread_local_runner/array_from_js.rs | 405 ++++ .../javascript/thread_local_runner/flush.rs | 185 ++ .../javascript/thread_local_runner/mod.rs | 464 ++++ .../javascript/thread_local_runner/sync.rs | 127 ++ .../execution/src/runner/javascript/utils.rs | 64 + .../lib/execution/src/runner/python/batch.py | 12 +- .../src/runner/python/m1-requirements.txt | 5 + .../execution/src/runner/python/receiver.rs | 5 +- .../src/runner/python/requirements.txt | 7 +- .../lib/execution/src/runner/python/sender.rs | 60 +- .../lib/execution/src/runner/python/setup.py | 13 +- .../lib/execution/src/runner/python/setup.sh | 23 +- .../lib/execution/src/runner/python/state.py | 34 +- .../src/runner/rust/behavior_execution.rs | 2 +- .../src/runner/rust/behaviors/accessors.rs | 2 +- .../src/runner/rust/behaviors/mod.rs | 2 +- .../lib/execution/src/runner/rust/context.rs | 4 +- .../lib/execution/src/runner/rust/neighbor.rs | 2 +- .../lib/execution/src/runner/rust/state.rs | 4 +- .../lib/execution/src/task/shared_store.rs | 40 + .../engine/lib/execution/src/worker/mod.rs | 2 +- .../lib/execution/src/worker_pool/mod.rs | 6 +- .../engine/lib/experiment-control/Cargo.toml | 20 +- .../experiment-control/src/controller/mod.rs | 14 +- .../src/environment/logging.rs | 40 +- .../engine/lib/experiment-control/src/lib.rs | 10 + .../lib/experiment-structure/Cargo.toml | 27 +- .../src/experiment/plan.rs | 4 +- packages/engine/lib/memory/Cargo.toml | 22 +- .../memory/src/arrow/array_buffer_count.rs | 50 + .../lib/memory/src/arrow/batch/columns.rs | 28 + .../src/arrow/{batch.rs => batch/mod.rs} | 79 +- .../engine/lib/memory/src/arrow/buffer.rs | 41 + .../engine/lib/memory/src/arrow/change.rs | 10 +- .../engine/lib/memory/src/arrow/conversion.rs | 297 +-- .../engine/lib/memory/src/arrow/ffi/flush.rs | 38 +- .../engine/lib/memory/src/arrow/ffi/mod.rs | 58 +- .../memory/src/arrow/ffi/schema_conversion.rs | 11 +- .../arrow/flush/arrow2_growable_array_data.rs | 221 ++ .../src/arrow/{flush.rs => flush/mod.rs} | 75 +- packages/engine/lib/memory/src/arrow/ipc.rs | 187 -- .../engine/lib/memory/src/arrow/ipc/mod.rs | 46 + .../engine/lib/memory/src/arrow/ipc/read.rs | 77 + .../memory/src/arrow/ipc/serialize/LICENSE | 2 + .../src/arrow/ipc/serialize/calculate.rs | 646 ++++++ .../lib/memory/src/arrow/ipc/serialize/mod.rs | 74 + .../memory/src/arrow/ipc/serialize/write.rs | 737 ++++++ .../engine/lib/memory/src/arrow/ipc/test.rs | 342 +++ .../engine/lib/memory/src/arrow/ipc/write.rs | 170 ++ packages/engine/lib/memory/src/arrow/load.rs | 30 - .../lib/memory/src/arrow/meta/buffer.rs | 2 +- .../lib/memory/src/arrow/meta/column.rs | 7 +- .../lib/memory/src/arrow/meta/conversion.rs | 1023 +++++---- .../lib/memory/src/arrow/meta/dynamic_meta.rs | 120 +- .../engine/lib/memory/src/arrow/meta/mod.rs | 4 +- .../engine/lib/memory/src/arrow/meta/node.rs | 7 +- .../lib/memory/src/arrow/meta/static_meta.rs | 26 +- packages/engine/lib/memory/src/arrow/mod.rs | 22 +- .../lib/memory/src/arrow/record_batch.rs | 110 + .../engine/lib/memory/src/arrow/util/LICENSE | 202 ++ .../lib/memory/src/arrow/util/alignment.rs | 119 + .../lib/memory/src/arrow/util/bit_util.rs | 104 + .../engine/lib/memory/src/arrow/util/mod.rs | 7 + packages/engine/lib/memory/src/error.rs | 30 +- packages/engine/lib/memory/src/lib.rs | 2 + .../lib/memory/src/shared_memory/ffi.rs | 19 +- .../lib/memory/src/shared_memory/mod.rs | 2 +- .../lib/memory/src/shared_memory/padding.rs | 6 +- .../src/shared_memory/segment/buffers.rs | 50 + .../src/shared_memory/segment/cleanup.rs | 110 + .../src/shared_memory/segment/memory_id.rs | 61 + .../{segment.rs => segment/mod.rs} | 382 ++-- .../lib/memory/src/shared_memory/visitor.rs | 6 +- packages/engine/lib/nano/Cargo.toml | 14 +- packages/engine/lib/nano/build.rs | 5 - packages/engine/lib/nano/src/lib.rs | 6 + packages/engine/lib/orchestrator/Cargo.toml | 14 +- .../engine/lib/orchestrator/src/experiment.rs | 21 +- .../engine/lib/simulation-control/Cargo.toml | 21 +- .../src/command/create_remove/command.rs | 2 +- .../src/command/create_remove/migration.rs | 251 +- .../src/command/create_remove/plan.rs | 3 +- .../src/command/create_remove/planner.rs | 6 +- .../simulation-control/src/command/error.rs | 2 +- .../lib/simulation-control/src/command/mod.rs | 6 +- .../src/controller/packages.rs | 49 +- .../simulation-control/src/controller/run.rs | 20 +- .../simulation-control/src/controller/runs.rs | 2 +- .../lib/simulation-control/src/engine.rs | 11 +- .../engine/lib/simulation-control/src/lib.rs | 17 + .../lib/simulation-control/src/tests/arrow.rs | 42 +- .../simulation-control/src/tests/datastore.rs | 20 - packages/engine/lib/stateful/Cargo.toml | 23 +- .../lib/stateful/src/agent/arrow/array.rs | 138 +- .../src/agent/arrow/arrow_conversion.rs | 1 + .../lib/stateful/src/agent/arrow/batch.rs | 132 +- .../lib/stateful/src/agent/arrow/boolean.rs | 47 +- .../lib/stateful/src/agent/arrow/iterator.rs | 4 +- .../lib/stateful/src/agent/arrow/mod.rs | 2 + .../lib/stateful/src/agent/arrow/pool.rs | 30 +- .../stateful/src/agent/arrow/record_batch.rs | 223 +- .../engine/lib/stateful/src/agent/field.rs | 4 +- .../lib/stateful/src/agent/into_agent.rs | 67 +- .../engine/lib/stateful/src/agent/schema.rs | 8 +- .../engine/lib/stateful/src/context/batch.rs | 78 +- .../engine/lib/stateful/src/context/mod.rs | 18 +- .../engine/lib/stateful/src/context/schema.rs | 3 +- packages/engine/lib/stateful/src/error.rs | 5 +- .../lib/stateful/src/field/field_type.rs | 6 +- .../lib/stateful/src/field/fixed_size.rs | 2 +- packages/engine/lib/stateful/src/field/mod.rs | 4 +- .../engine/lib/stateful/src/field/schema.rs | 1 + .../engine/lib/stateful/src/field/spec.rs | 2 +- .../engine/lib/stateful/src/field/spec_map.rs | 12 +- .../engine/lib/stateful/src/global/dataset.rs | 8 +- .../lib/stateful/src/message/arrow/array.rs | 245 +- .../lib/stateful/src/message/arrow/column.rs | 62 +- .../lib/stateful/src/message/arrow/mod.rs | 4 +- .../src/message/arrow/record_batch.rs | 112 +- .../engine/lib/stateful/src/message/batch.rs | 202 +- .../engine/lib/stateful/src/message/loader.rs | 48 +- .../engine/lib/stateful/src/message/map.rs | 2 +- .../engine/lib/stateful/src/message/mod.rs | 4 +- .../lib/stateful/src/message/outbound.rs | 4 +- .../engine/lib/stateful/src/message/pool.rs | 32 +- .../engine/lib/stateful/src/message/schema.rs | 9 +- .../engine/lib/stateful/src/proxy/batch.rs | 4 + .../engine/lib/stateful/src/proxy/pool.rs | 18 - .../engine/lib/stateful/src/state/proxy.rs | 3 +- packages/engine/tests/experiment/error.rs | 25 +- packages/engine/tests/experiment/mod.rs | 10 +- packages/engine/tests/units/behavior/mod.rs | 2 +- .../tests/units/comments/experiments.json | 10 + .../units/comments/integration-test.json | 10 + .../tests/units/comments/src/behaviors/run.js | 3 + .../engine/tests/units/comments/src/init.json | 5 + .../tests/units/comments/views/analysis.json | 3 + packages/engine/tests/units/mod.rs | 6 + .../state/immutability/integration-test.json | 16 + .../immutability/src/behaviors/changing.js | 3 + .../src/behaviors/changing.js.json | 14 + .../immutability/src/behaviors/changing.py | 3 + .../src/behaviors/changing.py.json | 14 + .../units/state/immutability/src/init-js.json | 8 + .../units/state/immutability/src/init-py.json | 8 + packages/engine/tests/units/state/mod.rs | 2 + packages/hash/README.md | 43 +- packages/hash/api/package.json | 5 +- packages/hash/api/src/collab/save.ts | 2 - packages/hash/api/src/db/adapter.ts | 1 + .../postgres/link/getEntityIncomingLinks.ts | 2 +- .../graphql/resolvers/pages/accountPages.ts | 6 +- .../src/graphql/resolvers/pages/createPage.ts | 7 +- .../graphql/resolvers/pages/pageProperties.ts | 1 + .../graphql/resolvers/pages/setParentPage.ts | 10 +- .../api/src/graphql/typeDefs/page.typedef.ts | 10 +- packages/hash/api/src/model/page.model.ts | 31 +- packages/hash/backend-utils/src/postgres.ts | 1 + .../design-system/src/fontawesome-icon.tsx | 9 + packages/hash/docker/api/prod/Dockerfile | 7 +- packages/hash/docker/realtime/prod/Dockerfile | 4 +- .../hash/docker/search-loader/prod/Dockerfile | 7 +- packages/hash/docker/task-executor/Dockerfile | 4 +- packages/hash/frontend/package.json | 5 + .../BlockContextMenu/BlockContextMenu.tsx | 34 +- .../BlockContextMenu/BlockContextMenuItem.tsx | 10 + .../LoadEntityMenuContent.tsx | 25 +- .../frontend/src/blocks/page/BlockView.tsx | 19 +- .../src/blocks/page/ComponentView.tsx | 12 + .../frontend/src/blocks/page/LoadingView.tsx | 50 + .../frontend/src/blocks/page/PageBlock.tsx | 35 +- .../frontend/src/blocks/page/PageContext.tsx | 41 + .../frontend/src/blocks/page/PageTitle.tsx | 85 - .../src/blocks/page/PageTitle/PageTitle.tsx | 117 + .../src/blocks/page/PageTitle/utils.ts | 25 + .../blocks/page/collab/EditorConnection.ts | 30 +- .../src/blocks/page/createEditorView.ts | 23 +- .../createPlaceholderPlugin/Placeholder.tsx | 29 + .../createPlaceholderPlugin.tsx | 122 + .../page/createSuggester/createSuggester.tsx | 6 +- .../src/blocks/page/focusPageTitlePlugin.ts | 28 + .../frontend/src/blocks/page/style.module.css | 9 +- .../components/EmojiPicker/EmojiPicker.tsx | 13 + .../hash/frontend/src/components/PageIcon.tsx | 98 +- .../src/components/PageIconButton.tsx | 110 + .../src/components/PageLoadingState.tsx | 39 + .../components/RemoteBlock/RemoteBlock.tsx | 23 +- .../entityTypes/AccountEntityOfTypeList.tsx | 4 +- .../src/components/hooks/useAccountPages.ts | 28 +- .../src/components/hooks/useArchivePage.ts | 37 +- .../src/components/hooks/useCreatePage.ts | 73 +- .../src/components/hooks/useCreateSubPage.ts | 68 + .../components/hooks/useGetAllEntityTypes.ts | 24 - .../src/components/hooks/useReorderPage.ts | 55 + .../src/graphql/queries/account.queries.ts | 1 + .../src/graphql/queries/page.queries.ts | 16 +- packages/hash/frontend/src/lib/entities.ts | 64 +- .../pages/[account-slug]/[page-slug].page.tsx | 122 +- .../entities/[entity-id].page.tsx | 12 +- .../[account-slug]/entities/new.page.tsx | 17 +- .../entities/shared/simple-entity-editor.tsx | 10 +- .../entity-field-link-editor.tsx | 13 +- .../frontend/src/pages/shared/breadcrumbs.tsx | 5 +- .../src/pages/shared/top-context-bar.tsx | 47 +- .../layout-with-header/actions-dropdown.tsx | 19 +- .../account-entity-type-list.tsx | 7 +- .../layout-with-sidebar/account-page-list.tsx | 138 -- .../account-page-list-item.tsx | 60 + .../account-page-list/account-page-list.tsx | 330 +++ .../account-page-list/page-menu.tsx | 23 +- .../account-page-list/page-tree-item.tsx | 349 +-- .../account-page-list/pages-loading-state.tsx | 33 + .../account-page-list/utils.ts | 123 + .../layout/layout-with-sidebar/nav-link.tsx | 15 + .../layout/layout-with-sidebar/sidebar.tsx | 2 +- .../hash/integration/src/mockData/index.ts | 6 + .../src/tests/model/page.model.test.ts | 1 + packages/hash/playwright/package.json | 8 +- .../playwright/tests/entity-creation.spec.ts | 14 +- .../hash/playwright/tests/guest-user.spec.ts | 5 + .../playwright/tests/page-creation.spec.ts | 61 +- .../tests/page-readonly-mode.spec.ts | 52 + ...derived-payload-from-most-recent-email.ts} | 0 .../{loginUsingUi.ts => login-using-ui.ts} | 2 +- .../hash/playwright/tests/utils/reset-db.ts | 8 + .../hash/shared/src/ProsemirrorManager.ts | 16 - packages/hash/shared/src/blocks.ts | 14 +- .../hash/shared/src/createProseMirrorState.ts | 2 +- packages/hash/shared/src/prosemirror.ts | 33 +- .../hash/shared/src/queries/entity.queries.ts | 4 + .../hash/shared/src/wrapEntitiesPlugin.ts | 2 +- packages/libs/error-stack/.gitattributes | 3 + packages/libs/error-stack/CHANGELOG.md | 28 + packages/libs/error-stack/Cargo.toml | 45 +- packages/libs/error-stack/Makefile.toml | 112 +- packages/libs/error-stack/README.md | 21 +- packages/libs/error-stack/assets/full.png | Bin 0 -> 90771 bytes packages/libs/error-stack/build.rs | 23 +- packages/libs/error-stack/examples/demo.rs | 2 +- packages/libs/error-stack/macros/Cargo.toml | 21 + .../libs/error-stack/macros/Makefile.toml | 1 + .../error-stack/macros/rust-toolchain.toml | 2 + packages/libs/error-stack/macros/src/lib.rs | 1 + packages/libs/error-stack/rust-toolchain.toml | 4 + packages/libs/error-stack/rustfmt.toml | 3 + .../libs/error-stack/src/compat/anyhow.rs | 75 + packages/libs/error-stack/src/compat/eyre.rs | 72 + packages/libs/error-stack/src/compat/mod.rs | 39 + packages/libs/error-stack/src/context.rs | 37 +- packages/libs/error-stack/src/ext/iter.rs | 275 +++ packages/libs/error-stack/src/ext/mod.rs | 11 +- packages/libs/error-stack/src/ext/result.rs | 42 +- packages/libs/error-stack/src/ext/stream.rs | 297 +++ packages/libs/error-stack/src/fmt/hook.rs | 841 +++++++ packages/libs/error-stack/src/fmt/mod.rs | 1075 +++++++++ .../libs/error-stack/src/frame/attachment.rs | 20 - .../libs/error-stack/src/frame/erasable.rs | 41 - .../libs/error-stack/src/frame/frame_impl.rs | 216 ++ packages/libs/error-stack/src/frame/mod.rs | 242 +- packages/libs/error-stack/src/frame/vtable.rs | 221 -- packages/libs/error-stack/src/hook.rs | 367 ++- packages/libs/error-stack/src/iter.rs | 156 +- packages/libs/error-stack/src/lib.rs | 172 +- packages/libs/error-stack/src/macros.rs | 108 +- packages/libs/error-stack/src/report.rs | 509 +++-- packages/libs/error-stack/src/result.rs | 39 + packages/libs/error-stack/src/test_helper.rs | 55 - packages/libs/error-stack/tests/common.rs | 345 +++ .../libs/error-stack/tests/compiletest.rs | 7 + .../snapshots/doc/fmt__diagnostics_add.snap | 10 + .../tests/snapshots/doc/fmt__doc.snap | 12 + .../tests/snapshots/doc/fmt__emit.snap | 17 + .../tests/snapshots/doc/fmt__emit_alt.snap | 29 + .../snapshots/doc/fmt__hookcontext_cast.snap | 11 + .../doc/fmt__hookcontext_decrement.snap | 10 + .../snapshots/doc/fmt__hookcontext_emit.snap | 16 + .../doc/fmt__hookcontext_increment.snap | 10 + .../doc/fmt__hookcontext_storage.snap | 10 + .../tests/snapshots/doc/fmt_doc_alt.snap | 15 + .../tests/snapshots/doc/hook__debug_hook.snap | 9 + .../doc/hook__debug_hook_provide.snap | 10 + .../tests/snapshots/doc/hook__fallback.snap | 10 + .../snapshots/doc/hook__fallback_context.snap | 9 + .../tests/snapshots/doc/lib__suggestion.snap | 13 + .../snapshots/test_debug__full__alt.snap | 19 + .../snapshots/test_debug__full__complex.snap | 49 + .../snapshots/test_debug__full__hook.snap | 17 + .../test_debug__full__hook_context.snap | 17 + .../test_debug__full__hook_decr.snap | 19 + .../test_debug__full__hook_fallback.snap | 18 + .../test_debug__full__hook_incr.snap | 19 + .../test_debug__full__hook_multiple.snap | 18 + .../test_debug__full__hook_provider.snap | 21 + .../snapshots/test_debug__full__linear.snap | 27 + .../test_debug__full__linear_ext.snap | 27 + .../test_debug__full__multiline.snap | 20 + .../test_debug__full__multiline_ctx.snap | 27 + .../snapshots/test_debug__full__norm.snap | 17 + .../snapshots/test_debug__full__sources.snap | 48 + ...test_debug__full__sources_transparent.snap | 50 + .../snapshots/test_debug__sources_nested.snap | 78 + ...sources_nested@backtrace-pretty-print.snap | 104 + .../test_debug__sources_nested@backtrace.snap | 104 + ...st_debug__sources_nested@pretty-print.snap | 78 + ...sted@spantrace-backtrace-pretty-print.snap | 128 ++ ...g__sources_nested@spantrace-backtrace.snap | 128 ++ ...sources_nested@spantrace-pretty-print.snap | 104 + .../test_debug__sources_nested@spantrace.snap | 104 + .../test_debug__sources_nested_alternate.snap | 78 + ...sted_alternate@backtrace-pretty-print.snap | 104 + ...g__sources_nested_alternate@backtrace.snap | 104 + ...sources_nested_alternate@pretty-print.snap | 78 + ...nate@spantrace-backtrace-pretty-print.snap | 128 ++ ..._nested_alternate@spantrace-backtrace.snap | 128 ++ ...sted_alternate@spantrace-pretty-print.snap | 104 + ...g__sources_nested_alternate@spantrace.snap | 104 + .../libs/error-stack/tests/test_attach.rs | 102 + .../tests/test_attach_printable.rs | 108 + .../libs/error-stack/tests/test_backtrace.rs | 62 + .../error-stack/tests/test_change_context.rs | 102 + .../error-stack/tests/test_compatibility.rs | 305 +++ .../libs/error-stack/tests/test_conversion.rs | 25 + packages/libs/error-stack/tests/test_debug.rs | 592 +++++ .../libs/error-stack/tests/test_display.rs | 32 + .../libs/error-stack/tests/test_downcast.rs | 41 + .../libs/error-stack/tests/test_extend.rs | 78 + packages/libs/error-stack/tests/test_frame.rs | 133 ++ packages/libs/error-stack/tests/test_hooks.rs | 29 + packages/libs/error-stack/tests/test_iter.rs | 83 + .../libs/error-stack/tests/test_macros.rs | 94 + .../libs/error-stack/tests/test_provision.rs | 51 + .../libs/error-stack/tests/test_span_trace.rs | 119 + .../tests/ui/macro_invalid_args.rs | 60 + .../tests/ui/macro_invalid_args.stderr | 77 + .../libs/error-stack/tests/ui/must_use.rs | 20 + .../libs/error-stack/tests/ui/must_use.stderr | 11 + resources/LICENSE.md | 340 --- resources/README.md | 11 - resources/docs/graph/README.md | 15 - resources/docs/simulation/README.md | 34 - resources/docs/simulation/api/hcore.md | 127 -- .../simulation/api/register-for-access.md | 22 - .../concepts/design-considerations/README.md | 106 - .../managing-resource-access.md | 87 - .../designing-for-different-timescales.md | 56 - .../concepts/designing-with-distributions.md | 86 - .../designing-with-process-models/README.md | 36 - .../analyzing-process-models.md | 62 - .../custom-behaviors.md | 53 - .../experimenting-with-process-models.md | 64 - .../process-blocks.md | 316 --- .../process-model-concepts.md | 74 - .../structuring-a-process-model.md | 125 - ...ns-a-framework-for-process-optimization.md | 105 - .../using-data-in-a-process-model.md | 162 -- .../using-the-process-model-builder.md | 45 - .../designing-with-system-dynamics-models.md | 96 - ...ng-with-the-material-handling-libraries.md | 35 - resources/docs/simulation/concepts/physics.md | 63 - .../concepts/verification-and-validation.md | 113 - .../agent-based-modeling-basics-1.md | 32 - .../agent-messages/README.md | 87 - .../built-in-message-handlers.md | 217 -- .../agent-messages/handling-messages.md | 80 - .../agent-messages/sending-messages.md | 81 - .../anatomy-of-an-agent/README.md | 54 - .../anatomy-of-an-agent/context.md | 92 - .../anatomy-of-an-agent/creator-behaviors.md | 76 - .../anatomy-of-an-agent/initial-state.md | 203 -- .../programmable-initial-states.md | 69 - .../anatomy-of-an-agent/state.md | 156 -- .../visualization/README.md | 27 - .../visualization/networks.md | 65 - .../visualization/published-behaviors.md | 30 - .../visualization/shapes.md | 79 - .../creating-simulations/behaviors/README.md | 56 - .../behaviors/behavior-index.md | 53 - .../behaviors/behavior-keys/README.md | 29 - .../behavior-keys/advanced-scenarios.md | 38 - .../behaviors/behavior-keys/types.md | 40 - .../behaviors/composable-behaviors.md | 41 - .../behaviors/inheritance.md | 43 - .../collaboration/README.md | 39 - .../collaboration/forking-and-merging.md | 21 - .../collaboration/organizations.md | 25 - .../collaboration/sharing-releasing.md | 37 - .../configuration/README.md | 25 - .../configuration/basic-properties.md | 107 - .../configuration/topology/README.md | 125 - .../topology/bounds-and-wrapping.md | 38 - .../topology/distance-functions.md | 38 - .../topology/wrapping-presets-and-flags.md | 36 - .../creating-simulations/datasets/README.md | 110 - .../datasets/publishing-data-to-index.md | 45 - .../experiments/README.md | 73 - .../experiments/experiment-types.md | 129 -- .../experiments/optimization-experiments.md | 65 - .../optimization-experiments/README.md | 65 - .../complex-metrics.md | 116 - .../creating-simulations/h.cloud.md | 68 - .../creating-simulations/libraries/README.md | 43 - .../libraries/hash/README.md | 35 - .../libraries/hash/agent.md | 64 - .../libraries/hash/init.md | 319 --- .../libraries/hash/javascript-libraries.md | 85 - .../libraries/hash/neighbors.md | 167 -- .../libraries/hash/random.md | 71 - .../libraries/hash/spatial.md | 135 -- .../libraries/python-packages.md | 22 - .../creating-simulations/views/3d-viewer.md | 49 - .../creating-simulations/views/README.md | 48 - .../views/activity-history.md | 15 - .../views/analysis/README.md | 25 - .../analysis/metrics-syntax-reference.md | 272 --- .../views/analysis/metrics.md | 94 - .../views/analysis/plots-syntax-reference.md | 246 -- .../views/analysis/plots.md | 95 - .../creating-simulations/views/api-1.md | 13 - .../views/geospatial-viewer.md | 38 - .../creating-simulations/views/raw-data.md | 23 - .../simulation/extra/design-considerations.md | 50 - .../docs/simulation/extra/determinism.md | 97 - .../simulation/extra/memory-management.md | 21 - .../docs/simulation/extra/migrating/README.md | 15 - .../extra/migrating/anylogic/README.md | 19 - .../building-the-simulation/README.md | 24 - .../full-initialization.md | 77 - .../improving-our-visualization.md | 71 - .../tankers-to-port.md | 146 -- .../through-the-pipeline.md | 47 - .../trucks-on-the-move.md | 133 -- .../extra/migrating/anylogic/main-loop.md | 22 - .../extra/migrating/anylogic/mental-models.md | 57 - .../migrating/anylogic/planning-the-build.md | 148 -- .../docs/simulation/extra/performance.md | 61 - resources/docs/simulation/extra/shortcuts.md | 51 - .../simulation/extra/specs-requirements.md | 41 - .../extra/troubleshooting/README.md | 38 - .../extra/troubleshooting/error-reference.md | 53 - .../tutorials/building-process-models.md | 24 - .../building-process-models/README.md | 49 - .../analyzing-process-models.md | 89 - .../experimenting-with-process-models.md | 62 - .../process-model-concepts.md | 70 - .../using-data-in-a-process-model.md | 160 -- .../using-the-process-model-builder.md | 41 - .../create-a-simulation-dashboard.md | 270 --- .../extending-an-epidemic-model/README.md | 99 - .../add-heterogeneity.md | 112 - .../create-a-hospital.md | 206 -- .../create-an-icu.md | 374 --- .../create-testing-behavior.md | 411 ---- .../tutorials/financial-toolbox/README.md | 25 - .../financial-toolbox/economic-analysis.md | 49 - .../financial-toolbox/making-trades.md | 123 - .../financial-toolbox/modeling-a-portfolio.md | 80 - .../docs/simulation/tutorials/hello-hash.md | 509 ----- .../README.md | 13 - .../building-the-local-competition-model.md | 22 - .../business-collect-and-update.md | 173 -- .../customer-reply.md | 436 ---- .../initialization.md | 119 - .../phase-1-final-code.md | 303 --- .../query-customers.md | 170 -- .../set-up-environment.md | 33 - resources/docs/url_map.json | 569 ----- resources/glossary/actor-model.mdx | 152 -- resources/glossary/agent-based-modeling.mdx | 39 - .../glossary/applicant-tracking-system.mdx | 13 - resources/glossary/autocorrelation.mdx | 17 - resources/glossary/block-protocol.mdx | 59 - resources/glossary/blocks.mdx | 27 - resources/glossary/business-intelligence.mdx | 11 - .../glossary/business-process-modeling.mdx | 41 - .../glossary/content-management-system.mdx | 13 - ...ustomer-relationship-management-system.mdx | 11 - resources/glossary/dag.mdx | 32 - resources/glossary/data-drift.mdx | 17 - resources/glossary/data-mesh.mdx | 9 - resources/glossary/data-mining.mdx | 50 - resources/glossary/data-pipelines.mdx | 51 - resources/glossary/data-types.mdx | 32 - resources/glossary/datasets.mdx | 23 - .../glossary/deep-reinforcement-learning.mdx | 63 - resources/glossary/diff.mdx | 16 - resources/glossary/digital-twin.mdx | 11 - .../glossary/discrete-event-modeling.mdx | 45 - resources/glossary/ego-networks.mdx | 19 - .../glossary/enterprise-resource-planning.mdx | 17 - resources/glossary/entities.mdx | 37 - resources/glossary/entity-types.mdx | 25 - ...-healthcare-interoperability-resources.mdx | 18 - resources/glossary/fork.mdx | 26 - resources/glossary/graph-databases.mdx | 17 - .../graph-representation-learning.mdx | 16 - resources/glossary/graphs.mdx | 27 - resources/glossary/integrations.mdx | 19 - .../knowledge-graph-machine-learning.mdx | 14 - resources/glossary/knowledge-graphs.mdx | 15 - resources/glossary/links.mdx | 25 - resources/glossary/machine-learning.mdx | 51 - resources/glossary/merge.mdx | 38 - resources/glossary/metadata.mdx | 23 - resources/glossary/model-drift.mdx | 15 - resources/glossary/model-licensing.mdx | 51 - resources/glossary/model-sharing.mdx | 68 - resources/glossary/multi-agent-systems.mdx | 19 - resources/glossary/neural-nets.mdx | 21 - resources/glossary/optimization-methods.mdx | 17 - resources/glossary/parameters.mdx | 11 - resources/glossary/process-mining.mdx | 50 - .../glossary/project-management-software.mdx | 11 - resources/glossary/properties.mdx | 19 - .../glossary/robotic-process-automation.mdx | 13 - resources/glossary/robustness.mdx | 16 - resources/glossary/schemas.mdx | 52 - resources/glossary/simulation.mdx | 59 - .../glossary/single-synthetic-environment.mdx | 13 - resources/glossary/stochasticity.mdx | 13 - .../glossary/synthetic-data-generation.mdx | 25 - resources/glossary/system-dynamics.mdx | 40 - resources/glossary/time-series.mdx | 19 - resources/glossary/time.mdx | 21 - resources/glossary/types.mdx | 40 - resources/glossary/url_map.json | 355 --- resources/glossary/values.mdx | 39 - scripts/sync-algolia-index.ts | 159 -- sites/README.md | 2 - .../src/_pages/blog/1_block-design.mdx | 2 +- .../src/_pages/blog/3_one-principle.mdx | 4 +- yarn.lock | 2013 ++++++++--------- 610 files changed, 21572 insertions(+), 23256 deletions(-) create mode 100644 .github/ISSUE_TEMPLATE/bug-report-block.md create mode 100644 .github/ISSUE_TEMPLATE/bug-report-error-stack.md create mode 100644 .github/ISSUE_TEMPLATE/bug-report-hash-app.md create mode 100644 .github/ISSUE_TEMPLATE/bug-report-hash-engine.md create mode 100644 .github/ISSUE_TEMPLATE/bug-report-website.md create mode 100644 .github/ISSUE_TEMPLATE/bug-report.md create mode 100644 .github/ISSUE_TEMPLATE/feature-request-error-stack.md create mode 100644 .github/ISSUE_TEMPLATE/feature-request.md rename .github/workflows/{algolia-upload-index.yml => sync-algolia-index.yml} (52%) delete mode 100644 .hashconfig.json create mode 100644 packages/engine/.dockerignore create mode 100644 packages/engine/docker/Dockerfile create mode 100644 packages/engine/docker/README.md create mode 100644 packages/engine/lib/execution/src/runner/javascript/conversion.rs create mode 100644 packages/engine/lib/execution/src/runner/javascript/embedded.rs create mode 100644 packages/engine/lib/execution/src/runner/javascript/modules.rs create mode 100644 packages/engine/lib/execution/src/runner/javascript/reporting.rs create mode 100644 packages/engine/lib/execution/src/runner/javascript/run.rs create mode 100644 packages/engine/lib/execution/src/runner/javascript/runner.rs create mode 100644 packages/engine/lib/execution/src/runner/javascript/task.rs create mode 100644 packages/engine/lib/execution/src/runner/javascript/thread_local_runner/array_from_js.rs create mode 100644 packages/engine/lib/execution/src/runner/javascript/thread_local_runner/flush.rs create mode 100644 packages/engine/lib/execution/src/runner/javascript/thread_local_runner/mod.rs create mode 100644 packages/engine/lib/execution/src/runner/javascript/thread_local_runner/sync.rs create mode 100644 packages/engine/lib/execution/src/runner/javascript/utils.rs create mode 100644 packages/engine/lib/execution/src/runner/python/m1-requirements.txt create mode 100644 packages/engine/lib/memory/src/arrow/array_buffer_count.rs create mode 100644 packages/engine/lib/memory/src/arrow/batch/columns.rs rename packages/engine/lib/memory/src/arrow/{batch.rs => batch/mod.rs} (86%) create mode 100644 packages/engine/lib/memory/src/arrow/buffer.rs create mode 100644 packages/engine/lib/memory/src/arrow/flush/arrow2_growable_array_data.rs rename packages/engine/lib/memory/src/arrow/{flush.rs => flush/mod.rs} (88%) delete mode 100644 packages/engine/lib/memory/src/arrow/ipc.rs create mode 100644 packages/engine/lib/memory/src/arrow/ipc/mod.rs create mode 100644 packages/engine/lib/memory/src/arrow/ipc/read.rs create mode 100644 packages/engine/lib/memory/src/arrow/ipc/serialize/LICENSE create mode 100644 packages/engine/lib/memory/src/arrow/ipc/serialize/calculate.rs create mode 100644 packages/engine/lib/memory/src/arrow/ipc/serialize/mod.rs create mode 100644 packages/engine/lib/memory/src/arrow/ipc/serialize/write.rs create mode 100644 packages/engine/lib/memory/src/arrow/ipc/test.rs create mode 100644 packages/engine/lib/memory/src/arrow/ipc/write.rs delete mode 100644 packages/engine/lib/memory/src/arrow/load.rs create mode 100644 packages/engine/lib/memory/src/arrow/record_batch.rs create mode 100644 packages/engine/lib/memory/src/arrow/util/LICENSE create mode 100644 packages/engine/lib/memory/src/arrow/util/alignment.rs create mode 100644 packages/engine/lib/memory/src/arrow/util/bit_util.rs create mode 100644 packages/engine/lib/memory/src/arrow/util/mod.rs create mode 100644 packages/engine/lib/memory/src/shared_memory/segment/buffers.rs create mode 100644 packages/engine/lib/memory/src/shared_memory/segment/cleanup.rs create mode 100644 packages/engine/lib/memory/src/shared_memory/segment/memory_id.rs rename packages/engine/lib/memory/src/shared_memory/{segment.rs => segment/mod.rs} (67%) create mode 100644 packages/engine/lib/stateful/src/agent/arrow/arrow_conversion.rs create mode 100644 packages/engine/tests/units/comments/experiments.json create mode 100644 packages/engine/tests/units/comments/integration-test.json create mode 100644 packages/engine/tests/units/comments/src/behaviors/run.js create mode 100644 packages/engine/tests/units/comments/src/init.json create mode 100644 packages/engine/tests/units/comments/views/analysis.json create mode 100644 packages/engine/tests/units/state/immutability/integration-test.json create mode 100644 packages/engine/tests/units/state/immutability/src/behaviors/changing.js create mode 100644 packages/engine/tests/units/state/immutability/src/behaviors/changing.js.json create mode 100644 packages/engine/tests/units/state/immutability/src/behaviors/changing.py create mode 100644 packages/engine/tests/units/state/immutability/src/behaviors/changing.py.json create mode 100644 packages/engine/tests/units/state/immutability/src/init-js.json create mode 100644 packages/engine/tests/units/state/immutability/src/init-py.json create mode 100644 packages/hash/frontend/src/blocks/page/LoadingView.tsx create mode 100644 packages/hash/frontend/src/blocks/page/PageContext.tsx delete mode 100644 packages/hash/frontend/src/blocks/page/PageTitle.tsx create mode 100644 packages/hash/frontend/src/blocks/page/PageTitle/PageTitle.tsx create mode 100644 packages/hash/frontend/src/blocks/page/PageTitle/utils.ts create mode 100644 packages/hash/frontend/src/blocks/page/createPlaceholderPlugin/Placeholder.tsx create mode 100644 packages/hash/frontend/src/blocks/page/createPlaceholderPlugin/createPlaceholderPlugin.tsx create mode 100644 packages/hash/frontend/src/blocks/page/focusPageTitlePlugin.ts create mode 100644 packages/hash/frontend/src/components/PageIconButton.tsx create mode 100644 packages/hash/frontend/src/components/PageLoadingState.tsx create mode 100644 packages/hash/frontend/src/components/hooks/useCreateSubPage.ts delete mode 100644 packages/hash/frontend/src/components/hooks/useGetAllEntityTypes.ts create mode 100644 packages/hash/frontend/src/components/hooks/useReorderPage.ts delete mode 100644 packages/hash/frontend/src/shared/layout/layout-with-sidebar/account-page-list.tsx create mode 100644 packages/hash/frontend/src/shared/layout/layout-with-sidebar/account-page-list/account-page-list-item.tsx create mode 100644 packages/hash/frontend/src/shared/layout/layout-with-sidebar/account-page-list/account-page-list.tsx create mode 100644 packages/hash/frontend/src/shared/layout/layout-with-sidebar/account-page-list/pages-loading-state.tsx create mode 100644 packages/hash/frontend/src/shared/layout/layout-with-sidebar/account-page-list/utils.ts create mode 100644 packages/hash/playwright/tests/page-readonly-mode.spec.ts rename packages/hash/playwright/tests/utils/{getDerivedPayloadFromMostRecentEmail.ts => get-derived-payload-from-most-recent-email.ts} (100%) rename packages/hash/playwright/tests/utils/{loginUsingUi.ts => login-using-ui.ts} (93%) create mode 100644 packages/hash/playwright/tests/utils/reset-db.ts create mode 100644 packages/libs/error-stack/.gitattributes create mode 100644 packages/libs/error-stack/assets/full.png create mode 100644 packages/libs/error-stack/macros/Cargo.toml create mode 100644 packages/libs/error-stack/macros/Makefile.toml create mode 100644 packages/libs/error-stack/macros/rust-toolchain.toml create mode 100644 packages/libs/error-stack/macros/src/lib.rs create mode 100644 packages/libs/error-stack/rust-toolchain.toml create mode 100644 packages/libs/error-stack/src/compat/anyhow.rs create mode 100644 packages/libs/error-stack/src/compat/eyre.rs create mode 100644 packages/libs/error-stack/src/compat/mod.rs create mode 100644 packages/libs/error-stack/src/ext/iter.rs create mode 100644 packages/libs/error-stack/src/ext/stream.rs create mode 100644 packages/libs/error-stack/src/fmt/hook.rs create mode 100644 packages/libs/error-stack/src/fmt/mod.rs delete mode 100644 packages/libs/error-stack/src/frame/attachment.rs delete mode 100644 packages/libs/error-stack/src/frame/erasable.rs create mode 100644 packages/libs/error-stack/src/frame/frame_impl.rs delete mode 100644 packages/libs/error-stack/src/frame/vtable.rs create mode 100644 packages/libs/error-stack/src/result.rs delete mode 100644 packages/libs/error-stack/src/test_helper.rs create mode 100644 packages/libs/error-stack/tests/common.rs create mode 100644 packages/libs/error-stack/tests/compiletest.rs create mode 100644 packages/libs/error-stack/tests/snapshots/doc/fmt__diagnostics_add.snap create mode 100644 packages/libs/error-stack/tests/snapshots/doc/fmt__doc.snap create mode 100644 packages/libs/error-stack/tests/snapshots/doc/fmt__emit.snap create mode 100644 packages/libs/error-stack/tests/snapshots/doc/fmt__emit_alt.snap create mode 100644 packages/libs/error-stack/tests/snapshots/doc/fmt__hookcontext_cast.snap create mode 100644 packages/libs/error-stack/tests/snapshots/doc/fmt__hookcontext_decrement.snap create mode 100644 packages/libs/error-stack/tests/snapshots/doc/fmt__hookcontext_emit.snap create mode 100644 packages/libs/error-stack/tests/snapshots/doc/fmt__hookcontext_increment.snap create mode 100644 packages/libs/error-stack/tests/snapshots/doc/fmt__hookcontext_storage.snap create mode 100644 packages/libs/error-stack/tests/snapshots/doc/fmt_doc_alt.snap create mode 100644 packages/libs/error-stack/tests/snapshots/doc/hook__debug_hook.snap create mode 100644 packages/libs/error-stack/tests/snapshots/doc/hook__debug_hook_provide.snap create mode 100644 packages/libs/error-stack/tests/snapshots/doc/hook__fallback.snap create mode 100644 packages/libs/error-stack/tests/snapshots/doc/hook__fallback_context.snap create mode 100644 packages/libs/error-stack/tests/snapshots/doc/lib__suggestion.snap create mode 100644 packages/libs/error-stack/tests/snapshots/test_debug__full__alt.snap create mode 100644 packages/libs/error-stack/tests/snapshots/test_debug__full__complex.snap create mode 100644 packages/libs/error-stack/tests/snapshots/test_debug__full__hook.snap create mode 100644 packages/libs/error-stack/tests/snapshots/test_debug__full__hook_context.snap create mode 100644 packages/libs/error-stack/tests/snapshots/test_debug__full__hook_decr.snap create mode 100644 packages/libs/error-stack/tests/snapshots/test_debug__full__hook_fallback.snap create mode 100644 packages/libs/error-stack/tests/snapshots/test_debug__full__hook_incr.snap create mode 100644 packages/libs/error-stack/tests/snapshots/test_debug__full__hook_multiple.snap create mode 100644 packages/libs/error-stack/tests/snapshots/test_debug__full__hook_provider.snap create mode 100644 packages/libs/error-stack/tests/snapshots/test_debug__full__linear.snap create mode 100644 packages/libs/error-stack/tests/snapshots/test_debug__full__linear_ext.snap create mode 100644 packages/libs/error-stack/tests/snapshots/test_debug__full__multiline.snap create mode 100644 packages/libs/error-stack/tests/snapshots/test_debug__full__multiline_ctx.snap create mode 100644 packages/libs/error-stack/tests/snapshots/test_debug__full__norm.snap create mode 100644 packages/libs/error-stack/tests/snapshots/test_debug__full__sources.snap create mode 100644 packages/libs/error-stack/tests/snapshots/test_debug__full__sources_transparent.snap create mode 100644 packages/libs/error-stack/tests/snapshots/test_debug__sources_nested.snap create mode 100644 packages/libs/error-stack/tests/snapshots/test_debug__sources_nested@backtrace-pretty-print.snap create mode 100644 packages/libs/error-stack/tests/snapshots/test_debug__sources_nested@backtrace.snap create mode 100644 packages/libs/error-stack/tests/snapshots/test_debug__sources_nested@pretty-print.snap create mode 100644 packages/libs/error-stack/tests/snapshots/test_debug__sources_nested@spantrace-backtrace-pretty-print.snap create mode 100644 packages/libs/error-stack/tests/snapshots/test_debug__sources_nested@spantrace-backtrace.snap create mode 100644 packages/libs/error-stack/tests/snapshots/test_debug__sources_nested@spantrace-pretty-print.snap create mode 100644 packages/libs/error-stack/tests/snapshots/test_debug__sources_nested@spantrace.snap create mode 100644 packages/libs/error-stack/tests/snapshots/test_debug__sources_nested_alternate.snap create mode 100644 packages/libs/error-stack/tests/snapshots/test_debug__sources_nested_alternate@backtrace-pretty-print.snap create mode 100644 packages/libs/error-stack/tests/snapshots/test_debug__sources_nested_alternate@backtrace.snap create mode 100644 packages/libs/error-stack/tests/snapshots/test_debug__sources_nested_alternate@pretty-print.snap create mode 100644 packages/libs/error-stack/tests/snapshots/test_debug__sources_nested_alternate@spantrace-backtrace-pretty-print.snap create mode 100644 packages/libs/error-stack/tests/snapshots/test_debug__sources_nested_alternate@spantrace-backtrace.snap create mode 100644 packages/libs/error-stack/tests/snapshots/test_debug__sources_nested_alternate@spantrace-pretty-print.snap create mode 100644 packages/libs/error-stack/tests/snapshots/test_debug__sources_nested_alternate@spantrace.snap create mode 100644 packages/libs/error-stack/tests/test_attach.rs create mode 100644 packages/libs/error-stack/tests/test_attach_printable.rs create mode 100644 packages/libs/error-stack/tests/test_backtrace.rs create mode 100644 packages/libs/error-stack/tests/test_change_context.rs create mode 100644 packages/libs/error-stack/tests/test_compatibility.rs create mode 100644 packages/libs/error-stack/tests/test_conversion.rs create mode 100644 packages/libs/error-stack/tests/test_debug.rs create mode 100644 packages/libs/error-stack/tests/test_display.rs create mode 100644 packages/libs/error-stack/tests/test_downcast.rs create mode 100644 packages/libs/error-stack/tests/test_extend.rs create mode 100644 packages/libs/error-stack/tests/test_frame.rs create mode 100644 packages/libs/error-stack/tests/test_hooks.rs create mode 100644 packages/libs/error-stack/tests/test_iter.rs create mode 100644 packages/libs/error-stack/tests/test_macros.rs create mode 100644 packages/libs/error-stack/tests/test_provision.rs create mode 100644 packages/libs/error-stack/tests/test_span_trace.rs create mode 100644 packages/libs/error-stack/tests/ui/macro_invalid_args.rs create mode 100644 packages/libs/error-stack/tests/ui/macro_invalid_args.stderr create mode 100644 packages/libs/error-stack/tests/ui/must_use.rs create mode 100644 packages/libs/error-stack/tests/ui/must_use.stderr delete mode 100644 resources/LICENSE.md delete mode 100644 resources/README.md delete mode 100644 resources/docs/graph/README.md delete mode 100644 resources/docs/simulation/README.md delete mode 100644 resources/docs/simulation/api/hcore.md delete mode 100644 resources/docs/simulation/api/register-for-access.md delete mode 100644 resources/docs/simulation/concepts/design-considerations/README.md delete mode 100644 resources/docs/simulation/concepts/design-considerations/managing-resource-access.md delete mode 100644 resources/docs/simulation/concepts/designing-for-different-timescales.md delete mode 100644 resources/docs/simulation/concepts/designing-with-distributions.md delete mode 100644 resources/docs/simulation/concepts/designing-with-process-models/README.md delete mode 100644 resources/docs/simulation/concepts/designing-with-process-models/analyzing-process-models.md delete mode 100644 resources/docs/simulation/concepts/designing-with-process-models/custom-behaviors.md delete mode 100644 resources/docs/simulation/concepts/designing-with-process-models/experimenting-with-process-models.md delete mode 100644 resources/docs/simulation/concepts/designing-with-process-models/process-blocks.md delete mode 100644 resources/docs/simulation/concepts/designing-with-process-models/process-model-concepts.md delete mode 100644 resources/docs/simulation/concepts/designing-with-process-models/structuring-a-process-model.md delete mode 100644 resources/docs/simulation/concepts/designing-with-process-models/theory-of-constraints-and-simulations-a-framework-for-process-optimization.md delete mode 100644 resources/docs/simulation/concepts/designing-with-process-models/using-data-in-a-process-model.md delete mode 100644 resources/docs/simulation/concepts/designing-with-process-models/using-the-process-model-builder.md delete mode 100644 resources/docs/simulation/concepts/designing-with-system-dynamics-models.md delete mode 100644 resources/docs/simulation/concepts/designing-with-the-material-handling-libraries.md delete mode 100644 resources/docs/simulation/concepts/physics.md delete mode 100644 resources/docs/simulation/concepts/verification-and-validation.md delete mode 100644 resources/docs/simulation/creating-simulations/agent-based-modeling-basics-1.md delete mode 100644 resources/docs/simulation/creating-simulations/agent-messages/README.md delete mode 100644 resources/docs/simulation/creating-simulations/agent-messages/built-in-message-handlers.md delete mode 100644 resources/docs/simulation/creating-simulations/agent-messages/handling-messages.md delete mode 100644 resources/docs/simulation/creating-simulations/agent-messages/sending-messages.md delete mode 100644 resources/docs/simulation/creating-simulations/anatomy-of-an-agent/README.md delete mode 100644 resources/docs/simulation/creating-simulations/anatomy-of-an-agent/context.md delete mode 100644 resources/docs/simulation/creating-simulations/anatomy-of-an-agent/creator-behaviors.md delete mode 100644 resources/docs/simulation/creating-simulations/anatomy-of-an-agent/initial-state.md delete mode 100644 resources/docs/simulation/creating-simulations/anatomy-of-an-agent/programmable-initial-states.md delete mode 100644 resources/docs/simulation/creating-simulations/anatomy-of-an-agent/state.md delete mode 100644 resources/docs/simulation/creating-simulations/anatomy-of-an-agent/visualization/README.md delete mode 100644 resources/docs/simulation/creating-simulations/anatomy-of-an-agent/visualization/networks.md delete mode 100644 resources/docs/simulation/creating-simulations/anatomy-of-an-agent/visualization/published-behaviors.md delete mode 100644 resources/docs/simulation/creating-simulations/anatomy-of-an-agent/visualization/shapes.md delete mode 100644 resources/docs/simulation/creating-simulations/behaviors/README.md delete mode 100644 resources/docs/simulation/creating-simulations/behaviors/behavior-index.md delete mode 100644 resources/docs/simulation/creating-simulations/behaviors/behavior-keys/README.md delete mode 100644 resources/docs/simulation/creating-simulations/behaviors/behavior-keys/advanced-scenarios.md delete mode 100644 resources/docs/simulation/creating-simulations/behaviors/behavior-keys/types.md delete mode 100644 resources/docs/simulation/creating-simulations/behaviors/composable-behaviors.md delete mode 100644 resources/docs/simulation/creating-simulations/behaviors/inheritance.md delete mode 100644 resources/docs/simulation/creating-simulations/collaboration/README.md delete mode 100644 resources/docs/simulation/creating-simulations/collaboration/forking-and-merging.md delete mode 100644 resources/docs/simulation/creating-simulations/collaboration/organizations.md delete mode 100644 resources/docs/simulation/creating-simulations/collaboration/sharing-releasing.md delete mode 100644 resources/docs/simulation/creating-simulations/configuration/README.md delete mode 100644 resources/docs/simulation/creating-simulations/configuration/basic-properties.md delete mode 100644 resources/docs/simulation/creating-simulations/configuration/topology/README.md delete mode 100644 resources/docs/simulation/creating-simulations/configuration/topology/bounds-and-wrapping.md delete mode 100644 resources/docs/simulation/creating-simulations/configuration/topology/distance-functions.md delete mode 100644 resources/docs/simulation/creating-simulations/configuration/topology/wrapping-presets-and-flags.md delete mode 100644 resources/docs/simulation/creating-simulations/datasets/README.md delete mode 100644 resources/docs/simulation/creating-simulations/datasets/publishing-data-to-index.md delete mode 100644 resources/docs/simulation/creating-simulations/experiments/README.md delete mode 100644 resources/docs/simulation/creating-simulations/experiments/experiment-types.md delete mode 100644 resources/docs/simulation/creating-simulations/experiments/optimization-experiments.md delete mode 100644 resources/docs/simulation/creating-simulations/experiments/optimization-experiments/README.md delete mode 100644 resources/docs/simulation/creating-simulations/experiments/optimization-experiments/complex-metrics.md delete mode 100644 resources/docs/simulation/creating-simulations/h.cloud.md delete mode 100644 resources/docs/simulation/creating-simulations/libraries/README.md delete mode 100644 resources/docs/simulation/creating-simulations/libraries/hash/README.md delete mode 100644 resources/docs/simulation/creating-simulations/libraries/hash/agent.md delete mode 100644 resources/docs/simulation/creating-simulations/libraries/hash/init.md delete mode 100644 resources/docs/simulation/creating-simulations/libraries/hash/javascript-libraries.md delete mode 100644 resources/docs/simulation/creating-simulations/libraries/hash/neighbors.md delete mode 100644 resources/docs/simulation/creating-simulations/libraries/hash/random.md delete mode 100644 resources/docs/simulation/creating-simulations/libraries/hash/spatial.md delete mode 100644 resources/docs/simulation/creating-simulations/libraries/python-packages.md delete mode 100644 resources/docs/simulation/creating-simulations/views/3d-viewer.md delete mode 100644 resources/docs/simulation/creating-simulations/views/README.md delete mode 100644 resources/docs/simulation/creating-simulations/views/activity-history.md delete mode 100644 resources/docs/simulation/creating-simulations/views/analysis/README.md delete mode 100644 resources/docs/simulation/creating-simulations/views/analysis/metrics-syntax-reference.md delete mode 100644 resources/docs/simulation/creating-simulations/views/analysis/metrics.md delete mode 100644 resources/docs/simulation/creating-simulations/views/analysis/plots-syntax-reference.md delete mode 100644 resources/docs/simulation/creating-simulations/views/analysis/plots.md delete mode 100644 resources/docs/simulation/creating-simulations/views/api-1.md delete mode 100644 resources/docs/simulation/creating-simulations/views/geospatial-viewer.md delete mode 100644 resources/docs/simulation/creating-simulations/views/raw-data.md delete mode 100644 resources/docs/simulation/extra/design-considerations.md delete mode 100644 resources/docs/simulation/extra/determinism.md delete mode 100644 resources/docs/simulation/extra/memory-management.md delete mode 100644 resources/docs/simulation/extra/migrating/README.md delete mode 100644 resources/docs/simulation/extra/migrating/anylogic/README.md delete mode 100644 resources/docs/simulation/extra/migrating/anylogic/building-the-simulation/README.md delete mode 100644 resources/docs/simulation/extra/migrating/anylogic/building-the-simulation/full-initialization.md delete mode 100644 resources/docs/simulation/extra/migrating/anylogic/building-the-simulation/improving-our-visualization.md delete mode 100644 resources/docs/simulation/extra/migrating/anylogic/building-the-simulation/tankers-to-port.md delete mode 100644 resources/docs/simulation/extra/migrating/anylogic/building-the-simulation/through-the-pipeline.md delete mode 100644 resources/docs/simulation/extra/migrating/anylogic/building-the-simulation/trucks-on-the-move.md delete mode 100644 resources/docs/simulation/extra/migrating/anylogic/main-loop.md delete mode 100644 resources/docs/simulation/extra/migrating/anylogic/mental-models.md delete mode 100644 resources/docs/simulation/extra/migrating/anylogic/planning-the-build.md delete mode 100644 resources/docs/simulation/extra/performance.md delete mode 100644 resources/docs/simulation/extra/shortcuts.md delete mode 100644 resources/docs/simulation/extra/specs-requirements.md delete mode 100644 resources/docs/simulation/extra/troubleshooting/README.md delete mode 100644 resources/docs/simulation/extra/troubleshooting/error-reference.md delete mode 100644 resources/docs/simulation/tutorials/building-process-models.md delete mode 100644 resources/docs/simulation/tutorials/building-process-models/README.md delete mode 100644 resources/docs/simulation/tutorials/building-process-models/analyzing-process-models.md delete mode 100644 resources/docs/simulation/tutorials/building-process-models/experimenting-with-process-models.md delete mode 100644 resources/docs/simulation/tutorials/building-process-models/process-model-concepts.md delete mode 100644 resources/docs/simulation/tutorials/building-process-models/using-data-in-a-process-model.md delete mode 100644 resources/docs/simulation/tutorials/building-process-models/using-the-process-model-builder.md delete mode 100644 resources/docs/simulation/tutorials/create-a-simulation-dashboard.md delete mode 100644 resources/docs/simulation/tutorials/extending-an-epidemic-model/README.md delete mode 100644 resources/docs/simulation/tutorials/extending-an-epidemic-model/add-heterogeneity.md delete mode 100644 resources/docs/simulation/tutorials/extending-an-epidemic-model/create-a-hospital.md delete mode 100644 resources/docs/simulation/tutorials/extending-an-epidemic-model/create-an-icu.md delete mode 100644 resources/docs/simulation/tutorials/extending-an-epidemic-model/create-testing-behavior.md delete mode 100644 resources/docs/simulation/tutorials/financial-toolbox/README.md delete mode 100644 resources/docs/simulation/tutorials/financial-toolbox/economic-analysis.md delete mode 100644 resources/docs/simulation/tutorials/financial-toolbox/making-trades.md delete mode 100644 resources/docs/simulation/tutorials/financial-toolbox/modeling-a-portfolio.md delete mode 100644 resources/docs/simulation/tutorials/hello-hash.md delete mode 100644 resources/docs/simulation/tutorials/phase-1-building-a-simple-hotelling-model-in-2d/README.md delete mode 100644 resources/docs/simulation/tutorials/phase-1-building-a-simple-hotelling-model-in-2d/building-the-local-competition-model.md delete mode 100644 resources/docs/simulation/tutorials/phase-1-building-a-simple-hotelling-model-in-2d/business-collect-and-update.md delete mode 100644 resources/docs/simulation/tutorials/phase-1-building-a-simple-hotelling-model-in-2d/customer-reply.md delete mode 100644 resources/docs/simulation/tutorials/phase-1-building-a-simple-hotelling-model-in-2d/initialization.md delete mode 100644 resources/docs/simulation/tutorials/phase-1-building-a-simple-hotelling-model-in-2d/phase-1-final-code.md delete mode 100644 resources/docs/simulation/tutorials/phase-1-building-a-simple-hotelling-model-in-2d/query-customers.md delete mode 100644 resources/docs/simulation/tutorials/phase-1-building-a-simple-hotelling-model-in-2d/set-up-environment.md delete mode 100644 resources/docs/url_map.json delete mode 100644 resources/glossary/actor-model.mdx delete mode 100644 resources/glossary/agent-based-modeling.mdx delete mode 100644 resources/glossary/applicant-tracking-system.mdx delete mode 100644 resources/glossary/autocorrelation.mdx delete mode 100644 resources/glossary/block-protocol.mdx delete mode 100644 resources/glossary/blocks.mdx delete mode 100644 resources/glossary/business-intelligence.mdx delete mode 100644 resources/glossary/business-process-modeling.mdx delete mode 100644 resources/glossary/content-management-system.mdx delete mode 100644 resources/glossary/customer-relationship-management-system.mdx delete mode 100644 resources/glossary/dag.mdx delete mode 100644 resources/glossary/data-drift.mdx delete mode 100644 resources/glossary/data-mesh.mdx delete mode 100644 resources/glossary/data-mining.mdx delete mode 100644 resources/glossary/data-pipelines.mdx delete mode 100644 resources/glossary/data-types.mdx delete mode 100644 resources/glossary/datasets.mdx delete mode 100644 resources/glossary/deep-reinforcement-learning.mdx delete mode 100644 resources/glossary/diff.mdx delete mode 100644 resources/glossary/digital-twin.mdx delete mode 100644 resources/glossary/discrete-event-modeling.mdx delete mode 100644 resources/glossary/ego-networks.mdx delete mode 100644 resources/glossary/enterprise-resource-planning.mdx delete mode 100644 resources/glossary/entities.mdx delete mode 100644 resources/glossary/entity-types.mdx delete mode 100644 resources/glossary/fast-healthcare-interoperability-resources.mdx delete mode 100644 resources/glossary/fork.mdx delete mode 100644 resources/glossary/graph-databases.mdx delete mode 100644 resources/glossary/graph-representation-learning.mdx delete mode 100644 resources/glossary/graphs.mdx delete mode 100644 resources/glossary/integrations.mdx delete mode 100644 resources/glossary/knowledge-graph-machine-learning.mdx delete mode 100644 resources/glossary/knowledge-graphs.mdx delete mode 100644 resources/glossary/links.mdx delete mode 100644 resources/glossary/machine-learning.mdx delete mode 100644 resources/glossary/merge.mdx delete mode 100644 resources/glossary/metadata.mdx delete mode 100644 resources/glossary/model-drift.mdx delete mode 100644 resources/glossary/model-licensing.mdx delete mode 100644 resources/glossary/model-sharing.mdx delete mode 100644 resources/glossary/multi-agent-systems.mdx delete mode 100644 resources/glossary/neural-nets.mdx delete mode 100644 resources/glossary/optimization-methods.mdx delete mode 100644 resources/glossary/parameters.mdx delete mode 100644 resources/glossary/process-mining.mdx delete mode 100644 resources/glossary/project-management-software.mdx delete mode 100644 resources/glossary/properties.mdx delete mode 100644 resources/glossary/robotic-process-automation.mdx delete mode 100644 resources/glossary/robustness.mdx delete mode 100644 resources/glossary/schemas.mdx delete mode 100644 resources/glossary/simulation.mdx delete mode 100644 resources/glossary/single-synthetic-environment.mdx delete mode 100644 resources/glossary/stochasticity.mdx delete mode 100644 resources/glossary/synthetic-data-generation.mdx delete mode 100644 resources/glossary/system-dynamics.mdx delete mode 100644 resources/glossary/time-series.mdx delete mode 100644 resources/glossary/time.mdx delete mode 100644 resources/glossary/types.mdx delete mode 100644 resources/glossary/url_map.json delete mode 100644 resources/glossary/values.mdx delete mode 100644 scripts/sync-algolia-index.ts diff --git a/.env b/.env index 75e3693693f..1388c7595e3 100644 --- a/.env +++ b/.env @@ -65,3 +65,11 @@ ORY_KRATOS_PUBLIC_URL=http://127.0.0.1:4433 ORY_KRATOS_ADMIN_URL=HTTP://127.0.0.1:4434 KRATOS_API_KEY=secret + + +########################################### +## Aliases for dockerized external services +########################################### +## +## These variables are consumed in packages/hash/external-services/docker-compose.yml → env_file. +## Using `env` → POSTGRES_USER=${HASH_PG_USER} does not give access to values in this file. diff --git a/.eslintrc.json b/.eslintrc.json index 1135f2e4277..fbee0f93fde 100644 --- a/.eslintrc.json +++ b/.eslintrc.json @@ -52,11 +52,11 @@ "message": "Please replace `any` with a specific type" }, { - "selector": "CallExpression[callee.object.name=/^(EditorState|NodeSelection|TextSelection|DecorationSet|ProsemirrorNode|MarkType)$/][callee.property.name=create]:not([typeParameters])", + "selector": "CallExpression[callee.object.name=/^(EditorState|NodeSelection|TextSelection|ProsemirrorNode|MarkType)$/][callee.property.name=create]:not([typeParameters])", "message": "Please provide a generic to avoid implicit `any`" }, { - "selector": "CallExpression[callee.object.name=/^(EditorState|NodeSelection|TextSelection|DecorationSet|ProsemirrorNode|MarkType)$/][callee.property.name=create][typeParameters.params.0.type=TSAnyKeyword]", + "selector": "CallExpression[callee.object.name=/^(EditorState|NodeSelection|TextSelection|ProsemirrorNode|MarkType)$/][callee.property.name=create][typeParameters.params.0.type=TSAnyKeyword]", "message": "Please replace `any` with a specific type" }, { diff --git a/.github/ISSUE_TEMPLATE/bug-report-block.md b/.github/ISSUE_TEMPLATE/bug-report-block.md new file mode 100644 index 00000000000..f4c9c8b4e67 --- /dev/null +++ b/.github/ISSUE_TEMPLATE/bug-report-block.md @@ -0,0 +1,44 @@ +--- +name: Bug report (block) +about: Create a report to help us improve our blocks +title: "[BUG]" +labels: + - A-blocks + - C-bug +--- + +**Block impacted** +The name of the block impacted. + +**Describe the bug** +A clear and concise description of what the bug is. + +**To reproduce** +Steps to reproduce the behavior: + +1. Go to '...' +1. Click on '...' +1. Scroll down to '...' +1. See error + +**Expected behavior** +A clear and concise description of what you expected to happen. + +**Screenshots** +If applicable, add screenshots to help explain your problem. + +**Desktop (please complete the following information):** + +- OS: [e.g. iOS] +- Browser [e.g. chrome, safari] +- Version [e.g. 22] + +**Smartphone (please complete the following information):** + +- Device: [e.g. iPhone6] +- OS: [e.g. iOS8.1] +- Browser [e.g. stock browser, safari] +- Version [e.g. 22] + +**Additional context** +Add any other context about the problem here. diff --git a/.github/ISSUE_TEMPLATE/bug-report-error-stack.md b/.github/ISSUE_TEMPLATE/bug-report-error-stack.md new file mode 100644 index 00000000000..272edb9b61c --- /dev/null +++ b/.github/ISSUE_TEMPLATE/bug-report-error-stack.md @@ -0,0 +1,40 @@ +--- +name: Bug report (`error-stack`) +about: Create a report to help us improve `error-stack` +title: "[BUG]" +labels: + - A-error-stack + - C-bug +assignees: + - Alfred-Mountfield + - TimDiekmann +--- + +**Describe the bug** +A clear and concise description of what the bug is. + +**To reproduce** +Steps to reproduce the behavior: + +```rust +fn main() { + // How to reproduce the issue +} +``` + +**Expected behavior** +A clear and concise description of what you expected to happen. + +**Screenshots** +If applicable, add screenshots to help explain your problem. + +**Desktop (please complete the following information):** + +- OS: [e.g. macOS] +- rustc: [e.g. nightly-2020-08-08] +- target: [e.g. x86_64-unknown-linux-gnu] +- Version: [e.g. 0.1.1] +- Features: [e.g. default, spantrace] + +**Additional context** +Add any other context about the problem here. diff --git a/.github/ISSUE_TEMPLATE/bug-report-hash-app.md b/.github/ISSUE_TEMPLATE/bug-report-hash-app.md new file mode 100644 index 00000000000..4771c0b1053 --- /dev/null +++ b/.github/ISSUE_TEMPLATE/bug-report-hash-app.md @@ -0,0 +1,41 @@ +--- +name: Bug report (HASH App) +about: Create a report to help us improve HASH +title: "[BUG]" +labels: + - A-hash + - C-bug +--- + +**Describe the bug** +A clear and concise description of what the bug is. + +**To reproduce** +Steps to reproduce the behavior: + +1. Go to '...' +1. Click on '...' +1. Scroll down to '...' +1. See error + +**Expected behavior** +A clear and concise description of what you expected to happen. + +**Screenshots** +If applicable, add screenshots to help explain your problem. + +**Desktop (please complete the following information):** + +- OS: [e.g. iOS] +- Browser [e.g. chrome, safari] +- Version [e.g. 22] + +**Smartphone (please complete the following information):** + +- Device: [e.g. iPhone6] +- OS: [e.g. iOS8.1] +- Browser [e.g. stock browser, safari] +- Version [e.g. 22] + +**Additional context** +Add any other context about the problem here. diff --git a/.github/ISSUE_TEMPLATE/bug-report-hash-engine.md b/.github/ISSUE_TEMPLATE/bug-report-hash-engine.md new file mode 100644 index 00000000000..5a93c5348db --- /dev/null +++ b/.github/ISSUE_TEMPLATE/bug-report-hash-engine.md @@ -0,0 +1,37 @@ +--- +name: Bug report (HASH Engine) +about: Create a report to help us improve HASH Engine +title: "[BUG]" +labels: + - A-engine + - C-bug +assignees: + - Alfred-Mountfield + - TimDiekmann +--- + +**Describe the bug** +A clear and concise description of what the bug is. + +**To reproduce** +Where possible, please link us to your simulation project on HASH to help us debug. Steps to reproduce the behavior: + +1. Go to '...' +1. Click on '...' +1. Scroll down to '...' +1. See error + +**Expected behavior** +A clear and concise description of what you expected to happen. + +**Screenshots** +If applicable, add screenshots to help explain your problem. + +**Desktop (please complete the following information):** + +- OS: [e.g. macOS] +- rustc: [e.g. nightly-2020-08-08] +- target: [e.g. x86_64-unknown-linux-gnu] + +**Additional context** +Add any other context about the problem here, e.g. the log output. diff --git a/.github/ISSUE_TEMPLATE/bug-report-website.md b/.github/ISSUE_TEMPLATE/bug-report-website.md new file mode 100644 index 00000000000..658b749b6a3 --- /dev/null +++ b/.github/ISSUE_TEMPLATE/bug-report-website.md @@ -0,0 +1,43 @@ +--- +name: Bug report (website) +about: Create a report to help us improve our websites +title: "[BUG]" +labels: + - C-bug +--- + +**Website URL** +The full URL of the page on which you experienced the bug. + +**Describe the bug** +A clear and concise description of what the bug is. + +**To reproduce** +Steps to reproduce the behavior: + +1. Go to '...' +1. Click on '...' +1. Scroll down to '...' +1. See error + +**Expected behavior** +A clear and concise description of what you expected to happen. + +**Screenshots** +If applicable, add screenshots to help explain your problem. + +**Desktop (please complete the following information):** + +- OS: [e.g. iOS] +- Browser [e.g. chrome, safari] +- Version [e.g. 22] + +**Smartphone (please complete the following information):** + +- Device: [e.g. iPhone6] +- OS: [e.g. iOS8.1] +- Browser [e.g. stock browser, safari] +- Version [e.g. 22] + +**Additional context** +Add any other context about the problem here. diff --git a/.github/ISSUE_TEMPLATE/bug-report.md b/.github/ISSUE_TEMPLATE/bug-report.md new file mode 100644 index 00000000000..153ee6c7f6c --- /dev/null +++ b/.github/ISSUE_TEMPLATE/bug-report.md @@ -0,0 +1,38 @@ +--- +name: Bug report +about: Create a report to help us improve +title: "" +--- + +**Describe the bug** +A clear and concise description of what the bug is. + +**To reproduce** +Steps to reproduce the behavior: + +1. Go to '...' +1. Click on '...' +1. Scroll down to '...' +1. See error + +**Expected behavior** +A clear and concise description of what you expected to happen. + +**Screenshots** +If applicable, add screenshots to help explain your problem. + +**Desktop (please complete the following information):** + +- OS: [e.g. iOS] +- Browser [e.g. chrome, safari] +- Version [e.g. 22] + +**Smartphone (please complete the following information):** + +- Device: [e.g. iPhone6] +- OS: [e.g. iOS8.1] +- Browser [e.g. stock browser, safari] +- Version [e.g. 22] + +**Additional context** +Add any other context about the problem here. diff --git a/.github/ISSUE_TEMPLATE/feature-request-error-stack.md b/.github/ISSUE_TEMPLATE/feature-request-error-stack.md new file mode 100644 index 00000000000..7478c5ca856 --- /dev/null +++ b/.github/ISSUE_TEMPLATE/feature-request-error-stack.md @@ -0,0 +1,23 @@ +--- +name: Feature request (`error-stack`) +about: Suggest an idea, feature or enhancement to help us improve `error-stack` +title: "" +labels: + - A-error-stack + - C-enhancement +assignees: + - Alfred-Mountfield + - TimDiekmann +--- + +**Is your feature request related to a problem? Please describe.** +A clear and concise description of what the problem is. Ex. I'm always frustrated when [...] + +**Describe the solution you'd like** +A clear and concise description of what you want to happen. + +**Describe alternatives you've considered** +A clear and concise description of any alternative solutions or features you've considered. + +**Additional context** +Add any other context or screenshots about the feature request here. diff --git a/.github/ISSUE_TEMPLATE/feature-request.md b/.github/ISSUE_TEMPLATE/feature-request.md new file mode 100644 index 00000000000..80bfbfb853f --- /dev/null +++ b/.github/ISSUE_TEMPLATE/feature-request.md @@ -0,0 +1,19 @@ +--- +name: Feature request +about: Suggest an idea, feature or enhancement +title: "" +labels: + - C-enhancement +--- + +**Is your feature request related to a problem? Please describe.** +A clear and concise description of what the problem is. Ex. I'm always frustrated when [...] + +**Describe the solution you'd like** +A clear and concise description of what you want to happen. + +**Describe alternatives you've considered** +A clear and concise description of any alternative solutions or features you've considered. + +**Additional context** +Add any other context or screenshots about the feature request here. diff --git a/.github/actions/warm-up-repo/action.yml b/.github/actions/warm-up-repo/action.yml index 22210031c5c..e9a3267b49e 100644 --- a/.github/actions/warm-up-repo/action.yml +++ b/.github/actions/warm-up-repo/action.yml @@ -1,13 +1,25 @@ name: Warm-up repo description: Prepares Node and Yarn dependencies +inputs: + playwright-deps: + default: "" + description: "List of browsers separated by space, e.g. 'chrome firefox'" + required: false + runs: using: composite steps: - - uses: actions/setup-node@v2 + - uses: actions/setup-node@v3 with: node-version: 18 cache: yarn - run: yarn install shell: bash + env: + PLAYWRIGHT_SKIP_BROWSER_DOWNLOAD: ${{ inputs.playwright-deps == '' }} + + - run: yarn playwright install-deps ${{ inputs.playwright-deps }} + if: ${{ inputs.playwright-deps != '' }} + shell: bash diff --git a/.github/labeler.yml b/.github/labeler.yml index 7c7cb004b0a..cf77d270952 100644 --- a/.github/labeler.yml +++ b/.github/labeler.yml @@ -26,16 +26,16 @@ A-engine: - "packages/engine/**/.*" A-learn: - - "resources/*" - - "resources/.*" - - "resources/**/*" - - "resources/**/.*" + - "sites/hashai/resources/*" + - "sites/hashai/resources/.*" + - "sites/hashai/resources/**/*" + - "sites/hashai/resources/**/.*" -A-libs: - - "packages/libs/*" - - "packages/libs/.*" - - "packages/libs/**/*" - - "packages/libs/**/.*" +A-error-stack: + - "packages/libs/error-stack/*" + - "packages/libs/error-stack/.*" + - "packages/libs/error-stack/**/*" + - "packages/libs/error-stack/**/.*" A-backend: - "packages/graph/*" diff --git a/.github/pull_request_template.md b/.github/pull_request_template.md index adc9e9f95e4..a434124e663 100644 --- a/.github/pull_request_template.md +++ b/.github/pull_request_template.md @@ -6,7 +6,7 @@ ## 🔗 Related links - + - [Asana task](link) _(internal)_ diff --git a/.github/scripts/rust/requirements.txt b/.github/scripts/rust/requirements.txt index a8f739bc61c..dd81db12e9e 100644 --- a/.github/scripts/rust/requirements.txt +++ b/.github/scripts/rust/requirements.txt @@ -1 +1,2 @@ pygit2 == 1.9.2 +toml == 0.10.2 diff --git a/.github/scripts/rust/setup.py b/.github/scripts/rust/setup.py index 37e2185b763..03999d589db 100644 --- a/.github/scripts/rust/setup.py +++ b/.github/scripts/rust/setup.py @@ -1,18 +1,33 @@ -from fnmatch import fnmatch -from pathlib import Path +""" +Setup script for the Rust GitHub Actions. + +The output of this will be used as arguments for the GitHub Actions matrix. + +see: https://docs.github.com/en/actions/using-jobs/using-a-matrix-for-your-jobs +""" + import re import json +import itertools +import toml + +from fnmatch import fnmatch +from pathlib import Path +from pygit2 import Repository, Commit CWD = Path.cwd() # All jobs for all crates will run if any of these paths change -ALWAYS_RUN_PATTERNS = ["**/rust-toolchain.toml", ".github/**"] +ALWAYS_RUN_PATTERNS = [".github/**"] -# Exclude the stable channel for these crates -DISABLE_STABLE_PATTERNS = ["packages/engine**", "packages/graph/hash_graph**"] +# Toolchains used for the specified crates in addition to the toolchain which is defined in +# rust-toolchain.toml +TOOLCHAINS = { + "packages/libs/error-stack": ["1.63"], +} # Try and publish these crates when their version is changed in Cargo.toml -PUBLISH_PATTERNS = ["packages/libs/error-stack"] +PUBLISH_PATTERNS = ["packages/libs/error-stack**"] # Build a docker container for these crates DOCKER_PATTERNS = ["packages/graph/hash_graph"] @@ -22,7 +37,6 @@ def generate_diffs(): """ Generates a diff between `HEAD^` and `HEAD` """ - from pygit2 import Repository, Commit repository = Repository(CWD) head = repository.head.peel(Commit) @@ -33,14 +47,22 @@ def find_local_crates(): """ Returns all available crates in the workspace. - If a crate is in a sub-crate of another crate, only the super-crate will be returned because `cargo-make` will run - the sub-crate automatically. + If a crate is in a sub-crate of another crate, only the super-crate will be returned because + `cargo-make` will run the sub-crate automatically. :return: a list of crate paths """ all_crates = [path.relative_to(CWD).parent for path in CWD.rglob("Cargo.toml")] checked_crates = [] for crate in all_crates: - if not any([path in crate.parents for path in all_crates]): + if not any(path in crate.parents for path in all_crates): + checked_crates.append(crate) + return checked_crates + + +def filter_parent_crates(crates): + checked_crates = [] + for crate in crates: + if not any(path in crate.parents for path in crates): checked_crates.append(crate) return checked_crates @@ -55,14 +77,22 @@ def filter_for_changed_crates(diffs, crates): :return: a list of crate paths """ # Check if any changed file matches `ALWAYS_RUN_PATTERNS` - if any([fnmatch(diff.delta.new_file.path, pattern) for diff in diffs for pattern in ALWAYS_RUN_PATTERNS]): + if any( + fnmatch(diff.delta.new_file.path, pattern) + for diff in diffs + for pattern in ALWAYS_RUN_PATTERNS + ): return crates # Get the unique crate paths which have changed files - return list(set([crate - for crate in crates - for diff in diffs - if fnmatch(diff.delta.new_file.path, f"{crate}/**")])) + return list( + { + crate + for crate in crates + for diff in diffs + if fnmatch(diff.delta.new_file.path, f"{crate}/**") + } + ) def filter_crates_by_changed_version(diffs, crates): @@ -72,6 +102,7 @@ def filter_crates_by_changed_version(diffs, crates): :param crates: a list of paths to crates :return: a list of crate paths """ + def crate_version_changed(crate, diff): if crate / "Cargo.toml" != Path(diff.delta.new_file.path): return False @@ -79,20 +110,16 @@ def crate_version_changed(crate, diff): for hunk in diff.hunks: for line in hunk.lines: for content in line.content.splitlines(): - if re.fullmatch("version\\s*=\\s*\".*\"", content): + if re.fullmatch('version\\s*=\\s*".*"', content): return True return False - return [crate for diff in diffs for crate in crates if crate_version_changed(crate, diff)] - - -def filter_for_nightly_only_crates(crates): - """ - Returns the crates which only supports the nightly compiler - :param crates: a list of paths to crates - :return: a list of crate paths - """ - return [crate for crate in crates for pattern in DISABLE_STABLE_PATTERNS if fnmatch(crate, pattern)] + return [ + crate + for diff in diffs + for crate in crates + if crate_version_changed(crate, diff) + ] def filter_for_publishable_crates(crates): @@ -101,7 +128,12 @@ def filter_for_publishable_crates(crates): :param crates: a list of paths to crates :return: a list of crate paths which are allowed to be published """ - return [crate for crate in crates for pattern in PUBLISH_PATTERNS if fnmatch(crate, pattern)] + return [ + crate + for crate in crates + for pattern in PUBLISH_PATTERNS + if fnmatch(crate, pattern) + ] def filter_for_docker_crates(crates): @@ -110,44 +142,88 @@ def filter_for_docker_crates(crates): :param crates: a list of paths to crates :return: a list of crate paths for which docker containers are built """ - return [crate for crate in crates for pattern in DOCKER_PATTERNS if fnmatch(crate, pattern)] - - -def output_exclude(crates): - """ - Prints a exclude statements for a GitHub Action matrix. - - Currently, this only excludes nightly-only crates from running on stable by default - :param crates: a list of paths to crates - """ + return [ + crate + for crate in crates + for pattern in DOCKER_PATTERNS + if fnmatch(crate, pattern) + ] - output = json.dumps([dict(toolchain="stable", directory=str(crate)) for crate in filter_for_nightly_only_crates(crates)]) - print(f"::set-output name=exclude::{output}") - print(f"exclude = {output}") - -def output(name, crates): +def output_matrix(name, crates, **kwargs): """ - Prints crates in a GitHub understandable way defined by name + Outputs the job matrix for the given crates :param name: The name where the list of crates will be stored to be read by GitHub Actions - :param crates: a list of crate paths to be outputted + :param crates: a list of paths to crates """ - output = json.dumps([str(crate) for crate in crates]) - print(f"::set-output name={name}::{output}") - print(f"{name} = {output}") + available_toolchains = set() + for crate in crates: + with open( + crate / "rust-toolchain.toml", "r", encoding="UTF-8" + ) as toolchain_toml: + available_toolchains.add( + toml.loads(toolchain_toml.read())["toolchain"]["channel"] + ) + for pattern, additional_toolchains in TOOLCHAINS.items(): + for additional_toolchain in additional_toolchains: + available_toolchains.add(additional_toolchain) + + used_toolchain_combinations = [] + for crate in crates: + toolchains = [] + with open( + crate / "rust-toolchain.toml", "r", encoding="UTF-8" + ) as toolchain_toml: + toolchains.append(toml.loads(toolchain_toml.read())["toolchain"]["channel"]) + + # We only run the default toolchain on lint/publish (rust-toolchain.toml) + if name not in ("lint", "publish"): + for pattern, additional_toolchains in TOOLCHAINS.items(): + if fnmatch(crate, pattern): + toolchains += additional_toolchains + used_toolchain_combinations.append( + itertools.product([crate], toolchains, repeat=1) + ) + + available_toolchain_combinations = itertools.product(crates, available_toolchains) + excluded_toolchain_combinations = set(available_toolchain_combinations).difference( + *used_toolchain_combinations + ) + + matrix = dict( + directory=[str(crate) for crate in crates], + toolchain=list(available_toolchains), + **kwargs, + exclude=[ + dict(directory=str(elem[0]), toolchain=elem[1]) + for elem in excluded_toolchain_combinations + ], + ) + if len(matrix["directory"]) == 0: + matrix = {} + + print(f"::set-output name={name}::{json.dumps(matrix)}") + print(f"Job matrix for {name}: {json.dumps(matrix, indent=4)}") def main(): diffs = generate_diffs() available_crates = find_local_crates() - changed_crates = list(set(filter_for_changed_crates(diffs, available_crates))) - - output("lint", changed_crates) - output("test", changed_crates) - output("publish", filter_crates_by_changed_version(diffs, filter_for_publishable_crates(changed_crates))) - output("docker", filter_for_docker_crates(changed_crates)) - output_exclude(changed_crates) + changed_crates = filter_for_changed_crates(diffs, available_crates) + changed_parent_crates = filter_parent_crates(changed_crates) + changed_docker_crates = filter_for_docker_crates(changed_parent_crates) + + output_matrix("lint", changed_parent_crates) + output_matrix("test", changed_parent_crates, profile=["development", "production"]) + output_matrix("docker", changed_docker_crates, profile=["production"]) + output_matrix( + "publish", + filter_crates_by_changed_version( + diffs, filter_for_publishable_crates(changed_crates) + ), + profile=["release"], + ) if __name__ == "__main__": diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 62880f48da1..7dee06573d4 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -6,7 +6,7 @@ jobs: name: Linting runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v3 - uses: ./.github/actions/warm-up-repo @@ -126,7 +126,7 @@ jobs: if: ${{ github.base_ref != 'dev/graph' }} runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v3 - uses: ./.github/actions/warm-up-repo @@ -182,9 +182,19 @@ jobs: if: ${{ github.base_ref != 'dev/graph' }} runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v3 + + - uses: actions/cache@v3 + with: + path: packages/hash/frontend/.next/cache + key: ${{ runner.os }}-frontend-next-cache-${{ hashFiles('yarn.lock') }}-${{ hashFiles('packages/hash/frontend/**') }} + restore-keys: | + ${{ runner.os }}-frontend-next-cache-${{ hashFiles('yarn.lock') }}- + ${{ runner.os }}-frontend-next-cache - uses: ./.github/actions/warm-up-repo + with: + playwright-deps: chrome firefox - name: Create temp files and folders run: | @@ -215,9 +225,6 @@ jobs: yarn workspace @hashintel/hash-frontend start 2>&1 | tee var/logs/frontend.log & ## ampersand enables background mode yarn wait-on --timeout 30000 http://0.0.0.0:3000 - - run: yarn playwright install-deps chrome firefox - if: ${{ success() || failure() }} - - name: Run Playwright tests if: ${{ success() || failure() }} run: | @@ -259,7 +266,7 @@ jobs: name: Unit tests runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v3 - uses: ./.github/actions/warm-up-repo diff --git a/.github/workflows/codeql-analysis.yml b/.github/workflows/codeql-analysis.yml index 64c058c0298..d7e9f44e176 100644 --- a/.github/workflows/codeql-analysis.yml +++ b/.github/workflows/codeql-analysis.yml @@ -30,7 +30,7 @@ jobs: steps: - name: Checkout repository - uses: actions/checkout@v2 + uses: actions/checkout@v3 # Initializes the CodeQL tools for scanning. - name: Initialize CodeQL diff --git a/.github/workflows/hash-backend-cd.yml b/.github/workflows/hash-backend-cd.yml index a45aa0d4584..75727912bb9 100644 --- a/.github/workflows/hash-backend-cd.yml +++ b/.github/workflows/hash-backend-cd.yml @@ -33,7 +33,7 @@ jobs: name: Build and push HASH api image runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v3 - name: Docker image build through docker-build-push uses: ./.github/actions/docker-build-push @@ -52,7 +52,7 @@ jobs: name: Build and push HASH realtime image runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v3 - name: Docker image build through docker-build-push uses: ./.github/actions/docker-build-push @@ -71,7 +71,7 @@ jobs: name: Build and push HASH searchloader image runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v3 - name: Docker image build through docker-build-push uses: ./.github/actions/docker-build-push @@ -94,7 +94,7 @@ jobs: - build-realtime - build-searchloader steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v3 - uses: ./.github/actions/docker-ecr-login with: @@ -103,7 +103,7 @@ jobs: AWS_REGION: ${{ env.AWS_REGION }} # Node is used for migrating the DB - - uses: actions/setup-node@v2 + - uses: actions/setup-node@v3 with: node-version: 16 cache: yarn diff --git a/.github/workflows/labeler.yml b/.github/workflows/labeler.yml index 27719aa1602..c401d32ee4b 100644 --- a/.github/workflows/labeler.yml +++ b/.github/workflows/labeler.yml @@ -6,6 +6,6 @@ jobs: triage: runs-on: ubuntu-latest steps: - - uses: actions/labeler@v3 + - uses: actions/labeler@v4 with: repo-token: "${{ secrets.GITHUB_TOKEN }}" diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml index b23e429397d..0033347d365 100644 --- a/.github/workflows/rust.yml +++ b/.github/workflows/rust.yml @@ -27,9 +27,7 @@ jobs: test: ${{ steps.crates.outputs.test }} docker: ${{ steps.crates.outputs.docker }} publish: ${{ steps.crates.outputs.publish }} - exclude: ${{ steps.crates.outputs.exclude }} samples: ${{ steps.samples.outputs.samples }} - nightly: ${{ steps.toolchains.outputs.nightly }} steps: - name: Checkout source code uses: actions/checkout@v3 @@ -43,13 +41,6 @@ jobs: id: crates run: python .github/scripts/rust/setup.py - - name: Find toolchain - id: toolchains - run: | - nightly=$(cat $(find . -name rust-toolchain.toml) | grep channel | cut -d\" -f2) - echo "::set-output name=nightly::$nightly" - echo "use toolchains: $(echo $nightly)" - - name: Determine samples id: samples run: | @@ -62,17 +53,11 @@ jobs: lint: name: lint needs: setup - if: needs.setup.outputs.lint != '[]' + if: needs.setup.outputs.lint != '{}' runs-on: ubuntu-latest strategy: fail-fast: false - matrix: - directory: ${{ fromJSON(needs.setup.outputs.lint) }} - toolchain: - - ${{ needs.setup.outputs.nightly }} - profile: - - development - exclude: ${{ fromJSON(needs.setup.outputs.exclude) }} + matrix: ${{ fromJSON(needs.setup.outputs.lint) }} steps: - name: Checkout source code uses: actions/checkout@v3 @@ -85,9 +70,9 @@ jobs: override: true - name: Cache Rust dependencies - uses: Swatinem/rust-cache@v1 + uses: Swatinem/rust-cache@v2 with: - working-directory: ${{ matrix.directory }} + workspaces: ${{ matrix.directory }} - name: Install tools shell: bash @@ -98,36 +83,31 @@ jobs: - name: Check formatting working-directory: ${{ matrix.directory }} - run: cargo make format -- --check + run: cargo +${{ matrix.toolchain }} make format -- --check - name: Check clippy working-directory: ${{ matrix.directory }} - run: cargo make clippy -- -D warnings + if: always() + run: cargo +${{ matrix.toolchain }} make clippy -- -D warnings - name: Check public documentation working-directory: ${{ matrix.directory }} - run: cargo make rustdoc --check -D warnings + if: always() + run: cargo +${{ matrix.toolchain }} make rustdoc --check -D warnings - name: Check private documentation working-directory: ${{ matrix.directory }} - run: cargo make rustdoc --check -D warnings --document-private-items + if: always() + run: cargo +${{ matrix.toolchain }} make rustdoc --check -D warnings --document-private-items test: name: test needs: setup - if: needs.setup.outputs.test != '[]' + if: needs.setup.outputs.test != '{}' runs-on: ubuntu-latest strategy: fail-fast: false - matrix: - directory: ${{ fromJSON(needs.setup.outputs.test) }} - toolchain: - - stable - - ${{ needs.setup.outputs.nightly }} - profile: - - development - - production - exclude: ${{ fromJSON(needs.setup.outputs.exclude) }} + matrix: ${{ fromJSON(needs.setup.outputs.test) }} env: OUTPUT_DIRECTORY: test-results RUST_BACKTRACE: 1 @@ -150,9 +130,9 @@ jobs: key: ${{ hashFiles('**/yarn.lock') }} - name: Cache Rust dependencies - uses: Swatinem/rust-cache@v1 + uses: Swatinem/rust-cache@v2 with: - working-directory: ${{ matrix.directory }} + workspaces: ${{ matrix.directory }} key: ${{ matrix.profile }} - name: Install tools @@ -167,16 +147,16 @@ jobs: if: matrix.directory == 'packages/engine' uses: actions/setup-python@v2 with: - python-version: "3.7" + python-version: "3.10" - name: Run tests working-directory: ${{ matrix.directory }} - run: cargo make --profile ${{ matrix.profile }} test --no-fail-fast + run: cargo +${{ matrix.toolchain }} make --profile ${{ matrix.profile }} test --no-fail-fast - name: Run miri - if: matrix.toolchain != 'stable' + if: ${{ startsWith(matrix.toolchain, 'nightly') }} working-directory: ${{ matrix.directory }} - run: cargo make --profile ${{ matrix.profile }} miri --no-fail-fast + run: cargo +${{ matrix.toolchain }} make --profile ${{ matrix.profile }} miri --no-fail-fast - name: Ensure empty git diff run: git --no-pager diff --exit-code --color @@ -203,14 +183,11 @@ jobs: docker: name: docker needs: setup - if: needs.setup.outputs.docker != '[]' + if: needs.setup.outputs.docker != '{}' runs-on: ubuntu-latest strategy: fail-fast: false - matrix: - directory: ${{ fromJSON(needs.setup.outputs.docker) }} - profile: - - production + matrix: ${{ fromJSON(needs.setup.outputs.docker) }} defaults: run: working-directory: ${{ matrix.directory }} @@ -239,14 +216,11 @@ jobs: publish: name: publish needs: setup - if: needs.setup.outputs.publish != '[]' + if: needs.setup.outputs.publish != '{}' runs-on: ubuntu-latest strategy: fail-fast: false - matrix: - directory: ${{ fromJSON(needs.setup.outputs.publish) }} - toolchain: - - ${{ needs.setup.outputs.nightly }} + matrix: ${{ fromJSON(needs.setup.outputs.publish) }} steps: - name: Checkout source code uses: actions/checkout@v3 @@ -259,6 +233,25 @@ jobs: toolchain: ${{ matrix.toolchain }} override: true + - name: Install tools + if: github.event_name == 'pull_request' + shell: bash + run: | + cargo install cargo-quickinstall + cargo quickinstall cargo-make --version 0.35.15 + cargo quickinstall cargo-hack --version 0.5.15 + cargo quickinstall cargo-nextest --version 0.9.28 + + - name: Run lints + if: github.event_name == 'pull_request' + working-directory: ${{ matrix.directory }} + run: cargo +${{ matrix.toolchain }} make --profile ${{ matrix.profile }} lint + + - name: Run tests + if: github.event_name == 'pull_request' + working-directory: ${{ matrix.directory }} + run: cargo +${{ matrix.toolchain }} make --profile ${{ matrix.profile }} test --no-fail-fast + - name: Login run: | [[ -n "${{ secrets.CARGO_REGISTRY_TOKEN }}" ]] @@ -267,12 +260,12 @@ jobs: - name: Publish (dry run) if: github.event_name == 'pull_request' working-directory: ${{ matrix.directory }} - run: cargo publish --all-features --dry-run + run: cargo +${{ matrix.toolchain }} publish --all-features --dry-run - name: Publish - if: github.event_name == 'push' && github.ref == 'ref/head/main' + if: ${{ github.event_name == 'push' && github.ref == 'refs/heads/main' }} working-directory: ${{ matrix.directory }} - run: cargo publish --all-features + run: cargo +${{ matrix.toolchain }} publish --all-features merging-enabled: name: merging enabled diff --git a/.github/workflows/algolia-upload-index.yml b/.github/workflows/sync-algolia-index.yml similarity index 52% rename from .github/workflows/algolia-upload-index.yml rename to .github/workflows/sync-algolia-index.yml index 10eea464f5b..a0b000305d6 100644 --- a/.github/workflows/algolia-upload-index.yml +++ b/.github/workflows/sync-algolia-index.yml @@ -1,4 +1,4 @@ -name: Algolia Upload Index +name: Sync Algolia Index env: ALGOLIA_PROJECT: ${{ secrets.ALGOLIA_PROJECT }} @@ -9,18 +9,19 @@ on: branches: [main] jobs: - build: + sync_algolia_index: + name: Sync Algolia Index runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 - - uses: actions/setup-node@v2 + - uses: actions/checkout@v3 + - uses: actions/setup-node@v3 with: node-version: 18 cache: yarn - name: Install dependencies - run: yarn install --frozen-lockfile + run: yarn workspace @hashintel/hashai install --frozen-lockfile - name: Sync Algolia Index - run: yarn exe scripts/sync-algolia-index.ts + run: yarn workspace @hashintel/hashai exe scripts/sync-algolia-index.ts diff --git a/.gitignore b/.gitignore index 5195290226e..f6fdc1fcf2e 100644 --- a/.gitignore +++ b/.gitignore @@ -73,7 +73,7 @@ dist build # vscode config -.vscode/settings.json +**/.vscode/settings.json # intellij IDEs config /.idea/ diff --git a/.hashconfig.json b/.hashconfig.json deleted file mode 100644 index 4372e215eba..00000000000 --- a/.hashconfig.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "redirects": {} -} diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 3fc2452b60f..9c4150b17bc 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -25,7 +25,7 @@ These apply across all projects: ## How can I find interesting PRs to work on? -Issue tags can provide a good source of inspiration for would-be contributors. See: “help wanted” and “good for first-time contributors”. You should also feel free to join our [HASH Discord](https://hash.ai/discord) and reach out directly to us for more inspiration. If you're willing to contribute, we'd love to have you! +Existing issues can provide a good source of inspiration for potential contributions. The issue tags `E-help-wanted` and `E-good-first-issue` flag some of the lower-hanging fruit that are available for people (including first-time contributors) to work on, without necessarily requiring prior discussion. You should also feel free to join our [HASH Discord](https://hash.ai/discord) and reach out directly to us for more inspiration. If you're willing to contribute, we'd love to have you! ## Why might contributions be rejected? diff --git a/LICENSE.md b/LICENSE.md index 3b467a3fac2..4e7d0ad58bd 100644 --- a/LICENSE.md +++ b/LICENSE.md @@ -1,4 +1,4 @@ -The HASH public monorepo relies upon multiple different licenses. +The HASH monorepo relies upon multiple different licenses. # License Guide @@ -9,24 +9,22 @@ The license for a particular work is defined with following prioritized rules: 1. Defaults to the MIT License Source code in this repository is variously licensed under the _MIT License_, -the _GNU Affero General Public License 3.0_, the _Elastic License 2.0_, or -_all rights are reserved_. +the _GNU Affero General Public License 3.0_, or the _Elastic License 2.0_. -Written content, illustrations and graphics published under the `resources` -folder within this repository may also be made available under the [Creative -Commons Attribution-ShareAlike 4.0 International](resources/LICENSE.md) -license. +Written content, illustrations and graphics published under the `sites/hashai/resources` +folder within this repository are made available under the [Creative Commons +Attribution-ShareAlike 4.0 International](sites/hashai/resources/LICENSE.md) license. # Quick Reference -* Within the `/packages/engine` directory, source code is licensed under the +* Within the `/packages/engine` folder, source code is licensed under the Elastic License 2.0, unless otherwise noted. -* Within the `/packages/hash` and `/packages/graph` directories, source code - in a given file is licensed under version 3 of the GNU Affero General - Public License, unless otherwise noted. +* Within the `/packages/hash` folder, source code in a given file is + licensed under version 3 of the GNU Affero General Public License, unless + otherwise noted. -* Within the `/packages/blocks` directory, all source code is made +* Within the `/packages/blocks` folder, all source code is made available under the MIT License. # Questions diff --git a/README.md b/README.md index a5d80474c1f..005bf500f4f 100644 --- a/README.md +++ b/README.md @@ -10,14 +10,13 @@ This is HASH's _public monorepo_ which contains our open-source, fair-source and - [`packages/blocks`](packages/blocks): The source code for all of HASH's open-source [Block Protocol](https://github.com/blockprotocol/blockprotocol) blocks - [`packages/hash`](packages/hash): The codebase for [HASH](https://hash.ai/platform/hash) - a data-driven, entity-centric, all-in-one workspace based on the Block Protocol -- [`packages/engine`](packages/engine): The codebase for our next-gen version of [hEngine](https://hash.ai/platform/engine) - a versatile agent-based simulation engine written in Rust +- [`packages/engine`](packages/engine): The codebase for our next-gen version of [HASH Engine](https://hash.ai/platform/engine) - a versatile agent-based simulation engine written in Rust - [`packages/libs`](packages/libs): The source code for our open-source developer libraries ### Site code and content -- [`resources/docs`](resources/docs): A user guide to the whole HASH platform ([hash.ai/docs](https://hash.ai/docs)) -- [`resources/glossary`](resources/glossary): A glossary of terms explaining common concepts relevant to the use of HASH ([hash.ai/glossary](https://hash.ai/glossary)) -- [`sites/hashdev`](sites/hashdev): The [hash.dev](https://hash.dev/) developer-education website +- [`sites/hashai`](sites/hashai): contains the [HASH user guide](https://hash.ai/docs) and [glossary of terms](https://hash.ai/glossary) content +- [`sites/hashdev`](sites/hashdev): contains the [hash.dev](https://hash.dev/) developer-education website content and code ## Contributing diff --git a/packages/blocks/callout/README.md b/packages/blocks/callout/README.md index a3e18599e14..33bc37dd291 100644 --- a/packages/blocks/callout/README.md +++ b/packages/blocks/callout/README.md @@ -1,3 +1,3 @@ # Callout block -https://blockprotocol.org/@hash/callout +A block to call attention to text. diff --git a/packages/blocks/callout/package.json b/packages/blocks/callout/package.json index 1e5faa17518..f64a7fcbf53 100644 --- a/packages/blocks/callout/package.json +++ b/packages/blocks/callout/package.json @@ -19,7 +19,8 @@ "serve": "block-scripts serve" }, "dependencies": { - "@blockprotocol/graph": "0.0.12" + "@blockprotocol/graph": "0.0.12", + "@blockprotocol/hook": "0.0.1" }, "devDependencies": { "block-scripts": "0.0.14", diff --git a/packages/blocks/callout/src/app.tsx b/packages/blocks/callout/src/app.tsx index 619d0a76a64..eafd70d77d6 100644 --- a/packages/blocks/callout/src/app.tsx +++ b/packages/blocks/callout/src/app.tsx @@ -2,29 +2,37 @@ import { BlockComponent, useGraphBlockService, } from "@blockprotocol/graph/react"; -import { RefCallback, useRef } from "react"; +import { useHookBlockService, useHook } from "@blockprotocol/hook/react"; +import { useRef } from "react"; import { EmojiIcon } from "./emoji-icon"; type BlockEntityProperties = { icon?: string; text?: string; - editableRef?: RefCallback; }; export const App: BlockComponent = ({ graph: { blockEntity: { entityId, properties }, }, - ...others }) => { - const editableRef = (others as any).editableRef as - | RefCallback - | undefined; + const editableRef = useRef(null); const { icon = "📢", text } = properties; const blockRef = useRef(null); const { graphService } = useGraphBlockService(blockRef); + const { hookService } = useHookBlockService(blockRef); + + useHook(hookService, editableRef, "text", "$.text", (node) => { + // eslint-disable-next-line no-param-reassign + node.innerText = text ?? ""; + + return () => { + // eslint-disable-next-line no-param-reassign + node.innerText = ""; + }; + }); const handleIconChange = (newIcon: string | undefined): void => { if (!entityId) { @@ -65,9 +73,7 @@ export const App: BlockComponent = ({ paddingLeft: "1.5em", }} ref={editableRef} - > - {editableRef ? undefined : text} - + /> ); }; diff --git a/packages/blocks/embed/README.md b/packages/blocks/embed/README.md index 22625071381..fb51c2dc8f0 100644 --- a/packages/blocks/embed/README.md +++ b/packages/blocks/embed/README.md @@ -1,3 +1,3 @@ # Embed block -https://blockprotocol.org/@hash/embed +A block to embed content from third-party sites. diff --git a/packages/blocks/header/README.md b/packages/blocks/header/README.md index 791f871f4b4..dabec38e456 100644 --- a/packages/blocks/header/README.md +++ b/packages/blocks/header/README.md @@ -1,3 +1,3 @@ # Header block -https://blockprotocol.org/@hash/header +A block to display heading text. diff --git a/packages/blocks/paragraph/README.md b/packages/blocks/paragraph/README.md index 0969c8aa7ae..a6bdc000ae2 100644 --- a/packages/blocks/paragraph/README.md +++ b/packages/blocks/paragraph/README.md @@ -1,3 +1,3 @@ # Paragraph block -https://blockprotocol.org/@hash/paragraph +A block to display a paragraph of text. diff --git a/packages/blocks/paragraph/package.json b/packages/blocks/paragraph/package.json index 1025764712b..803db519461 100644 --- a/packages/blocks/paragraph/package.json +++ b/packages/blocks/paragraph/package.json @@ -19,12 +19,13 @@ "serve": "block-scripts serve" }, "dependencies": { - "blockprotocol": "0.0.12" + "@blockprotocol/graph": "0.0.12", + "@blockprotocol/hook": "0.0.1" }, "devDependencies": { "block-scripts": "0.0.14", "eslint": "8.20.0", - "mock-block-dock": "0.0.10", + "mock-block-dock": "0.0.20", "react": "^18.2.0", "react-dom": "^18.2.0", "typescript": "4.7.4", @@ -39,6 +40,9 @@ "servePort": 62682 }, "blockprotocol": { + "blockType": { + "entryPoint": "react" + }, "displayName": "Paragraph", "icon": "public/paragraph.svg", "image": "public/preview.svg", @@ -47,6 +51,6 @@ "text": "William Shakespeare was an English playwright, poet and actor, widely regarded as the greatest writer in the English language and the world's greatest dramatist. He is often called England's national poet and the \"Bard of Avon\"." } ], - "protocol": "0.1" + "protocol": "0.2" } } diff --git a/packages/blocks/paragraph/src/app.tsx b/packages/blocks/paragraph/src/app.tsx index e4e65224491..d5e3ceb1e6c 100644 --- a/packages/blocks/paragraph/src/app.tsx +++ b/packages/blocks/paragraph/src/app.tsx @@ -1,15 +1,30 @@ -import { RefCallback } from "react"; - -import { BlockComponent } from "blockprotocol/react"; +import { useRef } from "react"; +import { BlockComponent } from "@blockprotocol/graph/react"; +import { useHook, useHookBlockService } from "@blockprotocol/hook/react"; type BlockEntityProperties = { - editableRef?: RefCallback; text?: string; }; export const App: BlockComponent = ({ - editableRef, - text, + graph: { + blockEntity: { + properties: { text }, + }, + }, }) => { - return editableRef ?

:

{text}

; + const ref = useRef(null); + const { hookService } = useHookBlockService(ref); + + useHook(hookService, ref, "text", "$.text", (node) => { + // eslint-disable-next-line no-param-reassign + node.innerText = text ?? ""; + + return () => { + // eslint-disable-next-line no-param-reassign + node.innerText = ""; + }; + }); + + return

; }; diff --git a/packages/blocks/paragraph/src/dev.tsx b/packages/blocks/paragraph/src/dev.tsx index af916089e6b..920b41c601a 100644 --- a/packages/blocks/paragraph/src/dev.tsx +++ b/packages/blocks/paragraph/src/dev.tsx @@ -9,10 +9,18 @@ import Component from "./index"; const node = document.getElementById("app"); +const paragraphProperties = { + text: "Hello World!", +}; + const App = () => ( - - - + ); render(, node); diff --git a/packages/blocks/toggle-item/src/app.tsx b/packages/blocks/toggle-item/src/app.tsx index aeeae201351..422ba658606 100644 --- a/packages/blocks/toggle-item/src/app.tsx +++ b/packages/blocks/toggle-item/src/app.tsx @@ -62,7 +62,7 @@ export const App: BlockComponent = ({ >

= ({