10653 Commits

Author SHA1 Message Date
Panagiotis Papadopoulos
0572f22121 chore(scripts): replace ts-node with nodemon in start-test-server
keep the same structure as the other scripts, which all use nodemon.
`ts-node` wasn't even working before, it was throwing an "unknown file extension […] for main.ts" error
2025-01-14 08:31:07 +01:00
Panagiotis Papadopoulos
cd69199bb1 chore(scripts): chain commands with && in start-test-server 2025-01-14 08:23:16 +01:00
Panagiotis Papadopoulos
26bd26b207 fix(deps): remove explicit @electron/rebuild from devDep
it is not directly used by us anymore, however since
`@electron-forge` depends on it, it still gets installed :-)
2025-01-14 08:14:16 +01:00
Panagiotis Papadopoulos
ec65f3a9e4 fix(deps): electron-rebuild => @electron/rebuild 2025-01-14 08:14:16 +01:00
Panagiotis Papadopoulos
45fd6cba49 fix(deps): electron-packager => @electron/packager
major version update, because v17 was not released under
@electron/packager.
breaking changes mentioned below, but we are not affected
as far as I can tell.

https://github.com/electron/packager/releases/tag/v18.0.0
2025-01-14 08:14:16 +01:00
renovate[bot]
42ce80813d
chore(deps): update dependency @types/node to v22.10.6 2025-01-14 01:26:14 +00:00
Adorian Doran
9724b19cd2 style(next): add visual cues for the input action buttons when focused via keyboard 2025-01-14 02:12:26 +02:00
Adorian Doran
707d406ee9 style(next): fix the background of disabled input action buttons 2025-01-14 01:51:18 +02:00
Adorian Doran
26e3c13575 style(next): add states for input action buttons, tweak card background color on dark theme 2025-01-14 01:46:28 +02:00
Adorian Doran
f462e7f93b style(next): add the initial style for input groups 2025-01-14 01:30:31 +02:00
Elian Doran
1807b2b031
chore(types): missing import type for JS imports 2025-01-13 23:18:10 +02:00
Panagiotis Papadopoulos
8b91c528aa fix(views): replace deprecated meta tag
`apple-mobile-web-app-capable` =>
`mobile-web-app-capable`

as warned by Chrome and also already implemented by
e.g. Flutter or vercel/Next.js:

