Commit Graph

3062 Commits

Author SHA1 Message Date
Andrey Antukh 9de8ebb52c Add read-only option for files/get-file 2025-05-08 19:12:50 +02:00
Andrey Antukh e271caa32b Merge remote-tracking branch 'origin/staging' into develop 2025-05-08 13:41:11 +02:00
Andrey Antukh 694a2084e2 Add file cleaner to file-gc process 2025-05-08 13:35:25 +02:00
Andrey Antukh fef19a3c80 Add legacy flex dir cleaner 2025-05-08 13:35:25 +02:00
Andrey Antukh 8f27b82edd Extend cleaner to fix invalid root shapes 2025-05-08 13:34:48 +02:00
Andrey Antukh e203536506 Add webhook trigger to audit events 2025-05-08 11:56:06 +02:00
Andrey Antukh 0b7b6e2c23 ♻️ Refactor penpot library 2025-05-08 09:51:25 +02:00
Andrey Antukh be26985ca5 Make the fdata/path-data feature no-team-inheritable
And also add helpers for revert it to plain format
2025-05-06 13:39:17 +02:00
Andrey Antukh 2aa2525d0e Add db conn dynamic binding for srepl helpers 2025-05-06 13:39:17 +02:00
Andrey Antukh 1fc0203c38 🎉 Add full integration with path data type feature 2025-05-06 13:39:10 +02:00
María Valderrama 86a498fc29
Optimize profile setup flow for better user experience (#6223)
*  Optimize profile setup flow for better user experience

* 📎 Remove extra onboarding step

* 📎 Code review

* 📎 Update changelog

---------

Co-authored-by: Andrey Antukh <niwi@niwi.nz>
2025-05-05 10:42:08 +02:00
Andrey Antukh b20147255a Add better approach for returning subscription on teams response 2025-04-28 10:23:02 +02:00
Andrey Antukh 38728eb342 Add the ability to known the subscription status on teams list 2025-04-28 10:23:02 +02:00
Andrey Antukh 18c7890f65 Add proper impl for retrieving num of editors 2025-04-28 10:23:02 +02:00
Andrey Antukh 1c224609b9 Add prototype for returning number of used slots on customer 2025-04-28 10:23:02 +02:00
Andrey Antukh 4b81468c9c Allow subscription to be `nil` 2025-04-28 10:23:02 +02:00
Andrey Antukh cffac2a56a Change schema for subscription 2025-04-28 10:23:02 +02:00
Andrey Antukh 05c0f8d69f 🎉 Add update-customer-subscription prepl method 2025-04-28 10:23:02 +02:00
Andrey Antukh 5db5bc65de 🎉 Add get-customer-prfile prepl rpc method 2025-04-28 10:23:02 +02:00
Andrey Antukh 952ab032f9 🎉 Add authenticate prepl rpc method 2025-04-28 10:23:02 +02:00
Andrey Antukh 2df6f2b8b1 ♻️ Refactor prepl interface
Make prepl to be json message based protocol
instead of clojure expression. This facilitates
implementing internal RPC over socket server.
2025-04-28 10:23:02 +02:00
Andrey Antukh 9c4896d72b Merge remote-tracking branch 'origin/staging' into develop 2025-04-24 09:00:13 +02:00
Andrey Antukh 80308ceafa 🐛 Make http cache aware of missing file data migrations 2025-04-23 18:15:33 +02:00
Andrey Antukh f65518f865 🐛 Fix incorrect migration application after binfile import 2025-04-23 18:10:52 +02:00
Andrey Antukh 40fe6369cb Merge remote-tracking branch 'origin/staging' into develop 2025-04-23 08:59:33 +02:00
Andrey Antukh 1dd23a3f47 🐛 Invalidate http cache on apply migrations to file on read operation 2025-04-23 07:57:56 +02:00
Andrey Antukh 05fac41534 🐛 Remove feature checking from get-file-data-for-thumbnail rpc method
The prev code has feature resolution race condition and it
in reallity does not need that check.
2025-04-22 21:38:40 +02:00
Andrey Antukh b7d7cf233a Fix shadow colors on import penpot files 2025-04-22 19:58:10 +02:00
Pablo Alba 064981ff3d Merge remote-tracking branch 'origin/staging' into develop 2025-04-22 10:44:29 +02:00
Andrey Antukh a209966427 🐛 Don't use schema uuid parsing function on websocket ns 2025-04-17 09:20:34 +02:00
Marina López 93c81ea49c
🐛 Fix pricing CTA to be under a config flag (#6304) 2025-04-16 17:17:47 +02:00
Marina López f2977cf938
Visual indicators for unlimited tier users (#6270)
*  Visual indicators for unlimited tier users

* ♻️ Refactor to organize properly subscription

* ♻️ Refactor with PR feedback

* 💄 Add minor cosmetic changes

---------

Co-authored-by: Andrey Antukh <niwi@niwi.nz>
2025-04-15 12:47:37 +02:00
Andrey Antukh bb80da137d Merge remote-tracking branch 'origin/staging' into develop 2025-04-15 12:10:53 +02:00
Andrey Antukh b49a4734ff 🐛 Fix srepl helper for restore file snapshots 2025-04-15 11:03:50 +02:00
Andrey Antukh 7990400c7a
🐛 Fix srepl helper for restore file snapshots (#6300) 2025-04-15 10:39:51 +02:00
Andrey Antukh 80d719353c Make auth data available before request parsing
For properly report profile-id
2025-04-14 09:23:41 +02:00
Alejandro 033ca0d56b
🐛 Fix error when an external user tries to export a shape on viewer (#6252) 2025-04-09 16:48:49 +02:00
Alejandro Alonso 82cf474863 Merge remote-tracking branch 'origin/staging' into develop 2025-04-09 13:52:54 +02:00
Andrey Antukh 34141ce9af 📎 Fix backend tests
Caused by update of image procesing libraries on the devenv docker
image update from debian to ubuntu
2025-04-09 13:37:52 +02:00
Andrey Antukh a4701866a4 ⬆️ Upgrade devenv (ubuntu, jvm, node) 2025-04-07 16:26:04 +02:00
Andrey Antukh 17f7f920c4 Merge branch 'staging' into develop 2025-04-07 11:32:41 +02:00
Pablo Alba af1d5b86e1
Merge pull request #6214 from penpot/palba-cleanup-components-v2
♻️ Cleanup of componentsv2
 Add check to avoid open files with components v1
2025-04-07 10:18:53 +02:00
Andrey Antukh 4640d043e3 ⬆️ Update yarn 2025-04-07 09:21:56 +02:00
Andrey Antukh bc957893f4 Make feature resolved on team load
That simplifies features retrieval to simple get
2025-04-07 07:50:40 +02:00
Andrey Antukh b8107ee497 Ensure workspace page loading and intialization process 2025-04-07 07:42:09 +02:00
Andrey Antukh 5cb39874a2 Add better error hints on auth ns 2025-04-07 07:10:40 +02:00
Andrey Antukh 9bc49e3381
Merge pull request #6209 from penpot/niwinz-features-enhancement
 Make feature resolved on team load
2025-04-03 15:43:12 +02:00
Pablo Alba f961b75bba ♻️ Cleanup of componentsv2 2025-04-03 11:38:35 +02:00
Andrey Antukh cf55d12991 📚 Add better docstring for srepl.main/notify! helper 2025-04-03 11:21:02 +02:00
Andrey Antukh 78919df886 🐛 Fix incorrect topic sending on internal srepl notify helper 2025-04-03 10:58:10 +02:00
Andrey Antukh e28f8cae74 Merge remote-tracking branch 'origin/staging' into develop 2025-04-02 10:34:31 +02:00
Andrey Antukh 4d4a04e9aa Add minor enhacement for error reporting 2025-04-01 20:43:55 +02:00
Andrey Antukh e6e71e9278 Add minor enhacement for error reporting 2025-04-01 20:24:07 +02:00
Andrey Antukh ff7b77bda7 ⬆️ Update yarn 2025-04-01 20:01:21 +02:00
Andrey Antukh f8ffae75c4 Make feature resolved on team load
That simplifies features retrieval to simple get
2025-04-01 20:01:21 +02:00
Andrey Antukh 3ec797f56e 🐛 Validate and decode params on export-binfile 2025-04-01 19:16:35 +02:00
Andrey Antukh 47f80cf3db 🐛 Make error middleware capture profile-id 2025-04-01 12:30:51 +02:00
Andrey Antukh 076d64df8f Merge remote-tracking branch 'origin/staging' into develop 2025-04-01 11:02:32 +02:00
Eva Marco cbb3f6672f
🐛 Fix asset name on inspect tab (#6173)
Signed-off-by: Eva Marco <eva.marco@kaleidos.net>
2025-03-28 10:38:35 +01:00
Alejandro 2aa756af38
Merge pull request #6175 from penpot/niwinz-develop-binfile-path-fix
🐛 Fix binfile-v3 importation related to bool shape normalization
2025-03-28 09:46:16 +01:00
Andrey Antukh 210e5b0023 🐛 Fix incorrect task result handling
That caused that many task rows in a table not properly marked
as completed and leaved just as scheduled.
2025-03-28 09:10:46 +01:00
Andrey Antukh 651beb4b9c 🐛 Fix binfile-v3 importation related to bool shape normalization 2025-03-28 08:57:47 +01:00
Andrey Antukh 4453eec687 Persist migrated files on srepl process-file helper 2025-03-18 17:57:52 +01:00
Andrey Antukh e4c9b736f7 Merge remote-tracking branch 'origin/staging' into develop 2025-03-14 11:19:47 +01:00
Andrey Antukh 05d6d2fcd4
🐛 Fix several corner cases that causes race conditions on workspace and dashboard loading
* 🐛 Fix several race conditions on workspace and dashboard code

It also fixes a corner case that happens when penpot workspace
is loaded in a background tab on firefox.

* 🐛 Add missing team-id prop to several file returning endpoints
2025-03-14 09:55:41 +01:00
Andrey Antukh b4f6177be7
🐛 Move team srepl helpers back to main from helpers (#5955) 2025-02-25 14:56:58 +01:00
Andrey Antukh b676ea7127 Merge remote-tracking branch 'origin/staging' into develop 2025-02-25 12:56:05 +01:00
Marina López 8f06fa1026
🎉 Add AB test descriptive board tooltip (#5936)
* 🎉 Add AB test descriptive board tooltip

* 📎 Add changes from feedback
2025-02-25 12:50:16 +01:00
Andrey Antukh a549d783ba
Downgrade s3 sdk for compatibility with minio (#5946)
* 📚 Add `⬇️` emoji to the contributing guide

For cases where we need to downgrade dependencies

*  Downgrade S3 SDK version

Mainly for minio and other S3-compatible services
2025-02-25 12:49:33 +01:00
Elena Torró ab7781b4fa
Add dbg panel to enable a team feature flag (#5940)
*  Add dbg panel to enable and disable team feature flags

* 📎 Rename debug to skip-check and do not parse & cast the feature value
2025-02-25 10:09:43 +01:00
Andrey Antukh 6c1e8c3fe8 ⬆️ Update deps (fix compat issues with minio) 2025-02-25 09:39:13 +01:00
Yamila Moreno fac2314d62
🔧 Relax secure cookies requirement when non-https public uri is set (#5939) 2025-02-25 09:10:53 +01:00
Andrey Antukh 1187d64f69 Merge remote-tracking branch 'origin/staging' into develop 2025-02-24 12:49:04 +01:00
Andrey Antukh 3074fc9ab5
♻️ Remove deprecated with-atomic and refactor tx-run! (#5915)
* ♻️ Remove deprecated with-atomic and refactor tx-run!

*  Do not hold open connection for the whole clone-template operation
2025-02-24 11:15:44 +01:00
Andrey Antukh 15d09eb0d4
🐛 Fix incorrect data id assignation on creating a snapshot (#5934)
* 📎 Set proper name to relink-refs mechanism function

* 🐛 Fix incorrect id assignation on snapshot file resolution

* ♻️ Use uniform api for file retrieval on file snapshot code
2025-02-24 11:05:16 +01:00
Andrey Antukh ae718c3328 🐛 Fix incorrect data returned on viewer subapp bundle 2025-02-24 09:03:57 +01:00
Andrey Antukh d2c800fc0f 🐛 Add missing handling of file_change on delete-object task 2025-02-21 14:24:18 +01:00
Andrey Antukh 893f19fa5e Remove automatic cascade on file_change table fk constraint 2025-02-21 14:24:07 +01:00
Andrey Antukh 624750ad16
🐛 Fix incorrect order of execution of internal procs on objects-gc (#5929)
*  Improve efficiency on objects-gc tasks

Replacing db/cursor with db/plan

* 🐛 Use correct order of subprocs on objects-gc

Mainly affects the file deletion

* 📎 Increase chunk-size to 100 on objects-gc
2025-02-21 13:01:20 +01:00
Andrey Antukh 479f39338b
🐛 Don't send invitation email to profiles that explicitly disallow that
* 🐛 Don't send invitation email to profiles that explicitly disallow that

* 📎 Add changes post feedback

* 📎 Fix typo on changelog
2025-02-20 09:20:28 +01:00
Andrey Antukh 60530a80d9 Merge remote-tracking branch 'origin/staging' into develop 2025-02-20 09:15:00 +01:00
Andrey Antukh dd6ae81e83 🐛 Add correct feature handling on dbg binfile import 2025-02-19 22:47:55 +01:00
Andrey Antukh cb8e31e7f8 🐛 Add correct handling of features on clone-template 2025-02-19 22:47:54 +01:00
Andrey Antukh ca9b5b1b8a 📎 Use standard asserts on binfile common ns 2025-02-19 22:47:54 +01:00
Andrey Antukh a391d71b60 🐛 Add correct feature handling on binfile import 2025-02-19 22:47:40 +01:00
Andrey Antukh 7d0c19fcc7 🐛 Add correct feature check on manifest reading
Instead on the file save operation so we can raise
exception if something does not match without processing
the whole file
2025-02-19 22:45:08 +01:00
Andrey Antukh d79fac7729 Merge remote-tracking branch 'origin/staging' into develop 2025-02-19 17:17:54 +01:00
Andrey Antukh 4744085426
🐛 Fix incorrect handling request access with deleted profiles
* 📎 Add minor improvements to team tests

* 🐛 Fix incorrect handling request access with deleted profiles

* 🐛 Fix redirect loop on empty route

Happens when the current profile is deleted from team

* 🐛 Fix urls on request access emails

* 📎 Revert url changes on emails
2025-02-19 11:04:19 +01:00
Andrey Antukh f5c913d26e Merge remote-tracking branch 'origin/staging' into develop 2025-02-18 17:28:38 +01:00
Yamila Moreno 807b8d82e3
🔧 Improve flags documentation (#5863)
* 📎 Fix typo

* 🔧 Enable certain flags by default

* 🔧 Compile all flags in a single source of truth

* 📎 Move all default flags to common

---------

Co-authored-by: Andrey Antukh <niwi@niwi.nz>
2025-02-18 12:36:16 +01:00
Pablo Alba 3268225941
🎉 Add variations POC 2025-02-17 16:47:25 +01:00
Andrey Antukh c41f86f0a4 Merge remote-tracking branch 'origin/staging' into develop 2025-02-17 15:20:33 +01:00
Belén Albeza cad7d75590
🐛 Fix libraries context menu (#5854)
*  Add integration test for Bug #10421

* 🐛 Fix dashboard library item menu

*  Fixup integration test
2025-02-14 14:34:54 +01:00
María Valderrama 59a57d6c3f
Mark all notifications as read from dashboard (#5805)
*  Mark all notifications as read from dashboard

* ♻️ Mark all notifications as read code review

* ♻️ Mark all notifications as read code review II
2025-02-14 11:48:24 +01:00
Andrey Antukh 37855bfe7f Merge remote-tracking branch 'origin/staging' into develop 2025-02-14 10:35:29 +01:00
Andrey Antukh 8b6a9b373d Improve efficiency and logging on process-files! srepl helper 2025-02-14 10:02:34 +01:00
Andrey Antukh 3fd429c72a Merge remote-tracking branch 'origin/staging' into develop 2025-02-13 21:04:52 +01:00
Alejandro f8820695cc
🐛 Fix incorrect numbering files when new team (#5835) 2025-02-13 11:55:59 +01:00
Andrey Antukh cd87cbe44e Merge remote-tracking branch 'origin/staging' into develop 2025-02-11 16:09:32 +01:00
Andrey Antukh a3bc4ff9f3 🐛 Prevent exception when no file is found on process file srepl helper 2025-02-11 15:43:35 +01:00
Andrey Antukh df7dd15705 🐛 Make the absorb library aware that file can be nil 2025-02-11 15:42:55 +01:00
Andrey Antukh 8dbf6adfda 🐛 Pass correct media-ref object on fixing media ref script 2025-02-11 15:42:21 +01:00
Andrey Antukh 35f44a6eb4 🐛 Remove duplicate decoding on srepl helper get-file 2025-02-11 14:44:37 +01:00
Andrey Antukh 895450c9d5 Report restriction errors to logger 2025-02-11 13:52:12 +01:00
Andrey Antukh 36518e0e6e Fix linter issues 2025-02-11 13:52:12 +01:00
Andrey Antukh a3a757f842 Merge remote-tracking branch 'origin/staging' into develop 2025-02-11 11:25:40 +01:00
luisδμ 7fd0ca2243
🐛 Fix allow a comment length of 750 chars and show error text if exceeded (#5810) 2025-02-10 15:03:07 +01:00
Andrey Antukh f65f7d68e6 Merge remote-tracking branch 'origin/staging' into develop 2025-02-10 10:57:04 +01:00
elhombretecla 8a13ce5f91
💄 Change email button styles (#5785) 2025-02-06 14:17:32 +01:00
Andrey Antukh 48acc8715b Merge remote-tracking branch 'origin/staging' into develop 2025-02-04 16:01:14 +01:00
Andrey Antukh b913c75c41 🔥 Remove unused parameters from backend run template script 2025-02-04 15:36:22 +01:00
Andrey Antukh 315b389a66
🐛 Fix name generation and handling on creating objects (files, tokens, ...) (#5745)
*  Update function implementation

*  Add tests for a new function implementation

*  Update function usages according to new signature

*  Update docstrings

*  Use simpler assertion

* 💄 Replace concat with cons on name-seq

* 🐛 Fix incorrect error handling on legacy workspace redirect

---------

Co-authored-by: Andrey Fedorov <oran9e.red@gmail.com>
2025-02-03 12:49:56 +01:00
Andrey Antukh d15f0f1fd0 Improve build process
Remove hardcoded yarn version on devenv
2025-01-31 13:39:49 +01:00
Andrey Antukh f871f88f30
♻️ Refactor file data migrations subsystem (#5692)
* ♻️ Refactor file data migrations subsystem

* 📎 Add backend scripts/run helper script
2025-01-31 13:37:41 +01:00
luisδμ 0bd4a7d0fc
🐛 Fix bugs in comments (#5734)
* 🐛 Fix could not remove or update new comments without closing and reopening the thread

* 🐛 Fix scroll over long comments using the mouse wheel
2025-01-31 11:57:35 +01:00
Alejandro d7477cd448
Merge pull request #5665 from penpot/niwinz-instantiate-component-bug-5
🎉 Add srepl fix function for process media refs on a file
2025-01-31 11:56:22 +01:00
Andrey Antukh f554de8859 Merge remote-tracking branch 'origin/staging' into develop 2025-01-30 14:38:32 +01:00
Andrey Antukh 6fa08fc75e
🐛 Fix issue on importing binfile-v3 with tokens (#5714)
* 🐛 Fix issue on importing binfile-v3 with tokens

* 🐛 Fix thumbnails generation (regression)

* 🐛 Fix thumbnails clearing issues (regression)
2025-01-29 16:52:40 +01:00
Andrey Antukh 47f1ca9627 Change backend defaults for http body 2025-01-29 12:26:30 +01:00
Andrey Antukh 754ba304a7
⬆️ Update dependencies (#5694)
* ⬆️ Update system dependencies on devenv

* ⬆️ Update partially frontend dependencies

* ⬆️ Update application dependencies

* ⬆️ Update storybook dependency
2025-01-29 11:21:38 +01:00
Andrey Antukh 15f7fac8f4 Add more reasonable default fetch size for db/plan
Making it more general purpose and not only for streaming
2025-01-27 12:53:11 +01:00
Andrey Antukh 349552879e 🔥 Remove already broken v2 migration script 2025-01-27 12:53:11 +01:00
Andrey Antukh bfe9a2b545 🎉 Add migration-like script for execute media-refs fix 2025-01-27 12:53:11 +01:00
Andrey Antukh 16934b734b 🎉 Add srepl fix function for process media refs on a file 2025-01-27 12:38:12 +01:00
Andrey Antukh 4c1312d4f6 Only create snapshot if file is modified (on srepl helper) 2025-01-27 12:38:12 +01:00
Andrey Antukh 541ed6282f Normalize file retrieving and persistence on binfile, file-gc and helpers 2025-01-27 12:38:10 +01:00
Andrey Antukh 74bdd72d2f Merge remote-tracking branch 'origin/staging' into develop 2025-01-27 12:12:46 +01:00
Andrey Antukh 471699960f
🐛 Update media references after instantiation of a component (#5652)
🐛 Update media references after instantiation of a component
2025-01-27 11:58:13 +01:00
Andrey Antukh dae7b7cd74 Merge remote-tracking branch 'origin/staging' into develop 2025-01-23 12:53:03 +01:00
Andrey Antukh efd4a11ae2 🐛 Add support for multiple formats on clone-template 2025-01-23 08:09:23 +01:00
Andrey Antukh 83bd479176 Merge remote-tracking branch 'origin/staging' into develop 2025-01-21 18:40:28 +01:00
Andrey Antukh 642efcb47b Merge remote-tracking branch 'origin/staging' into develop 2025-01-20 23:29:54 +01:00
Andrey Antukh da0704081f 📎 Normalize default opts for db/plan function 2025-01-20 23:23:31 +01:00
Andrey Antukh 066b1235a6 🐛 Pass correct default options on db/plan fn 2025-01-20 23:23:31 +01:00
Andrey Antukh 6ef6a50a1c Merge remote-tracking branch 'origin/staging' into develop 2025-01-20 17:34:21 +01:00
Andrey Antukh 151aedcf91 ♻️ Make the components cleaning mechanism on file-gc task more efficient 2025-01-20 16:35:14 +01:00
Andrey Antukh 5513daf17d ♻️ Make the media cleaning mechanism on file-gc task more efficient
Replaces the use of db/cursor with db/plan, that teorethically allows
processing large results without consuming all result set in memory
2025-01-20 16:34:05 +01:00
Andrey Antukh fde0f3c182 🐛 Pass correct default options on db/plan fn 2025-01-20 16:34:05 +01:00
Andrey Antukh 667b5fb6ee 🐛 Fix missing methods reference from api docs page 2025-01-20 12:30:20 +01:00
Andrés Moya 42d2315f37 🎉 Include tokens library in .penpot files 2025-01-17 15:28:10 +01:00
Alejandro Alonso 423c237d42 🐛 Fix reply to comment 2025-01-17 11:57:44 +01:00
Andrey Antukh 85746e7cb2 ♻️ Refactor state locality
The main purpose of this refactor is reduce
a custom state from different pages and unify
them under common access patterns
2025-01-16 15:31:18 +01:00
Andrey Antukh f62aecb383 🐛 Fix incompatibility of binfile exportation with offload feature 2025-01-16 14:37:55 +01:00
Andrey Antukh cb650ebf1c Merge remote-tracking branch 'origin/staging' into develop 2025-01-16 10:45:22 +01:00
Andrey Antukh 40693e6857 🐛 Make the PENPOT_SECRET_KEY optional
Fix a regression introduced with 2.4
2025-01-16 09:59:19 +01:00
Andrey Antukh 5c428b5aa5 🐛 Fix repeated password update on login
because the default options were not being passed in the verification
2025-01-16 09:59:19 +01:00
Andrey Antukh e92ddee33a 🐳 Move devenv secret key env asignation to scripts
from the docker compose
2025-01-16 09:59:19 +01:00
alonso.torres 920638a149 Open comments from email with parameter 2025-01-14 16:28:48 +01:00
Yamila Moreno 780f97216a 📎 fix typo 2025-01-13 13:20:49 +01:00
Andrey Antukh 1e20fd7bb6 Log old id on importing binfile-v3 media entries 2025-01-10 17:08:03 +01:00
Andrey Antukh 54e7551d56 🐛 Backport comments decoding from develop
Mainly for backward compatibility with database
layout on comments tables from develop / v2.5
2025-01-10 12:20:53 +01:00
alonso.torres 6e3f9db744 🐛 Fix problem in firefox comments 2025-01-09 12:10:31 +01:00
Andrey Antukh 8239b9666b 💄 Use correct frontend url on comment related emails 2025-01-09 11:55:53 +01:00
Andrey Antukh 45d5253915 Add better reusability for comment related queries 2025-01-09 11:55:53 +01:00
Andrey Antukh aa583b0707 💄 Remove redundant set conversions 2025-01-09 11:55:53 +01:00
Andrey Antukh 1f4fafe781 💄 Remove neesting with ::db/transaction 2025-01-09 11:55:53 +01:00
Andrey Antukh 27c2db6cde 💄 Replace db/query with db/get 2025-01-09 11:55:53 +01:00
Andrey Antukh 5c63a5c58e 💄 Adapt sql style 2025-01-09 11:55:53 +01:00
alonso.torres b1dda02b47 Add mentions to notifications 2025-01-09 11:55:53 +01:00
Andrey Antukh 8f673885a0 Merge remote-tracking branch 'origin/staging' into develop 2024-12-13 13:47:30 +01:00
Pablo Alba 09c184200d
Merge pull request #5471 from penpot/niwinz-bugfix-5
🐛 Fix unhandled exception on accepting invitation
2024-12-13 12:15:35 +01:00
Andrey Antukh bbe0b22a8b 🐛 Fix unhandled exception on accepting invitation
In an interaction with the audit log; happens when an old invitation
(with created-by as nil) is accepted.
2024-12-13 11:48:37 +01:00
Pablo Alba 24e51eef5b 🐛 Fix viewer role is unable to generate thumbnails on dashboard 2024-12-12 15:15:27 +01:00
Pablo Alba 4958da63e5 🐛 Fix a new user shouldn't see the "What's new" popup 2024-12-12 11:45:58 +01:00
Andrey Antukh 4877d17579 Merge remote-tracking branch 'origin/staging' into develop 2024-12-12 10:56:00 +01:00
Andrey Antukh 97b9a7d31c 🐛 Remove hardcoded limit of 20 on the snapshot list rpc method 2024-12-11 14:13:04 +01:00
Andrey Antukh 7cff0f60a9 Merge remote-tracking branch 'origin/staging' into develop 2024-12-11 12:00:50 +01:00
Andrey Antukh 6f67ecd1e4
Merge pull request #5404 from penpot/eva-fix-border-radius
♻️ Remove Rx and RY from shapes
2024-12-10 12:36:58 +01:00
Andrey Antukh 1bb25bb89d 🔥 Remove file-xlog-gc task
It is no longer necessary because snapshots are managed by the objects-gc task
2024-12-10 12:19:12 +01:00
Eva Marco 73e48b3d81 ♻️ Remove unnecesary RX and RY from shapes 2024-12-10 10:47:55 +01:00
Andrey Antukh bdb777516e Merge remote-tracking branch 'origin/staging' into develop 2024-12-10 10:46:38 +01:00
Andrey Antukh a923d39603 🐛 Fix incorrect teams query on profile deletion
The current approach prevents profile deletion when
there are some extra (soft)deleted teams where the profile
is owner
2024-12-09 10:15:13 +01:00
Andrey Antukh aeb1ac41da 🐛 Prevent upload media objects to deleted files 2024-12-05 12:39:43 +01:00
Andrey Antukh 3e090b126e ♻️ Refactor application routing
Mainly removes an inconsistent use of path params and normalize
all routes to use query params for make it extensible without
breaking urls.
2024-12-03 18:23:41 +01:00
Andrey Antukh b17d7c0289 ♻️ Refactor dashboard bootstrap 2024-12-03 11:55:31 +01:00
Andrey Antukh 65b7e5c3a5 🐛 Fix incorrect thumbnail rendering on dashboard 2024-11-27 10:42:56 +01:00
Alejandro 7a0702650a
Merge pull request #5366 from penpot/niwinz-bugfix-1
🐛 Bugfixes
2024-11-25 11:32:28 +01:00
Andrey Antukh 9b71e04e1c 🐛 Fix exception on user-feedback rpc method
And normalizes configuration parameters
2024-11-25 10:01:36 +01:00
Andrey Antukh 64c8741233 🐛 Make thumbnails independent of current public uri
Mainly always resolve the public uri at frontend, making the
PENPOT_PUBLIC_URI less necessary to be changed. This improves
the experience of on-premise configuration.

Also removes unnecesary calls for thumbnail generation
on components.
2024-11-20 16:43:14 +01:00
Andrey Antukh a18214a1a5 🐛 Preserve frontend-only flags already present on team 2024-11-19 16:39:21 +01:00
Alejandro 5d95d755ad
Merge pull request #5315 from penpot/niwinz-team-access-request-quotes
🎉 Add quote definitions for team access requests
2024-11-19 06:52:04 +01:00
Andrey Antukh 47d28758d7 Clean frontend and backend features on exportation 2024-11-15 15:57:25 +01:00
Andrey Antukh b7573c0b72 Change frontend-only features automatic team assignation rules
The frontend-only features are now ignored from files and from teams
and they do not autoassigns automatically to team and file on file
creation or update operations.
2024-11-15 15:57:25 +01:00
Andrey Antukh 036e335fc4 🎉 Add quote definitions for team access requests 2024-11-15 11:14:30 +01:00
Andrey Antukh 2d1158efa3 🐛 Fix issue with encoding/decoding thumbnails on binfile-v3 format 2024-11-14 11:45:11 +01:00
Andrey Antukh 36914d1dc4 🐛 Relax ldap provider requirements 2024-11-14 09:40:38 +01:00
Andrey Antukh 88fb5e7ab5 ♻️ Update integrant to latest version
This upgrade also includes complete elimination of use spec
from the backend codebase, completing the long running migration
to fully use malli for validation and decoding.
2024-11-13 19:09:19 +01:00
Andrey Antukh 607e0c5c1d Move team invitations and access requests to a separate namespace
This commit also comes with:

- a fix for incorrect conflict handling on team access request creation
- a fix for incorrect handling of file-data when it is offloaded
- replace some inneficient queries with effcient ones
- remove redundant validation on creation of request-access
2024-11-13 14:16:18 +01:00
Andrey Antukh c0f026c332 💄 Add minor cosmetic changes to verify-token ns 2024-11-13 12:37:36 +01:00
Pablo Alba 1c49dd80a4 Add from-invitation property to register-profile event 2024-11-11 17:18:53 +01:00
Pablo Alba cbc92e9f1e Add created-by to invitations, and an event related 2024-11-11 17:00:54 +01:00
Alejandro 0981517bc6
Merge pull request #5263 from penpot/niwinz-bugfix-3
 Prevent logging EOF exceptions on SSE responses
2024-11-08 07:39:04 +01:00
Andrey Antukh 9eaa55b711 Prevent logging EOF exceptions on SSE responses
They are not necessary and they are pretty common, because
the user can interrupt the connection at any time.
2024-11-07 20:50:24 +01:00
Andrey Antukh b27edb4259 🐛 Use proper schema for move-file rpc method 2024-11-06 16:29:11 +01:00
Andrey Antukh e6a9e27802 Merge remote-tracking branch 'origin/staging' into develop 2024-11-05 09:10:14 +01:00
Andrey Antukh 3eb35f0aa6 🐛 Fix incorrect thumbnail lookup on dashboard project view
That causes a repeated generation of thumbnails on each page
view instead of reusing already generated thumbnails.
2024-10-30 16:19:16 +01:00
Andrey Antukh 97a1bf15ef Improve how topic is managed on ws notifications 2024-10-30 13:39:38 +01:00
Andrey Antukh 9409078069 Add usage quotes for snapshots 2024-10-30 13:39:38 +01:00
Andrey Antukh a9d3dfab1a Use schema instead of spec for validate worker submit options 2024-10-30 13:39:38 +01:00
Andrey Antukh 32126d1874 ♻️ Refactor file changes gc tasks
Make it more friendly with the current snapshoting mechanism
2024-10-30 13:39:38 +01:00
Andrey Antukh 5f4af76d28 Add permission checking to file snapshot rpc methods 2024-10-30 13:39:38 +01:00
Pablo Alba 4f5bc77379 Update libraries links to new versions 2024-10-30 13:28:37 +01:00
Pablo Alba b4f868be91 Update libraries links to new versions 2024-10-30 13:25:54 +01:00
alonso.torres ecb7f0a2f6 File history versions management 2024-10-29 14:23:35 +01:00
Andrey Antukh 7c73e44ab8 Add minor improvement on error reporting on shape validation 2024-10-29 11:47:47 +01:00
Andrey Antukh e533762f33 📎 Show version on dbg header 2024-10-29 11:47:45 +01:00
Andrey Antukh f43fc282d3 Increase internal s3 http client limits
Tries to improve performance of accidental spikes/bursts of
requests to s3 service. This is not a final solution to all issues
caused by unexpected burst, is a simple improvement to the current
apprach.
2024-10-29 11:47:06 +01:00
Andrey Antukh 8616e2f25c Use penpot own executor for s3 response completion executor 2024-10-29 11:47:06 +01:00
Andrey Antukh 4299fd28f0 Expose ::wrk/executor as ExecutorService instance
Instead of a plain Executor instance
2024-10-29 11:47:06 +01:00
Andrey Antukh 302ff92b31 🐛 Fix incorrect handling of EOF on s3 upload thread 2024-10-29 11:47:06 +01:00
Andrey Antukh b62cc9c8e9 📎 Update backend scripts/repl with a default config 2024-10-29 11:47:06 +01:00
Andrey Antukh 225c2ca6e6 Add better reporting for s3 storage backend errors 2024-10-29 11:47:06 +01:00
Andrey Antukh e5bdd852ca 🐛 Fix corner case on selection storage backend from settings
Related to how backward compatibility is handled with previous
settings.
2024-10-29 11:47:06 +01:00
Andrey Antukh 591788403a Add safer mechanism for tempfile naming
Using a uuidv8 that has strong guarranties about councurrent
ids generation that a simple random long
2024-10-29 11:47:06 +01:00
Andrey Antukh f1b82e289d 🐛 Add retry mechanism for internal tmp file handling on s3 backend 2024-10-29 11:47:06 +01:00
Andrey Antukh 4cf5dc0791 Add minor improvement on error reporting on shape validation 2024-10-29 11:17:55 +01:00
Andrey Antukh deaf6ef068 📎 Show version on dbg header 2024-10-29 11:17:54 +01:00
Andrey Antukh ba3f84fd6c Increase internal s3 http client limits
Tries to improve performance of accidental spikes/bursts of
requests to s3 service. This is not a final solution to all issues
caused by unexpected burst, is a simple improvement to the current
apprach.
2024-10-29 11:17:01 +01:00
Andrey Antukh f8c7f84c18 Use penpot own executor for s3 response completion executor 2024-10-29 11:17:01 +01:00
Andrey Antukh 7772ac0a85 Expose ::wrk/executor as ExecutorService instance
Instead of a plain Executor instance
2024-10-29 11:17:01 +01:00
Andrey Antukh 9329c2ebd9 🐛 Fix incorrect handling of EOF on s3 upload thread 2024-10-29 11:17:01 +01:00
Andrey Antukh 65f182001b 📎 Update backend scripts/repl with a default config 2024-10-29 11:17:01 +01:00
Andrey Antukh fe83c5faea Add better reporting for s3 storage backend errors 2024-10-29 11:17:01 +01:00
Andrey Antukh 5b860ee601 🐛 Fix corner case on selection storage backend from settings
Related to how backward compatibility is handled with previous
settings.
2024-10-29 11:17:01 +01:00
Andrey Antukh cb9839223e Add safer mechanism for tempfile naming
Using a uuidv8 that has strong guarranties about councurrent
ids generation that a simple random long
2024-10-29 11:17:01 +01:00
Andrey Antukh 15c42fba5e 🐛 Add retry mechanism for internal tmp file handling on s3 backend 2024-10-29 11:17:01 +01:00
Alejandro e7d7291947
Merge pull request #5196 from penpot/niwinz-remove-graaljs
⬆️ Update deps (part 1) and remove graalvm js
2024-10-29 08:48:50 +01:00
Pablo Alba afb5ab7430 Rename welcome file 2024-10-25 12:23:35 +02:00
Andrey Antukh cc6e071f48 ♻️ Remove all usage of graalvm js runtime
And replace it with a commandline call to nodejs
for execute a custom svgo based command line script.
2024-10-22 23:30:56 +02:00
Andrey Antukh f949649ba3 ⬆️ Update backend dependencies 2024-10-22 20:23:38 +02:00
Andrey Antukh b31a6f33a5 ⬆️ Update dependencies on common 2024-10-22 20:23:38 +02:00
Andrey Antukh 51ecbf15a9 ⬆️ Update yetti and http server dependency 2024-10-22 20:23:38 +02:00
Andrey Antukh ac33df2054 🐛 Remove plugin data from binfile v3 export 2024-10-21 12:36:01 +02:00
Andrey Antukh 43b86d403c Remove unused props from binfile-v3 progress report message 2024-10-21 12:36:01 +02:00
Andrey Antukh 8618cb950f 🎉 Add binfile-v3 export/import file format 2024-10-18 17:19:29 +02:00
Andrey Antukh 015fd5bc3a Expose a list of valid buckets on main storage ns 2024-10-18 17:19:29 +02:00
Andrey Antukh 782d733bc9 Improve error response formatting 2024-10-18 17:19:29 +02:00
Andrey Antukh 1aa2c0f9de
Merge pull request #5135 from penpot/palba-eva-viewer-role
  Add viewer role
2024-10-18 10:31:40 +02:00
Pablo Alba bd08e99080 ♻️ Clean up and refactors of viewer role 2024-10-18 10:12:59 +02:00
Andrey Antukh 790f6ce4ed 💄 Add cosmetic changes to get-file rpc method 2024-10-16 17:58:04 +02:00
Andrey Antukh 40d7bb04b4 Reuse permission from rpc/cond middleware for get-file rpc method 2024-10-16 17:58:04 +02:00
Pablo Alba 22d7cfc7fa 🐛 Fix missing permissions on file cache 2024-10-16 17:58:04 +02:00
Andrey Antukh d4c775b1f4 🐛 Fix unexpected rare condition exception on rpc cond middleware 2024-10-16 17:58:00 +02:00
Eva Marco 536c25c206 ♻️ Resolve minor errors on viewer role on dashboard 2024-10-16 10:37:52 +02:00
Eva Marco 043c4105db Add viewer only mode on webhook 2024-10-15 13:38:46 +02:00
Pablo Alba 823792339f Kick out of a team - Visibility of System Status 2024-10-15 13:38:46 +02:00
Pablo Alba 226ab7233b Add viewer role to workspace 2024-10-15 13:38:46 +02:00
Pablo Alba cf150891df Add view mode to dashboard 2024-10-15 13:32:33 +02:00
Andrey Antukh 1fb21d537c 🐛 Send thread-id on create-comment-thread rpc method 2024-10-15 09:29:40 +02:00
Andrey Antukh 23f7889cff 💄 Add cosmetic change to create-temp-file rpc method 2024-10-10 16:04:15 +02:00
Andrey Antukh b7a0b7d629 🐛 Increase feedback limits to reasonable values 2024-10-10 11:27:04 +02:00
Andrey Antukh c4941bb102 🐛 Fix unexpected exception on handling audit log on team invitations
A regression introduced in previous commits of this release
2024-10-10 11:27:04 +02:00
Andrey Antukh b8a606a35f 🐛 Fix incorrect dependency for log-emails and smtp flags 2024-10-10 11:23:04 +02:00
Andrey Antukh ea6731e22b Add EOF handling on sse response helper 2024-10-08 15:30:33 +02:00
Andrey Antukh 002b1679c3 ♻️ Clean assertion and schema chechking API 2024-10-08 15:30:33 +02:00
Andrey Antukh 45f3a67950 Relax transaction requeriments for team invitation creation 2024-10-08 14:51:14 +02:00
Andrey Antukh c6917bb0cf Relax transaction requirements on create-team rpc method 2024-10-08 14:51:14 +02:00
Andrey Antukh f777845d14 Relax transaction requirement on comment thread creation rpc method 2024-10-08 14:51:14 +02:00
Andrey Antukh a1f5bcae80 ♻️ Add better ergonomics for the internal quotes API 2024-10-08 14:51:14 +02:00
Andrey Antukh 3e11b4aa74 Add facility for wrap a rpc method in a db transaction 2024-10-08 14:51:14 +02:00
Alejandro Alonso 476eedbd2c Merge remote-tracking branch 'origin/staging' into develop 2024-10-03 07:19:53 +02:00
Andrey Antukh be30174a49 Add limits for team invitations 2024-10-02 16:05:33 +02:00
Pablo Alba 6c4f216da8 Update emails footer 2024-09-26 09:45:42 +02:00
Alejandro Alonso a1fc785771 Merge remote-tracking branch 'origin/staging' into superalex-merge-conflicts-2 2024-09-23 10:08:06 +02:00
Alejandro Alonso e0034dc205 🐛 Fix onboarding edn urls 2024-09-23 06:30:19 +02:00
Pablo Alba b5121657ee Update templates links to binary v2 2024-09-18 16:23:12 +02:00
Andrey Antukh 61446592b3 Move generative test related code to a separated ns 2024-09-18 12:15:12 +02:00
Andrey Antukh 1bd1782d66 ♻️ Add better reporting for generative tests 2024-09-18 12:15:12 +02:00
alonso.torres f5f255e2d5 🐛 Fix problem with comments max length 2024-09-17 14:18:51 +02:00
alonso.torres 9bca42c14a Fixed plugin registration props 2024-09-16 15:46:02 +02:00
Andrey Antukh 9e94cf7b99 ♻️ Simplify internal implementation of sm/schema namespace 2024-09-13 11:30:55 +02:00
Andrey Antukh b882b9e283 🔥 Remove usage of public usage of sm/define funcion 2024-09-13 11:30:55 +02:00
Andrey Antukh cdcff62232 Store some profile props on browser global storage 2024-09-13 11:30:55 +02:00
Andrey Antukh 0ce981a68c 🐛 Add missing ref-id unsassign on srepl helpers for process file 2024-09-12 21:32:34 +02:00
Andrey Antukh a8814dcaba 🐛 Add missing fields on file-gc libraries fetching sql 2024-09-12 21:07:19 +02:00
Andrey Antukh d03788af93 🐛 Ignore object thumbnail requests if file is already marked as deleted 2024-09-12 15:23:31 +02:00
Alejandro Alonso 017aad6454 🐛 Fix export failed error when exporting multiple shapes 2024-09-12 12:55:32 +02:00
Andrey Antukh e79f9ba40f 🐛 Increase token limit 2024-09-10 12:39:54 +02:00
Andrey Antukh 452aabdec6 🐛 Don't send user props on auth token after oidc login 2024-09-10 12:39:54 +02:00
alonso.torres 03040ed40b 🐛 Fix problem when dismissing shared library update 2024-09-06 11:02:02 +02:00
Pablo Alba 81b7972347 🎉 Test A/B for start in workspace 2024-09-04 17:19:39 +02:00
Andrey Antukh 9da891e9b0 📎 Enable auto-file-snapshot feature scripts/repl 2024-09-04 12:18:31 +02:00
Andrey Antukh a6de12323e ♻️ Refactor file-update for make it more reusable 2024-09-04 12:18:31 +02:00
Alejandro Alonso 52d099c80e Merge remote-tracking branch 'origin/main' into staging 2024-09-04 12:02:04 +02:00
Alejandro 5808bd3743
Merge pull request #5045 from penpot/niwinz-fix-file-gc
🐛 Fix issues on file-gc task
2024-09-04 11:11:13 +02:00
Andrey Antukh d5f5c440dd 🐛 Fix issues with srepl helper for profile deletion in bulk 2024-09-04 11:09:05 +02:00
Alejandro Alonso 729f679c0f Merge remote-tracking branch 'origin/main' into staging 2024-09-04 08:58:51 +02:00
Andrey Antukh 85444f5a47 🐛 Fix incorrect params handling on webhook processing task 2024-09-03 17:19:35 +02:00
Andrey Antukh 50df2279a7 🐛 Make the media cleaning on file-gc task aware of snapshots
It now takes in account the snapshots, and prevents
deletion of media files used in snapshots.
2024-09-03 14:50:17 +02:00
Andrey Antukh 0117a4767d 📎 Rename `file-snapshot` to `auto-file-snapshot` 2024-09-02 11:52:19 +02:00
Andrey Antukh 569674452a Add label and id support for debug snapshot helpers 2024-08-27 15:43:31 +02:00
Andrey Antukh ceaafdbb1c Add offload mechanism for file snapshots 2024-08-26 13:52:42 +02:00
Andrey Antukh 8dea5d5158 ♻️ Make file-xlog-gc task more scalable 2024-08-26 11:15:59 +02:00
Andrey Antukh 215148ca81 Add better fillfactor setting for storage_object and task tables 2024-08-23 15:09:58 +02:00
Andrey Antukh 3026bd8aaf Merge remote-tracking branch 'origin/staging' into develop 2024-08-23 10:59:14 +02:00
Andrey Antukh cacee40d11 🎉 Add proper schema encoding/decoding mechanism
this allows almost all api operations to success usin application/json
encoding with the exception of the update-file, which we need to
approach a bit differently;

the reason update-file is different, is because the operations vector
is right now defined without the context of shape type, so we are just
unable to properly parse the value to correct type using the schema
decoding mechanism
2024-08-21 11:27:36 +02:00
Alejandro Alonso cd51f2f652 Improve disabled registry flows 2024-08-20 08:20:46 +02:00
Pablo Alba b0af94415f 🎉 Test A/B for starting with light theme 2024-08-19 08:20:31 +02:00
Andrey Antukh db52d98595 📎 Update user ns on common and backend 2024-08-16 14:43:06 +02:00
Pablo Alba 6169f5c2e8 🎉 New oops page with login and request access 2024-08-14 15:32:04 +02:00