Skip to content

Commit 241ab3d

Browse files
authored
Remove Sortable Linked References (#309)
* Remove Sortable Linked References documentation and related functionality - Deleted the Sortable Linked References documentation from README.md and removed the associated runSortReferences utility. - Updated settings in index.ts to eliminate references to sorting linked references. * 1.36.0
1 parent a3d2c4b commit 241ab3d

File tree

6 files changed

+5
-398
lines changed

6 files changed

+5
-398
lines changed

README.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,6 @@ For more information, check out our docs at [https://github.com/RoamJS/query-bui
3030
- [Randomization](https://github.com/RoamJS/query-builder/blob/main/docs/roam-queries.md#randomization)
3131
- [Context](https://github.com/RoamJS/query-builder/blob/main/docs/roam-queries.md#context)
3232
- [Aliases](https://github.com/RoamJS/query-builder/blob/main/docs/roam-queries.md#aliases)
33-
- [Sortable Linked References](https://github.com/RoamJS/query-builder/blob/main/docs/sortable-linked-refs.md)
3433

3534
## Nomenclature
3635

docs/sortable-linked-refs.md

Lines changed: 0 additions & 18 deletions
This file was deleted.

package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "query-builder",
3-
"version": "1.35.0",
3+
"version": "1.36.0",
44
"description": "Introduces new user interfaces for building queries in Roam",
55
"main": "./build/main.js",
66
"author": {

src/index.ts

Lines changed: 2 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ import extractRef from "roamjs-components/util/extractRef";
1717
import type { InputTextNode, PullBlock } from "roamjs-components/types/native";
1818
import QueryPagesPanel, { getQueryPages } from "./components/QueryPagesPanel";
1919
import runQuery from "./utils/runQuery";
20-
import runSortReferences from "./utils/runSortReferences";
20+
2121
import updateBlock from "roamjs-components/writes/updateBlock";
2222
import getChildrenLengthByPageUid from "roamjs-components/queries/getChildrenLengthByPageUid";
2323
import createBlock from "roamjs-components/writes/createBlock";
@@ -339,16 +339,7 @@ svg.rs-svg-container {
339339
description:
340340
"The default sorting all native queries in your graph should use",
341341
},
342-
{
343-
id: "sort-references",
344-
name: "Sortable Linked References",
345-
action: {
346-
type: "switch",
347-
onChange: (e) => toggleSortReferences(e.target.checked),
348-
},
349-
description:
350-
"Whether or not to enable sorting on the linked references section",
351-
},
342+
352343
{
353344
id: "show-page-metadata",
354345
name: "Show Page Metadata",
@@ -424,11 +415,6 @@ svg.rs-svg-container {
424415
toggleDiscourseGraphsMode(true);
425416
}
426417

427-
const toggleSortReferences = runSortReferences();
428-
if (!!extensionAPI.settings.get("sort-references")) {
429-
toggleSortReferences(true);
430-
}
431-
432418
const globalRefs: QBGlobalRefs = {
433419
clearOnClick: ({ parentUid, text }) => {
434420
const order = getChildrenLengthByPageUid(parentUid);

0 commit comments

Comments
 (0)