Commit Graph

10321 Commits

Author SHA1 Message Date
Elian Doran d2c2d945aa Merge pull request #1015 from TriliumNext/test_fix-flaky-getPlatformAppDataDir
test(data_dir): fix flaky getPlatformAppDataDir test on Windows
2025-01-20 20:50:26 +02:00
Elian Doran 2b8ee31be3 refactor(geomap): skip module loader for JS 2025-01-20 20:36:58 +02:00
Panagiotis Papadopoulos ca8146413a test(data_dir): fix flaky getPlatformAppDataDir test on Windows
Delete the provided process.env.APPDATA on Windows, so that we can use our own values (one of which is "undefined", which was causing the getPlatformAppDataDir to fallback to the "real" process.env.APPDATA
-> causing failing test, when run on Windows
2025-01-20 18:57:43 +01:00
Elian Doran eca3955dc2 feat(geomap): add basic layer 2025-01-20 19:20:59 +02:00
Elian Doran 94a0403981 feat(geomap): load leaflet 2025-01-20 19:18:29 +02:00
Elian Doran e1952fe6b8 feat(geomap): create geomap note type 2025-01-20 18:45:56 +02:00
Panagiotis Papadopoulos 4be675c4e1 test(import/mime): add additional test case for getMime 2025-01-20 08:36:11 +01:00
Panagiotis Papadopoulos 4e59f58ce6 refactor(import/mime): simplify getMime 2025-01-20 08:36:11 +01:00
Panagiotis Papadopoulos 6a0edb68de refactor(import/mime): simplify getType 2025-01-20 08:36:11 +01:00
Panagiotis Papadopoulos 91ae4b629e refactor(import/mime): simplify normalizeMimeType 2025-01-20 08:36:11 +01:00
Panagiotis Papadopoulos 815929c376 refactor(import/mime): split CODE_MIME_TYPES Record into two separate objects
CODE_MIME_TYPES -> as a Set -> as we only care about the existance of those types
CODE_MIME_TYPES_OVERRIDE -> as a Map with those keys and the "overwrite" values as associated value

-> this way  we don't have to unnecessarily store additional boolean values for everything *but* those hand ful of mime types

-> also I've sorted the items alphabetically, while I was at it
2025-01-20 08:36:11 +01:00
Panagiotis Papadopoulos 1405e22f89 test(import/mime): add tests 2025-01-20 08:36:11 +01:00
Elian Doran 7f15f8a7de fix(mindmap): save direction as soon as it is changed (closes #986) 2025-01-19 23:48:30 +02:00
Elian Doran b47dc13ff1 fix(mindmap): regression on new mindmap 2025-01-19 23:38:20 +02:00
Elian Doran 9820e8aa12 fix(mindmap): use dynamic import instead of static one 2025-01-19 23:34:57 +02:00
Elian Doran fb0dda982f fix(mindmap): restore direction 2025-01-19 23:30:07 +02:00
Elian Doran 0292489001 Merge pull request #1004 from TriliumNext/test_simplify-data-dir
test(services/data_dir): simplify getPlatformAppDataDir
2025-01-19 23:14:19 +02:00
Elian Doran 55ce7aac10 Merge remote-tracking branch 'origin/develop' into test_simplify-data-dir 2025-01-19 23:13:56 +02:00
Elian Doran f36ec9b018 Merge pull request #1008 from TriliumNext/renovate/better-sqlite3-11.x-lockfile
fix(deps): update dependency better-sqlite3 to v11.8.1
2025-01-19 23:13:28 +02:00
Elian Doran 632cfb3b7f Merge pull request #954 from TriliumNext/renovate/better-sqlite3-11.x
fix(deps): update dependency better-sqlite3 to v11.8.1
2025-01-19 23:13:11 +02:00
Elian Doran 24475255d9 Merge pull request #1009 from TriliumNext/renovate/react-monorepo
fix(deps): update react monorepo
2025-01-19 23:11:34 +02:00
Elian Doran b913e4e090 Merge pull request #1012 from TriliumNext/fix_webpack-warning
fix(utils/dynamicRequire): get rid of Webpack Critical dependency warning
2025-01-19 15:59:15 +02:00
Panagiotis Papadopoulos d56752e5a9 fix(utils/dynamicRequire): pass moduleName explicitly as string
fixes the Webpack warning:
"WARNING in ./src/public/app/services/utils.ts 249:15-34
Critical dependency: the request of a dependency is an expression"

as we now explicitly pass the moduleName as string and not "expression"
source:
https://stackoverflow.com/questions/42908116/
2025-01-19 12:57:27 +01:00
renovate[bot] 5ddd88ee55 fix(deps): update dependency better-sqlite3 to v11.8.1 2025-01-19 04:47:01 +00:00
renovate[bot] 66ad3779df fix(deps): update react monorepo 2025-01-19 00:47:03 +00:00
renovate[bot] 6443b2ea66 fix(deps): update dependency better-sqlite3 to v11.8.1 2025-01-19 00:46:36 +00:00
Elian Doran 9025516806 Merge pull request #1006 from TriliumNext/chore_move-test-files
chore: clean up and move test files next to actual files
2025-01-18 23:49:02 +02:00
Panagiotis Papadopoulos c9619e1a1b chore(tests): fix type error in data_dir.spec 2025-01-18 20:45:01 +01:00
Panagiotis Papadopoulos 121e7b33ec chore(tests): comment out "todo" code in attribute_parser.spec
we now have more stricter TS rules being applied to the spec files, so `tsc` fails with these now.
and since this is set to TODO, because of outdated code,
let's comment out, instead of using //@ts-expect-error
2025-01-18 20:32:40 +01:00
Panagiotis Papadopoulos 67ee3c30fb chore(tests): remove useless test stub 2025-01-18 20:24:43 +01:00
Panagiotis Papadopoulos 09e0805d16 chore(tests): remove playwright demo spec
as discussed here:
https://github.com/orgs/TriliumNext/discussions/925#discussioncomment-11870786
2025-01-18 20:22:33 +01:00
Panagiotis Papadopoulos 627b2faf0b chore(tests): move remaining valid tests next to actual files 2025-01-18 20:20:30 +01:00
Panagiotis Papadopoulos f803bd6140 chore(tests): move becca_mocking to spec/support 2025-01-18 20:16:02 +01:00
Panagiotis Papadopoulos 49246ee456 chore(tests): move tests next to actual file 2025-01-18 20:15:29 +01:00
Panagiotis Papadopoulos 0ccf91721d test(services/data_dir): simplify getPlatformAppDataDir
use the new available mocks to make tests a tiny bit more simpler :-)
2025-01-18 19:17:00 +01:00
Elian Doran 658317799d feat(options_init): enable fixed editing toolbar by default for new users 2025-01-18 19:38:41 +02:00
Elian Doran 5899ba9a57 Revert "feat(options_init): enable horizontal layout by default for new users"
This reverts commit 637d1df0f5.
2025-01-18 19:37:09 +02:00
Elian Doran ef1ab56f51 chore(i18n): translate two more messages in Romanian 2025-01-18 19:20:49 +02:00
Elian Doran 637d1df0f5 feat(options_init): enable horizontal layout by default for new users 2025-01-18 19:16:26 +02:00
Elian Doran 4e9aafc919 fix(demo): broken TODOs (closes #984) 2025-01-18 19:02:02 +02:00
Elian Doran 0a0707434e feat(mobile): allow resetting launch bar config 2025-01-18 18:49:36 +02:00
Elian Doran 1369cd8b16 feat(client): implement move to available/visible launchers on mobile as well 2025-01-18 18:45:13 +02:00
Elian Doran b367862fe8 fix(client): launch bar move commands not working (fixes #989) 2025-01-18 18:02:26 +02:00
Elian Doran 3090233078 Merge pull request #998 from TriliumNext/test_data-dir-getTriliumDataDir
test(data_dir): add missing getTriliumDataDir tests
2025-01-18 17:04:28 +02:00
Elian Doran 981e105de8 Merge pull request #999 from TriliumNext/test_fix-search-spec-msg
test(spec/search): fix expect error message printing
2025-01-18 17:03:25 +02:00
Panagiotis Papadopoulos c5d4df11a5 test(spec/search): fix expect error message printing
adjusted message to be printed correctly and adjusted wording ->
previously it was printing "[object object]",
since we are dealing with an  array of objects
2025-01-18 13:55:27 +01:00
Panagiotis Papadopoulos cbc10e1f15 chore(prettier): fix data_dir.spec.ts 2025-01-18 13:21:45 +01:00
Panagiotis Papadopoulos dba0ef4945 test(services/data_dir): make test descriptions a bit more readable 2025-01-18 13:21:45 +01:00
Panagiotis Papadopoulos 31fb8eb3d3 test(services/data_dir): add getTriliumDataDir tests
since we *need* mocks to tests getTriliumDataDir, I had to change a bit the setup structure of the tests as well -> functions needs to be
imported dynamically *after* the mocks are registered
2025-01-18 13:21:45 +01:00
Elian Doran c7e688b6e6 chore(client/ts): port left_pane_container 2025-01-18 12:56:00 +02:00