Commit Graph

18426 Commits

Author SHA1 Message Date
Tienson Qin
223928343a Merge branch 'refactor/tag-as-type' into feat/repeated-tasks 2024-12-22 14:46:31 +08:00
Tienson Qin
28e04b3b5d enhance: display property ident only for validation error 2024-12-22 14:40:58 +08:00
Tienson Qin
9da3129a2b feat: initial commands impl 2024-12-22 12:37:04 +08:00
Tienson Qin
b194891cd8 enhance: move repeat settings to the right of datepicker 2024-12-20 20:59:28 +08:00
Tienson Qin
972de7ae00 ux: set repeat task 2024-12-20 20:47:50 +08:00
Tienson Qin
eb082f9458 chore: remove unused code 2024-12-20 18:04:50 +08:00
Tienson Qin
d74a52a8de enhance: add default value support for built-in property definition 2024-12-20 18:02:53 +08:00
Gabriel Horner
dbb84f0327 Merge branch 'feat/db' into refactor/tag-as-type 2024-12-19 15:29:25 -05:00
Gabriel Horner
b2d6aa4956 fix: accidental temp file from last merge 2024-12-19 15:17:51 -05:00
Gabriel Horner
052d239682 enhance(dev): add debug context for get-page-uuid in importer 2024-12-19 14:54:13 -05:00
Gabriel Horner
409107f385 fix: duplicate journal pages when deadline is on same day
as block's page. Switched to using page-names-to-uuids instead
of db since it has the uuids of current page. Fixes logseq/db-test#192
2024-12-19 14:27:37 -05:00
Gabriel Horner
a50e1fe681 fix: db sidebar options showing up in file graphs 2024-12-19 12:14:23 -05:00
Gabriel Horner
2767e7bb8a fix: frontend lint 2024-12-19 12:07:29 -05:00
Gabriel Horner
89a108f846 Merge branch 'master' into feat/db 2024-12-19 11:44:00 -05:00
rcmerci
d60ddd3291 fix(asset): init upload all assets 2024-12-19 21:55:01 +08:00
Tienson Qin
aaccbca364 enhance: set left sidebar text weight to be font-medium 2024-12-19 20:49:54 +08:00
rcmerci
f33fac9563 feat(rtc): inject users info into graphs 2024-12-19 20:33:23 +08:00
charlie
85284b988c enhance(ui): polish left sidebar navigations 2024-12-19 18:08:34 +08:00
charlie
96fb8da599 enhance(ui): add ghost shui button for the toolbar 2024-12-19 17:51:33 +08:00
Tienson Qin
5e1bc47c32 Add properties for repeated tasks 2024-12-19 16:11:18 +08:00
Tienson Qin
2599b45768 Merge branch 'feat/db' into refactor/tag-as-type 2024-12-19 15:09:02 +08:00
rcmerci
c75aad8bff enhance: add properties logseq.user/<xxx> 2024-12-19 15:09:02 +08:00
Charlie
630c077c02 Enhance(UX): left sidebar (#11649)
* chore(ui): add sidebar related components

* chore(shui): add sidebar core

* enhance(ui): WIP polish left sidebar

* enhance(ui): polish opacity value

* enhance(ui): remove unnecessary css

* enhance(ui): simplify the left sidebar related css

* enhance(ui): polish left sidebar navigations

* enhance(ui): polish navigations items

* enhance(ui): polish graphs picker from the left sidebar

* enhance(ui): polish graphs selector

* enhance(ui): graphs dropdown content

* enhance(ux): create new page for the graphs selector section

* enhance(ui): remote icon for the graphs selector

* enhance(ui): polish sidebar navigations filter

* fix(ui): background color for the left sidebar

* enhance(ui): refactor names related with the left sidebar

* enhance(ux): WIP configurable navigations from the left sidebar

* enhance(ux): configurable navigations popup

* enhance(ux): persist user navigations from the left sidebar

* fix(ui): bad graph selector type icon

* fix: lint

* fix: lint

* enhance(ui): polish details for the left sidebar

* chore: remove shadcn sidebar component

* chore: remove shadcn sidebar related component

* fix(ui): text overflow for the page name item
2024-12-19 15:00:52 +08:00
Gabriel Horner
9ba95a0beb fix: tagging with a built-in property causes invalid blocks
Display error to user rather than cause invalid state
2024-12-18 17:15:34 -05:00
Gabriel Horner
c7343b259f fix: tagging built-in properties and pages
Mustn't be possible to modify built-ins as this could
wreak havok on lower level properties or cause built-in features
to behave buggily
2024-12-18 16:22:21 -05:00
Gabriel Horner
e5b32b16f5 fix: invalid entity when user class is used as a property 2024-12-18 15:56:26 -05:00
Gabriel Horner
3638644dab enhance: improve :block/tags validation
The move from :block/type to :block/tags allows for a couple
types of bugs that weren't possible before. Add validations
to ensure built-in entities aren't being accidentally modified
by the UI and that :logseq.class/Page remains simple and a useful
tag for features later. The Page validation is turned off until an
importer bug is fixed
2024-12-18 15:11:32 -05:00
Gabriel Horner
cc53500815 fix(regression): Properties can't be renamed to a built-in name
Also removed yet another duplicated find-by test helper
2024-12-18 11:16:41 -05:00
rcmerci
32e4563d17 fix(rtc): update patch-remote-attr-map-by-local-av-coll 2024-12-18 18:27:30 +08:00
rcmerci
96b3073057 test(rtc): fix some :fix-me testcases 2024-12-18 17:05:48 +08:00
Gabriel Horner
9d3b5a42bb fix: new property validation and test from previous commit 2024-12-17 21:29:11 -05:00
Gabriel Horner
7fc777de96 fix: new property name allowed invalid characters 2024-12-17 16:54:44 -05:00
Gabriel Horner
de339cb6f7 fix(regression): file graphs can see and filter page type on all pages 2024-12-17 14:58:44 -05:00
Gabriel Horner
4897519815 fix: remove unused core schema attrs
:block/alias and :block/tags are validated as properties and thus no
longer need attribute definitions. This should've been updated with attribute properties refactor.
:block/namespace has not been in db graphs for awhile
2024-12-17 14:21:10 -05:00
Gabriel Horner
cafa70f409 enhance: properties, tags and other core tags can be queried
from simple queries and used as property value selection criteria
2024-12-17 11:58:02 -05:00
Gabriel Horner
ad485875fe fix(dev): update debug edn of schema.org graph 2024-12-17 10:01:21 -05:00
Gabriel Horner
bc0f63694a fix: Don't show 'New page' in page autocompletion for
an existing tag or property. This made sense when pages were split by
type but it doesn't make sense now that a Tag or Property can be a Page.
The 'New page' that showed up was also buggy as it didn't actually
create a new page. Also fixed page-exists? doing a case sensitive check
when a Page and Tag were in the same tags
2024-12-17 22:04:29 +08:00
Gabriel Horner
7b885a55de fix(regression): tagging a block with a page or property
After page-exists? was fixed in
8cede822f393cb0dbd3e32727f627f0370f3986d, using a page or property
as a tag for the first tag with `#` failed hard
2024-12-17 22:04:29 +08:00
Gabriel Horner
fb2340c1a1 fix: new journals should only have #Journal
Redundant and confusing also be adding #Page, which is a parent of #Journal, to all journals. Also
remove unused option create!
2024-12-17 22:04:29 +08:00
Gabriel Horner
f5e7b2ce83 fix(regression): skipping validation on journal creation 2024-12-17 22:04:29 +08:00
Gabriel Horner
5399278bb6 fix: page-exists? not returning anything for db graphs
Caused some buggy page creation. While [?b :block/tags ?db-ident] for an
individual db-ident, it doesn't work when db-ident is a destructure :in
arg. For that case only integers worked
2024-12-17 22:04:29 +08:00
Gabriel Horner
f391f19e7b fix: logseq.class/Tag did not have a Tag leading to
buggy exceptions for :logseq.class/Tag anywhere :block/tags queries
:logseq.class/Tag is used e.g. validation, page existence and querying.
Perhaps before 89cdf5f9f6940dba48cacd82056ad62253ce46c7, this wasn't
possible because of the way the graph was initialized. Also removed
one parent assertion for previous fix since we didn't need both
assertions to prevent a regression
2024-12-17 22:04:29 +08:00
Tienson Qin
a23b821cb5 fix: lint 2024-12-17 22:04:29 +08:00
Tienson Qin
ac156c403f enhance(ux): open properties in sidebar
fixes https://github.com/logseq/db-test/issues/167
2024-12-17 22:04:29 +08:00
Tienson Qin
7506936481 fix: db migration
Ensures internal tags exist before transacting other tx-data.
2024-12-17 22:04:29 +08:00
Tienson Qin
57d1c60acd style tweaks 2024-12-17 22:04:29 +08:00
Tienson Qin
e51959da0e enhance: move tag remove button to the left 2024-12-17 22:04:29 +08:00
Gabriel Horner
f72370d21e fix(regression): blocks can't have duplicate content
This wouldn't allow tasks with the same name or even any two blocks have
the same content. See ddabf90263 for the
original fix for more. Also fixed lint and tweaked test
2024-12-17 22:04:29 +08:00
Gabriel Horner
05a31b7d76 fix: importer had incorrect set of Page based classes
Just derive from built-in-classes so this doesn't keep happening
2024-12-17 22:04:29 +08:00
Gabriel Horner
5036b976ab fix: Tag and Property not storing their parents correctly
They weren't visible on their Root Page but bigger bug is that their
:logseq.property/parent wasn't storing or querying correctly.
Also changed their parent to Root as they aren't dependent on Page
and no need to make bootstrapping more complex
2024-12-17 22:04:29 +08:00