Commit Graph

6908 Commits

Author SHA1 Message Date
Philip Molares 73bd1d3937 fix(markdown-it-plugins): import of MarkdownIt
Apparently we need to specify the index.js file now instead of
just pointing to the folder.

Signed-off-by: Philip Molares <philip.molares@udo.edu>
2026-01-12 17:32:03 +01:00
renovate[bot] f3cb59aa2b chore(deps): update dependency typescript to v5.9.3
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2026-01-12 17:32:03 +01:00
Erik Michelson e85320d623 fix(docker): use correct tsconfig path and turbo args
The docker build seemed to fail because the tsconfig
for the backend pointed to an out-of-date path, that
didn't exist anymore. Furthermore, the --no-cache
directive was deprecated and should be replaced by
explicitly stating the caching mode for local and
remote cache (empty policy means no caching).

Signed-off-by: Erik Michelson <github@erik.michelson.eu>
2026-01-12 09:46:41 +01:00
Erik Michelson af0365d9ad fix(docker): remove bash-dependencies from build script
The build script for the backend relied on some bash specifics.
Since bash is not available in alpine based node docker images,
building failed. This commit replaces bash functions with the
native POSIX equivalents.

Signed-off-by: Erik Michelson <github@erik.michelson.eu>
2026-01-12 09:46:41 +01:00
Erik Michelson 4b8b36ab76 fix(docker): replace deprecated ENV declarations in Dockerfile
Signed-off-by: Erik Michelson <github@erik.michelson.eu>
2026-01-12 09:46:41 +01:00
Erik Michelson 5afceb6884 docs(explore): add missing ESDoc comments
Signed-off-by: Erik Michelson <github@erik.michelson.eu>
2026-01-11 20:21:00 +01:00
Erik Michelson b75296780f chore(explore): linting fixes
Signed-off-by: Erik Michelson <github@erik.michelson.eu>
2026-01-11 20:21:00 +01:00
Erik Michelson 849807fcaf fix(explore): MariaDB expects named subqueries
Signed-off-by: Erik Michelson <github@erik.michelson.eu>
2026-01-11 20:21:00 +01:00
Philip Molares 0a34f11e29 test(explore): allow some notes to be publiclyVisible
For our testing it necessary to allow some notes to be publicly visible

Co-authored-by: Erik Michelson <github@erik.michelson.eu>
Signed-off-by: Erik Michelson <github@erik.michelson.eu>
Signed-off-by: Philip Molares <philip.molares@udo.edu>
2026-01-11 20:21:00 +01:00
Philip Molares d384ea691a refactor(explore): remove tags from search
This is not final and should be reinstated once we figure out how to handle tags

Co-authored-by: Erik Michelson <github@erik.michelson.eu>
Signed-off-by: Erik Michelson <github@erik.michelson.eu>
Signed-off-by: Philip Molares <philip.molares@udo.edu>
2026-01-11 20:21:00 +01:00
Erik Michelson 5821d8dd61 feat(explore): show only recently visited notes that a user has access to
Co-authored-by: Philip Molares <philip.molares@udo.edu>
Signed-off-by: Philip Molares <philip.molares@udo.edu>
Signed-off-by: Erik Michelson <github@erik.michelson.eu>
2026-01-11 20:21:00 +01:00
Erik Michelson dabc5da3c3 refactor(explore): extract tags from common queries
Co-authored-by: Philip Molares <philip.molares@udo.edu>
Signed-off-by: Philip Molares <philip.molares@udo.edu>
Signed-off-by: Erik Michelson <github@erik.michelson.eu>
2026-01-11 20:21:00 +01:00
Philip Molares a4c590230e feat(permissions): publiclyVisible flag for note listing on explore
This field should allow the user to allow pages to be found
easily on the public explore page without exposing all pages directly.

Co-authored-by: Erik Michelson <github@erik.michelson.eu>
Signed-off-by: Erik Michelson <github@erik.michelson.eu>
Signed-off-by: Philip Molares <philip.molares@udo.edu>
2026-01-11 20:21:00 +01:00
Philip Molares 7426d8d885 feat(explore): reload explore page if a note is deleted
Because we don't want to show old notes, we need to reload
the explore page after a delete.

Signed-off-by: Philip Molares <philip.molares@udo.edu>
2026-01-11 20:21:00 +01:00
Erik Michelson 6ec4cab7fb docs(explore): add ESDoc comments to new components and functions
Signed-off-by: Erik Michelson <github@erik.michelson.eu>
2026-01-11 20:21:00 +01:00
Erik Michelson a86a0a97b5 fix(explore): optimize query
This way the query works correctly in all database systems