https://github.com/vercel/next.js/pull/70363
https://github.com/flutter/flutter/issues/154596
2025-01-13 20:49:53 +01:00
Elian Doran
2fa5955bd5
fix(e2e): port for docker 2025-01-13 21:48:30 +02:00
Adorian Doran
5dd7b2c049 style(next): tweak the inputs wrapped inside input groups 2025-01-13 21:45:56 +02:00
Adorian Doran
9ea7b35e6a style(next): use the text box appearance for text areas as well 2025-01-13 21:23:12 +02:00
Elian Doran
6c886fe3b9
chore(e2e): order around docker test 2025-01-13 21:21:18 +02:00
Adorian Doran
56fb70ab5e style(next): refactor CSS 2025-01-13 21:12:27 +02:00
Elian Doran
093f9d60f0
fix(e2e): flaky test due to timeout 2025-01-13 17:46:57 +02:00
Elian Doran
b69cad2298
fix(e2e): leaks if language fails 2025-01-13 17:42:21 +02:00
Elian Doran
89d700d5ed
chore(e2e): use different mechanism for closing all tabs 2025-01-13 17:21:50 +02:00
Adorian Doran
93e740cf36 style(next): restyle text boxes 2025-01-13 14:51:23 +02:00
Elian Doran
d24227d718
Merge pull request #933 from pano9000/chore_npx-playwright-script
chore(scripts): add `test-playwright` script to package.json
2025-01-13 11:10:48 +02:00
Panagiotis Papadopoulos
bcbf4f4090 chore: fix formatting 2025-01-13 09:21:24 +01:00
Panagiotis Papadopoulos
903988fec5 i18n(backend_log): translate messages 2025-01-13 09:21:24 +01:00
Panagiotis Papadopoulos
dcfdb67539 refactor(backend_log): improve handle 'file not found'
handle errors more "user friendly" and actually
let the user know, that either the file is not
existing (yet), or that reading the log failed.
2025-01-13 09:21:24 +01:00
Panagiotis Papadopoulos
67d858441a refactor(backend_log): include filename in log 2025-01-13 09:21:24 +01:00
Panagiotis Papadopoulos
c4ad84ab06 refactor(backend_log): print error to the log 2025-01-13 09:21:24 +01:00
Panagiotis Papadopoulos
eb4b5a44df refactor(backend_log): use path.join for log file path 2025-01-13 09:21:24 +01:00
Panagiotis Papadopoulos
06ebcc210e refactor(backend_log): use async readFile
using synchronous functions on the backend
is not recommended, as it is "blocking the event loop", i.e. no other tasks get executed/processed,
while the file is being read
2025-01-13 09:21:24 +01:00
Panagiotis Papadopoulos
b2e83caf4a chore(scripts): add test-playwright script to package.json 2025-01-13 09:11:14 +01:00
Elian Doran
b30164ef66
chore(e2e): add missing await to expect 2025-01-13 10:00:13 +02:00
Panagiotis Papadopoulos
5373ef509b chore(prettier): fix code style 2025-01-13 08:28:12 +01:00
Panagiotis Papadopoulos
6818b2d54c style: move "important" funcs to top of file 2025-01-13 08:26:07 +01:00
Panagiotis Papadopoulos
c47522eb50 refactor(data_dir): pass DIR_NAME as argument to getTriliumDir
makes it a bit cleaner and easier to test in the future,
as it is one thing less that'd need mocking :-)
2025-01-13 08:26:07 +01:00
Panagiotis Papadopoulos
e021c0cd0e test(data_dir): add tests for getDataDirs 2025-01-13 08:26:07 +01:00
Panagiotis Papadopoulos
63079c0939 test(data_dir): add tests for getPlatformAppDataDir 2025-01-13 08:26:07 +01:00
Panagiotis Papadopoulos
94b8bcf8c9 refactor(data_dir): export functions to allow for testing 2025-01-13 08:26:07 +01:00
Panagiotis Papadopoulos
8b1071c459 refactor(data_dir): export dirs as frozen readonly object
previously exported object allowed the values to be changed
accidentally at runtime and buildtime
2025-01-13 08:26:07 +01:00
Panagiotis Papadopoulos
759d24855b style(data_dir): fix indentation 2025-01-13 08:26:07 +01:00
Panagiotis Papadopoulos
7a1e8714af refactor(data_dir): logically order/split cases in getTriliumDataDir
- the blocks now clearly follow the intended logic described in the comments
- I renamed the `getAppDataDir` to more specific `getPlatformAppDataDir`
2025-01-13 08:25:53 +01:00
Panagiotis Papadopoulos
3481c8ba84 refactor(data_dir): use path.join for safer joins
https://nodejs.org/api/path.html#pathjoinpaths
2025-01-13 08:24:04 +01:00
Panagiotis Papadopoulos
8826021c63 refactor(data_dir): add createDirIfNotExisting function
removes some code duplication
2025-01-13 08:24:04 +01:00
Panagiotis Papadopoulos
61a19d5628 refactor(data_dir): add FOLDER_PERMISSION const
gets rid of previously "magic number"
2025-01-13 08:24:01 +01:00
Elian Doran
fbfee818b2
fix(ci): directory for e2e tests 2025-01-13 09:11:11 +02:00
renovate[bot]
9b765b458c
fix(deps): update dependency katex to v0.16.20 2025-01-13 00:42:04 +00:00
Elian Doran
ffacc1f5f7
chore(e2e): disable reuse of server on CI 2025-01-13 00:08:56 +02:00
Elian Doran
e556137a25
feat(ci): run playwright for docker builds 2025-01-13 00:08:43 +02:00
Adorian Doran
c9bf752b1f Merge branch 'develop' of https://github.com/TriliumNext/Notes into style/next/forms 2025-01-12 23:45:03 +02:00
Elian Doran
9fd8e4d030
fix(e2e): language change breaking other tests 2025-01-12 23:41:27 +02:00
Elian Doran
9b85a101a6
feat(e2e): test note settings 2025-01-12 19:43:29 +02:00