Commit Graph

245 Commits (442f40c0b96c151cb703771a311232f100adfcbd)

Author SHA1 Message Date
charlie 1532dd4aee ci: optimize bundled source map size of webapp 2022-11-22 15:25:04 +08:00
charlie 1119c54d7c ci: remove js source maps files for cloudflare pages because of that has a max file size limit < 29.2M 2022-11-22 15:25:04 +08:00
charlie 3d5872c334 ci: add publish webapp to cloudflare pages 2022-11-22 15:25:04 +08:00
Andelf dd7460f198 fix(ci): handle boolean build condition 2022-11-17 09:32:57 +08:00
Andelf 15b3b27b67 fix(build): android file sync prod env 2022-11-16 12:45:58 +08:00
Tienson Qin d8a8df650a Set enable-file-sync-production to true for android app 2022-11-04 10:25:11 +08:00
Andelf c837afd075 ci: ignore stderr for bb lint tasks 2022-10-10 13:14:50 +08:00
Andelf df15c68f16 ci(ios): add ios build ci 2022-10-08 20:29:03 +08:00
Peng Xiao 4520399ddf Merge remote-tracking branch 'upstream/master' into whiteboards 2022-09-28 10:29:20 +08:00
Gabriel Horner 1f0e22275d Add ns docstrings for most ns in src/main
- Added to CI now that it passes
- Added no-doc for docstrings that don't add any more than what's in the
ns name or for ones where I didn't know the ns that well
2022-09-27 13:55:16 +08:00
Peng Xiao fd94862312 Merge remote-tracking branch 'upstream/master' into whiteboards 2022-09-24 09:42:00 +08:00
Gabriel Horner a368cab5e4 Add ns linter to deps libs and then add+update ns docstrings 2022-09-21 10:17:15 +08:00
Andelf ed8d7bfb89 fix(build): wrong java version for android 2022-09-20 23:40:32 +08:00
Peng Xiao 3ebc0058d0 fix: e2e 2022-09-18 19:54:26 +08:00
Andelf c3e96dba43 chore(dev): rm unused workspace card 2022-09-13 11:18:44 +08:00
Andelf 59e7d092b1 feat(build): release .nupkg file 2022-09-07 11:43:54 +08:00
Andelf 320024f764 fix(e2e): wrong promise usage 2022-09-06 12:52:53 +08:00
Andelf 43dd321ce4 test(e2e): split build and test 2022-09-06 12:52:53 +08:00
Andelf dc10bfd6cc
fix(build): nightly env (#6580) 2022-09-03 18:34:57 +08:00
Andelf 5f36380e7f chore(deps): update rsapi 0.0.35
chore(build): default to file-sync prod env
2022-09-02 05:04:30 +08:00
Andelf fb98531c1c fix(build): rm build flags 2022-09-01 22:20:52 +08:00
Charlie 01d879c18e
feat!: File Sync (#5355)
- file sync for electron/ios/android
- age encryption of both file content and file path
- massive UI enhancement
- corresponding CI tasks

Co-authored-by: llcc <lzhes43@gmail.com>
Co-authored-by: rcmerci <rcmerci@gmail.com>
Co-authored-by: Tienson Qin <tiensonqin@gmail.com>
Co-authored-by: Andelf <andelf@gmail.com>
Co-authored-by: Gabriel Horner <gabriel@logseq.com>
2022-09-01 00:31:49 +08:00
Junyi Du 87e8bb94bb test(e2e): improve stability 2022-08-31 21:15:01 +08:00
Junyi Du 663cd6df7f dev: e2e testing workflow of running multiple times 2022-08-31 21:15:01 +08:00
Andelf 5d3438a689 fix(build): codesign on windows 2022-08-30 11:41:58 +08:00
Andelf da11d8cb30
refactor(ci): add checks for ci release (#6350) 2022-08-14 19:13:52 +08:00
Andelf 2d1fb05117 ci(build): use options menu for android 2022-08-10 09:14:29 +08:00
Gabriel Horner abd7e0becb Add 3 missing built-in-properties
Also fix carve linter and make nbb test invocation easier
2022-07-15 15:26:09 +08:00
Andelf 872060965d ci(build): non-release as default 2022-07-08 11:32:51 +08:00
Andelf dda818c26a fix(e2e): add missing esc for (()) 2022-07-07 01:42:16 +08:00
Andelf 02563dac2d chore(ci): use choice instead of input-box in ci 2022-06-28 22:42:07 +08:00
Andelf fb92e64967 refactor(build): use env flags to control feature gate 2022-06-28 15:46:12 +08:00
Gabriel Horner d0755ef161 Update dependencies in deps
Also fix conditional workflows that didn't trigger if changes were made
to them
2022-06-10 15:39:11 +08:00
Gabriel Horner ee9f390761 Localize bb-tasks for deps
Deps need to be independent to not introduce testing bugs.
These bb tasks are good candidates to move into bb-tasks gitlib
2022-06-10 15:39:11 +08:00
Gabriel Horner 17d2462343 Move rules into db dep as it's useful for external apps
- rules is already used by logseq-query and will be useful for
  nbb-logseq
- Updated db jobs to run in deps/db by default. Less typing but
  more importantly discourages independent libraries from depending on
  external scripts.
- Moved lint-rules task into db since it is db specific now
- Also remove nbb-logseq from top-level as all nbb compatibility is in
  deps.
2022-06-10 15:39:11 +08:00
Gabriel Horner 6608537909 Move logseq.graph-parser.db* namespaces to their own dep
Also add its own CI file
2022-06-10 15:39:11 +08:00
Tienson Qin f4f1ff1ba2 fix: outdent blocks and re-enable outliner tests
related to #5604
2022-06-08 13:06:10 +08:00
Gabriel Horner 47c4305f62 Temporarily disable outliner tests which are hanging
Hang started in 3fdac736d9
2022-06-07 14:01:07 -04:00
Gabriel Horner b142327491 Finish up logseq.graph-parser
- Parser now parses all graph files like the app does, not just pages and journals.
  This required extracting another fn from repo-handler
- Add and tweak CI steps that are specific to graph-parser. All
  namespaces in this library are checked for nbb compatibility
- Cleaned up parser cli API so only one fn is needed for scripts
- Tests were updated to match new parsing behavior
- large_vars.clj can run with a smaller max-line-count after only refactoring two fns
- Add docs
2022-05-27 00:54:30 -04:00
Gabriel Horner 1e299052ce Setup cljs tests for graph-parser
- Also reuse docs graph test assertions to ensure main app
and graph-parser are in sync.
- Removed promesa from extract tests
since they are no longer async
- Added cljs and npm deps that were missing and caught by cljs tests
2022-05-26 18:04:45 -04:00
Gabriel Horner 15b8e5e9df Setup CI jobs that are only for graph-parser
Also move all non graph-parser fns to frontend thanks to carve lint
2022-05-26 18:04:45 -04:00
Gabriel Horner 4813d903d5 Move graph-parser to its own dir 2022-05-26 18:04:45 -04:00
Andelf ce3fef7368 fix(android): use es6 as build target 2022-05-24 17:22:49 +08:00
Gabriel Horner b79b1ca36e Mldoc tests run under nbb 2022-05-10 20:22:48 -04:00
Gabriel Horner 461f7e067d Forgot bb install in job 2022-05-04 12:02:36 -04:00
Gabriel Horner c0e1e16372 Finish up CI job for requiring nbb-compatible namespaces 2022-05-04 12:02:36 -04:00
Gabriel Horner d6082156c5 Find namespaces for nbb-compatible CI step 2022-05-04 12:02:36 -04:00
salevdns 41cbb036a0 Exclude pre-releases
Exclude pre-releases since no version tagging is applied atm.
2022-04-22 09:37:13 +08:00
salevdns 43417c68ed Docker: Add support for arm64 image & autobuild 2022-04-22 09:37:13 +08:00
Andelf 115054736d
test(e2e): add test for backspace and cursor pos (#4896)
* test(e2e): add test for backspace and cursor pos
* fix(test): refine, fix wrong helper
2022-04-15 19:50:25 +08:00
Peng Xiao 3beb46261e fix: lock file & ci check 2022-04-12 10:00:06 -04:00
Junyi Du a97c37c2ad test(e2e): fix missing event_ property of KeyboardEvent in Google Closure Library 2022-04-01 17:36:39 +08:00
Andelf 3215b99be4 fix(build): deps for macos arm64 build 2022-03-27 00:59:19 +08:00
Andelf d74f75d1a1 fix(build): dugite arch under macOS arm64
Fix #4563
2022-03-25 01:11:35 +08:00
Andelf 3a5fe6b413 fix(ci): sourcemap of android 2022-03-24 14:43:50 +08:00
Andelf 7b040787e8
fix(build): sourcemap in release (#4710)
* fix(build): sourcemap in release

Fix #4613
2022-03-24 14:03:26 +08:00
Andelf c3110117ed ci(android): allow non-release build 2022-03-21 16:15:40 +08:00
Andelf 687f5b8c9c fix(build): keep source map in app release 2022-03-19 19:58:43 +08:00
Andelf a3b5f10d0b fix(ci): add sentry sourcemaps 2022-03-19 19:11:36 +08:00
Gabriel Horner 9af9150a0a Add CI check to make sure static yarn.lock is updated 2022-03-18 11:04:47 -04:00
Gabriel Horner d34e53b6f7 Bump bb to a version that supports datalog parser 2022-03-09 14:10:38 +08:00
Gabriel Horner 6200ec70d3 Add rules linter for unbound vars and invalid queries
Linter caught one unbound var which wasn't an error but nonetheless good
to cleanup
2022-03-09 14:10:38 +08:00
Gabriel Horner 465765abc8 Fix outdated yarn.lock 2022-02-23 00:04:42 +08:00
Gabriel Horner c70bc56d75 Add CI check for outdated yarn.lock 2022-02-23 00:04:42 +08:00
Gabriel Horner 40eb74a47c Add first pass at large vars linter
Had to tweak rewrite-clj to read vars with metadata.
Added fail fast behavior to fns to prevent silent failure
which was impacting tasks. Started looking at a few vars. More to look
at
2022-02-04 14:06:50 -05:00
Gabriel Horner 0fcdb498d8 Update lang tasks to also read shortcuts
- Updated docs with more accurate picture of translation state
- invalid task found keys that were no longer used from 2 commands
- Cleaned up rewrite-clj
2022-02-02 11:26:20 -05:00
Gabriel Horner 04241dfe96 Merge branch 'master' into feature/lang-tasks-and-ci 2022-01-29 10:06:44 -05:00
Gabriel Horner 02c0489a26 Add CI job for invalid dicts
And tweak fn so that it actually fails
2022-01-27 17:43:10 -05:00
Gabriel Horner 8b428796bc Setup carve and ignore all unused vars by default
Also split out lint jobs to their own step
2022-01-27 14:11:59 -05:00
Tienson Qin 6aba8c3241
Improve long page editing performance (#3855)
* Remove expensive parsing when saving files

* Add limit to page blocks query

* Don't collapse block's body to make it compatible with other tools

* Alert if there're unsaved changes when switching graphs

* DB schema migration for :block/collapsed? from it's property

Co-authored-by: Andelf <andelf@gmail.com>
2022-01-18 10:37:31 +08:00
Gabriel Horner 2b46cc4938 Fix kondo invocation and output progress 2022-01-16 12:42:34 +08:00
Gabriel Horner 8b0026f34b Tweak lint docs 2022-01-16 12:42:34 +08:00
Gabriel Horner 3ec587d6eb lint :all-the-things: 2022-01-16 12:42:34 +08:00
Andelf 71ff117d59 ci(build): rename job 2022-01-13 22:48:27 +08:00
Andelf bee80914a6 ci: refacotr test, add as many cache to speedup 2022-01-13 12:27:47 +08:00
Gabriel Horner b7b3375f62 Lint extensions/ and wrap up hanging frontend dirs
fs/, format/ and logseq/ also added to linting by adding todos for later
inspection
2022-01-12 16:38:17 -05:00
Gabriel Horner f1d15b0e05 Lint components and address comments in review
Start using :clj-kondo/ignore as lint violations that need to be
revisited. They may side effect and should be removed with better
understanding of their context
2022-01-12 15:32:47 -05:00
Gabriel Horner f864f0fd1c Add linting that passes so far to CI 2022-01-11 17:41:04 -05:00
Gabriel Horner 3ded9ee1ff Add comment about allowed node version
node 17.x is the default for homebrew which doesn't work with this repo.
Make allowed node version more explicit to avoid dev confusion
2022-01-12 00:22:37 +08:00
Andelf 0aa36ae78c fix(ci): trigger pr-labeler on pull_request_target 2022-01-11 16:21:50 +08:00
Andelf b4371ce8a4 ci: add pr labeler 2022-01-07 22:13:18 +08:00
Andelf 4badfcd899 ci: rename release title 2022-01-06 18:27:47 +08:00
Andelf 27af2a8234 fix(ci): version check cmd 2021-12-28 15:36:36 +08:00
Andelf 9acafb2745 build(docker): add docker build 2021-12-28 15:36:36 +08:00
Andelf bd6bb97293 ci: non release for non-beta 2021-12-25 10:29:14 +08:00
Andelf d5921e3a33 ci: add android apk build to nightly and beta release 2021-12-23 01:17:35 +08:00
Andelf d18e8d4c03 ci: add android apk build 2021-12-22 15:01:21 +08:00
Andelf ed8850111d fix(ci): fix typo, add missing checksum 2021-12-15 12:27:06 +08:00
Andelf 096e285090 fix: nightly build with draft=false 2021-12-14 13:49:38 +08:00
Andelf 878524355b ci: always non-draft for nightly build 2021-12-14 00:17:05 +08:00
Andelf e1a7f6b8c6 ci: add nightly release job 2021-12-14 00:17:05 +08:00
Andelf 0f6c68711c fix(ci): enable e2e test on push 2021-12-13 11:11:03 +08:00
Andelf adf0680c00 fix(ci): force macos-11 2021-12-08 23:56:45 +08:00
Tienson Qin cf795aeaef fix: add apple asc provider 2021-12-08 22:40:39 +08:00
Andelf 8f211e21c5 fix(ci): missing variables in release build, disable nightly 2021-12-01 13:19:26 +08:00
Andelf 935a317c6e ci: use version.cljs instead 2021-11-30 11:06:35 +08:00
Andelf fa003e6f57 ci: refactor desktop app release ci, add nightly build 2021-11-30 11:06:35 +08:00
Andelf dc8972b08a ci: add .gitlibs to build cache 2021-11-26 12:03:22 +08:00
Tienson Qin 50904f6fb3 ci: another try 2021-11-24 17:45:18 +08:00
Tienson Qin b05f79a032 ci: fix cert path 2021-11-24 16:53:42 +08:00