Co-authored-by: Philip Molares <philip.molares@udo.edu>
Signed-off-by: Philip Molares <philip.molares@udo.edu>
Signed-off-by: Erik Michelson <github@erik.michelson.eu>
2026-01-11 20:21:00 +01:00
Erik Michelson cef615433b fix(explore): show tags only once for notes with multiple visits
Co-authored-by: Philip Molares <philip.molares@udo.edu>
Signed-off-by: Philip Molares <philip.molares@udo.edu>
Signed-off-by: Erik Michelson <github@erik.michelson.eu>
2026-01-11 20:21:00 +01:00
Erik Michelson 399287584f refactor(explore): re-design pinned notes, improve UI
Co-authored-by: Philip Molares <philip.molares@udo.edu>
Signed-off-by: Philip Molares <philip.molares@udo.edu>
Signed-off-by: Erik Michelson <github@erik.michelson.eu>
2026-01-11 20:21:00 +01:00
Philip Molares 6e663aa600 test(explore): add unit tests
Co-authored-by: Erik Michelson <github@erik.michelson.eu>
Signed-off-by: Erik Michelson <github@erik.michelson.eu>
Signed-off-by: Philip Molares <philip.molares@udo.edu>
2026-01-11 20:21:00 +01:00
Erik Michelson 1b0a1d0ab2 fix(explore): use correct translations
Signed-off-by: Erik Michelson <github@erik.michelson.eu>
2026-01-11 20:21:00 +01:00
Philip Molares adb0d71c2c test: add e2e test for explore api
Signed-off-by: Philip Molares <philip.molares@udo.edu>
2026-01-11 20:21:00 +01:00
Philip Molares cea5d2700e fix(explore): add default page number
Signed-off-by: Philip Molares <philip.molares@udo.edu>
2026-01-11 20:21:00 +01:00
Philip Molares 0fdeaa70b3 refactor(explore): reorder methods
This alligns the methods to the api controller

Signed-off-by: Philip Molares <philip.molares@udo.edu>
2026-01-11 20:21:00 +01:00
Erik Michelson 87b9cf74dd fix(explore): return null on unpinning from API
Signed-off-by: Erik Michelson <github@erik.michelson.eu>
2026-01-11 20:21:00 +01:00
Erik Michelson 7d61a774f9 refactor(explore): load pinned notes with the explore page
Signed-off-by: Erik Michelson <github@erik.michelson.eu>
2026-01-11 20:21:00 +01:00
Erik Michelson f51bc1b061 fix(explore): set initial state for mocking
Signed-off-by: Erik Michelson <github@erik.michelson.eu>
2026-01-11 20:21:00 +01:00
Erik Michelson 6bb13488f7 refactor(explore): return NoteExploreEntryDto on pinning
Signed-off-by: Erik Michelson <github@erik.michelson.eu>
2026-01-11 20:21:00 +01:00
Erik Michelson 1e9fc8d081 feat(explore): pin and unpin notes
Signed-off-by: Erik Michelson <github@erik.michelson.eu>
2026-01-11 20:21:00 +01:00
Erik Michelson 0f2c301b4c feat(explore): add section for recently visited notes
Signed-off-by: Erik Michelson <github@erik.michelson.eu>
2026-01-11 20:21:00 +01:00
Erik Michelson 4e033863ff feat(explore): add backend logic for the explore page
Signed-off-by: Erik Michelson <github@erik.michelson.eu>
2026-01-11 20:21:00 +01:00
Philip Molares fa110dbdd3 refactor(explore): extract date utils
Co-authored-by: Erik Michelson <github@erik.michelson.eu>
Signed-off-by: Erik Michelson <github@erik.michelson.eu>
Signed-off-by: Philip Molares <philip.molares@udo.edu>
2026-01-11 20:21:00 +01:00
Erik Michelson 87257ac3dd feat(explore): add frontend explore page
Co-authored-by: Philip Molares <philip.molares@udo.edu>
Signed-off-by: Philip Molares <philip.molares@udo.edu>
Signed-off-by: Erik Michelson <github@erik.michelson.eu>
2026-01-11 20:21:00 +01:00
Bart Louwers cd62b8bd7b docs(readme): Fix logo for dark backgrounds (#6314) 2026-01-10 22:22:38 +00:00
Philip Molares 72149d49a5 fix(revision): fix cron job to delete old revisions
This function did not use the new database datetime functions and therefore did not correctly work.

Signed-off-by: Philip Molares <philip.molares@udo.edu>
2026-01-08 00:20:45 +01:00
Philip Molares 17ba34567d docs(config): explain permissions
Add additional explanation for permission interactions

Signed-off-by: Philip Molares <philip.molares@udo.edu>
2026-01-08 00:16:12 +01:00
Philip Molares 85fccc4e15 test(noteConfig): test the special permissions interactions
As those interaction are quite special at times we should test them individually

Signed-off-by: Philip Molares <philip.molares@udo.edu>
2026-01-08 00:16:12 +01:00
Philip Molares 8fe3821312 fix(noteConfig): correctly handle default everyone and max guest level interaction
Some combinations of the default everyone permission
and max guest level do not work conceptually and need to
throw an error

Signed-off-by: Philip Molares <philip.molares@udo.edu>
2026-01-08 00:16:12 +01:00
Philip Molares 51062b30ad refactor: remove NoteService.toNotePermissionsDto
We already have this function in the PermissionService

Signed-off-by: Philip Molares <philip.molares@udo.edu>
2025-12-27 19:48:08 +01:00
Erik Michelson f739c02fbd chore(deps): remove unused rimraf package
Signed-off-by: Erik Michelson <github@erik.michelson.eu>
2025-12-23 21:35:34 +01:00
Erik Michelson 971d434eab fix(backend): update tsconfig to avoid d.ts files in migrations dir
Signed-off-by: Erik Michelson <github@erik.michelson.eu>
2025-12-23 21:35:34 +01:00
Philip Molares ea4c2579de fix(backend): start and start:dev scripts
We don't want to delete the dist folder before we start.
Furthermore, we want to have the same script semantics as
in the frontend (having start starting the built output and
start:dev starting in hot-reload mode).

Co-authored-by: Erik Michelson <github@erik.michelson.eu>
Signed-off-by: Erik Michelson <github@erik.michelson.eu>
Signed-off-by: Philip Molares <philip.molares@udo.edu>
Signed-off-by: Erik Michelson <github@erik.michelson.eu>
2025-12-23 21:35:34 +01:00
Erik Michelson cf878ef84c fix(build): remove invalid migration files from build
Signed-off-by: Erik Michelson <github@erik.michelson.eu>
2025-12-23 21:35:34 +01:00
Erik Michelson 03f9e663c7 docs(config): update environment variable names
Signed-off-by: Erik Michelson <github@erik.michelson.eu>
2025-12-21 10:56:57 +01:00
Erik Michelson faef272eff fix(e2e-tests): update variables in tests after rebasing e2e tests
Signed-off-by: Erik Michelson <github@erik.michelson.eu>
2025-12-21 10:56:57 +01:00
Erik Michelson 33ae5c6e21 fix(tests): check for process.exit in tests
Signed-off-by: Erik Michelson <github@erik.michelson.eu>
2025-12-21 10:56:57 +01:00
Erik Michelson 3324bf1b2f fix(config): adjust media config type to Zod schema
Our config error messages are generated from the nested
Zod schema for the config. This means, if the path for
the type of media backend to use is
  mediaBackend.type
then the env variable should be
  HD_MEDIA_BACKEND_TYPE

Previously, we used some custom env variable names
like
  HD_MEDIA_BACKEND

This however resulted in the message that the env
variable HD_MEDIA_BACKEND is not set even if it was,
or the other way around, because the generated error
messages were not fitting the actual variable name.

Signed-off-by: Erik Michelson <github@erik.michelson.eu>
2025-12-21 10:56:57 +01:00
Erik Michelson 5732cb1f65 fix(config): print config error messages on startup
Due to the error being thrown, config error messages
were not nicely displayed on app startup.
Furthermore, since the log level defaulted to WARN
before overridden using HD_LOGLEVEL, the startup
info message was not displayed.

Signed-off-by: Erik Michelson <github@erik.michelson.eu>
2025-12-21 10:56:57 +01:00
Philip Molares 398588f519 chore: lint fix
Signed-off-by: Philip Molares <philip.molares@udo.edu>
2025-12-17 22:28:45 +01:00
renovate[bot] b2eec4d939 chore(deps): update dependency @trivago/prettier-plugin-sort-imports to v6
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-12-17 22:28:45 +01:00
renovate[bot] 1276f2d778 chore(deps): update dependency dotenv-cli to v11
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-12-17 22:05:26 +01:00