Commit Graph

249 Commits

Author SHA1 Message Date
sriramveeraghanta
cd6d708e23 fix: share page email template 2025-09-09 18:40:31 +05:30
Surya Prashanth
8529f55d49 [SILO-523] chore: add categories for applications #4155 2025-09-09 18:18:59 +05:30
sriram veeraghanta
7a3b1a2d4e [WIKI-652] feat: share page notification (#4154)
* feat: share page notification

* feat: enhance share page notification functionality and email template

- Added a new function to map page access levels to descriptive strings.
- Updated the share_page_notification task to include workspace name and email preference URL in the context.
- Improved email template formatting for better readability and added a link to manage email preferences.
- Refactored logging to use a dedicated logger instance.

---------

Co-authored-by: pablohashescobar <nikhilschacko@gmail.com>
2025-09-09 18:18:19 +05:30
Bavisetti Narayan
f0c15cb97e [WIKI-649] chore: added restore endpoint for project pages (#4153)
* chore: added restore endpoint for project pages

* chore: removed project ids

* chore: grouped the page ids together

---------

Co-authored-by: sriramveeraghanta <veeraghanta.sriram@gmail.com>
2025-09-09 18:15:01 +05:30
Bavisetti Narayan
acee583e53 [WIKI-630] [WIKI-629] [WIKI-626] chore: organised the page comments folder (#4096)
* chore: organised the page comments folder

* chore: corrected the filter

* fix: parity

* fix: padding and spacing issues

* fix: dev wiki redirection

* fix: cancel icon on top of the reference text

* fix: hover styles and padding in new comment form

* fix: added back animations and better styles

* fix: show latest comment

* fix: comment creation handling fixed

* fix: border and hover states fix

* fix: truncate fixes

* fix: reply controller count values

* fix: scroll after opening reliably

* fix: add comment control

* fix: all other ux issues

* fix: count of showing/hiding

---------

Co-authored-by: Palanikannan M <akashmalinimurugu@gmail.com>
2025-09-09 18:11:04 +05:30
Nikhil
89f6915764 [WEB-4856] feat: add workitem existence check in SubWorkitemTemplateEndpoint (#4142)
* feat: add workitem existence check in SubWorkitemTemplateEndpoint

* fix: update workitem existence check to include project_id in SubWorkitemTemplateEndpoint
2025-09-09 13:54:09 +05:30
sriram veeraghanta
f952e96f8d Sync: Community Changes #4149 2025-09-08 17:19:24 +05:30
Bavisetti Narayan
291101a8e5 chore: added attributes in ol tag (#7736) 2025-09-08 17:17:38 +05:30
Henit Chobisa
e9dca9d1b0 [SILO-517] fix: modified notion importer to use asset endpoint under HMAC to counter rate limits (#4136) 2025-09-08 15:41:41 +05:30
Bavisetti Narayan
a1aaace575 [WEB-4806] chore: updated html attribute validation #4113 2025-09-04 15:59:14 +05:30
sriram veeraghanta
c311f26cd0 Sync: Community Changes #4117 2025-09-04 14:16:16 +05:30
Bavisetti Narayan
36c735bede [WEB-4806] chore: updated html attribute validation #7719 2025-09-04 13:52:43 +05:30
Dheeraj Kumar Ketireddy
cd038017e9 [WEB-4831] chore: add rich_filters field to ee models for enhanced filtering capabilities #4098
* models updated,
  - TeamspaceUserProperty
  - EpicUserProperties
  - InitiativeUserProperty
2025-09-03 20:21:06 +05:30
Bavisetti Narayan
d2a92471e6 Merge branch 'preview' into sync/ce-ee 2025-09-03 20:13:08 +05:30
Bavisetti Narayan
9965fc75a6 [WEB-4806] chore: improved the html validation (#7676)
* chore: improved the html validation

* chore: removed the models changes

* chore: removed extra filters

* chore: changed the protocols
2025-09-03 19:56:20 +05:30
sriramveeraghanta
cd08f75fab fix: django rest framework simple JWT version bump 2025-09-03 19:10:10 +05:30
sriram veeraghanta
e9d01fbb6d Sync: Community Changes #4104 2025-09-03 18:54:43 +05:30
Dheeraj Kumar Ketireddy
cb1e93f83d [WEB-4831] schema: add rich_filters field to multiple models for enhanced filtering capabilities (#7700)
* chore: add rich_filters field to multiple models for enhanced filtering capabilities

* Set the default  value to empty dict
2025-09-03 18:37:56 +05:30
Sangeetha
2e673026d4 [WEB-4129] fix: work item filter assignees missing fields #7698 2025-09-03 18:36:04 +05:30
Nikhil
49a40031a4 [WEB-4795] chore: remove caching decorator from WorkspaceStatesEndpoint #7714 2025-09-03 18:28:11 +05:30
Bavisetti Narayan
f208b45048 [WIKI-605] chore: added page create external endpoint (#3993) 2025-09-03 17:19:09 +05:30
Jayash Tripathy
cdec24495e [WEB-4125] feat: add feature flag for dashboard widgets filters (#4083) 2025-09-03 13:36:59 +05:30
Anmol Singh Bhatia
e0e2e706a3 [WEB-4820] fix: incorrect logging of description activity for work items and epics (#4060)
* fix: description activity log

* fix: description activity log

* chore: code refactor

* chore: code refactor
2025-09-02 18:06:25 +05:30
sriram veeraghanta
5bcf585683 Sync: Community Changes #4074 2025-09-02 14:23:41 +05:30
guru_sainath
2d31b562d8 [WEB-4823] chore: Add compound indexing for notification fields to improve query performance (#7691)
* dev: handled indexing for the notification fields

* dev: removing indexing related to workspaces

* dev: handled indexing for file asset, user favorite, and page log

* dev: indexing concurrently
2025-09-02 14:18:13 +05:30
Jayash Tripathy
9fbb1a42d0 [WEB-4125] [WEB-4824] feat: dashboard widget rich filters (#3881)
* feat: rich filters store architecture and UI components

* improvements: minor enhancements for rich filters
* added button configuration to add filters button
* added option to disable transition for filter item
* fixed filter item label truncation
* added support for changing work item filter config keys

* improvements: add filter button config initialization

* feat: done basic  setup of rich filters in dashboard widgets

* refactor: clean up whitespace in widget type definitions

* feat: implement complex filtering backend for Django REST Framework

* Added ComplexFilterBackend to support advanced JSON-based filtering with logical operators.
* Introduced DashboardWidgetIssueFilterSet for filtering issues based on various criteria.
* Updated widget views to utilize the new filtering capabilities.
* Refactored widget_graph_plot.py to streamline query construction.
* Added README documentation for the filters module detailing usage and examples.

* chore: update filter configurations and clean up

* Enhance ComplexFilterBackend for improved performance and documentation

* Updated WidgetListEndpoint to pass the view instance to the filter method.
* Optimized NOT operations to use subqueries instead of large IN clauses for better performance.
* Removed deprecated range filter validation logic.
* Expanded README documentation to include performance considerations and advanced usage examples for NOT operations.

* Refactor DashboardWidgetIssueFilterSet to use custom filter methods for soft delete exclusion

* Replaced direct field lookups with custom filter methods for assignee, cycle, module, mention, and label IDs to exclude soft deleted records.
* Added new filter methods for label ID and label ID in to enhance filtering capabilities.
* Improved code readability and maintainability by centralizing filtering logic.

* refactor: remove unused export for TAutomationConditionFilterExpression in widget.ts

* fix: types

* chore: added more filters

* refactor: made the TFilterValue typed and add config for boolean

* refactor: made TFilterValue typed and add config for boolean

* Refactor WidgetListEndpoint to streamline issue filtering logic

* Updated the issue filtering process to first retrieve workspace by slug, improving clarity and maintainability.
* Consolidated filtering conditions into a single query for better performance and readability.
* Enhanced the DashboardWidgetIssueFilterSet to utilize the new filtering capabilities for label IDs.

* Enhance ComplexFilterBackend with depth validation and structure checks

* Introduced maximum depth validation for complex filters to prevent excessive nesting.
* Added structure validation to ensure proper JSON format for filter nodes.
* Implemented detailed error handling for various filter scenarios, improving robustness and user feedback.

* Refactor WidgetListEndpoint to improve workspace and dashboard retrieval

* Updated the WidgetListEndpoint to retrieve the workspace by slug before querying the dashboard, enhancing clarity and maintainability.
* Replaced multiple filter conditions with workspace ID for dashboard and widget queries, improving performance and consistency.
* Removed redundant workspace retrieval from the end of the method to streamline the code.

* chore: remove boolean filter value input

* improvements: define value type for filter configs

* chore: add default value type for filter configs

* chore: minor type updates for filter configs

* imrovement: type safety of the operators in rich filters

* refactor: reverted to old types of rich filters

* refactor: reverted to old label of rich filters

* refactor: enhance dashboard widget filters with new adapter and HOC

- Replaced the existing WidgetConfigSidebarFilters with EnhancedWidgetConfigSidebarFilters to support new filter logic.
- Introduced DashboardWidgetFilterAdapter for converting between internal and external filter expressions.
- Updated filter configurations to use the new external filter structure.
- Removed the old filters adapter and adjusted related types for better clarity and maintainability.
- Cleaned up imports and improved code organization in the filters components.

* chore: cleanup

* chore: cleanup

* refactor: update dashboard filters and add observable for filters

* refactor: comment out draft filter configuration in dashboard filters

* ♻️  refactor:  adaptor to have comma separated array values and removed draft filter config

* ♻️ refactor: updated the default value for the empty expression

* ♻️ refactor: value sanitization for empty values

*  feat: enhance sidebar filters with loading state and optimized data fetching

* 🧹 chore: remove duplicate export of work-item-filters from utils index

* 🎨 style: update button variant in sidebar filters from neutral-primary to accent-primary

* 🔧 fix: update dependency in withFilters to include handleSubmit in effect dependencies

* 🔧 fix: update _parseFilterValue to handle SingleOrArray type for filter values

* Removed unnecessary code

* ♻️ refactor: integrate workspace project fetching and improve dashboard filter handling

* 🔧 fix: rename EXTERNAL_OPERATOR_SEPARATOR to EXTERNAL_WIDGET_OPERATOR_SEPARATOR for consistency in filter handling

---------

Co-authored-by: Prateek Shourya <prateekshourya29@gmail.com>
Co-authored-by: Dheeraj Kumar Ketireddy <dheeru0198@gmail.com>
2025-09-02 12:37:15 +05:30
Aaryan Khandelwal
f451a7c2d9 fix: merge conflicts resolved from preview 2025-09-01 22:53:30 +05:30
Bavisetti Narayan
9e11dc9cdc [WIKI-511] feat: inline page comments (#3599)
* feat: page comments

* chore: added node id

* chore: changed reverse relation

* chore: added resolve comment endpoint

* fix: build errors

* fix: basic comment decoration added

* fix: add marks

* fix: operations

* fix: to ditch decorations approach!

* fix: move dev-wiki into apps

* fix: new approach with some more types

* fix: link view container

* fix: editor ee packages updated

* fix: basic threads implementation added

* fix: comments scroll and filtering

* fix scrolling

* chore: added total count for comments

* fix: seperate the comments store

* fix: comments removal

* feat: multi comment on same mark

* fix: mark fixed and styles of comments fixed!

* feat: added better animations

* fix: better styles and animations for comments

* fix: ee seperation

* fix: threads api fix

* fix: new comment store attached

* fix: resolve and delete

* fix: remove framer motion

* fix: add comment ordering

* fix: delete extension

* fix: web

* fix: context aware comments

* fix: new working comment store

* fix: getting changes to web

* fix: ui of comments

* fix: comment mark resolution fixed

* fix: move changes to store

* temp fix: project pages

* fix: comments using lite text editor

* fix: rerendering infinitely

* fix: comment box and reference

* chore: updated the migration file

* fix: move things to ee

* chore: un commented the feature flag logic

* chore: removed an extra line in feature flag

* fix: editor types

* fix: scrolling of thread items

* fix: scrolling of thread items

* fix: type errors

* fix: comment creation

* fix: page comments

* fix: page comments

* fix: remove utils

* fix: added feature flagging

* fix:loading json content

* fix: upload items

* fix: upload items

* fix: ui chanegs

* fix: comment box

* fix: better spacing

* Fix spacing and removing the divs not needed anymore

* fix: comments storing json

* Add comment thread management hooks

* Replace use-new-comment hook with use-scroll-manager

Remove useNewComment hook and related logic. Add useScrollManager hook
for managing scroll behavior in the comments sidebar. Refactor
threads-sidebar to use scroll manager for thread and comment box
navigation. Add cancel button to new comment box.

* Remove hover and click effects for resolved comment marks

* Auto-scroll new comments in sidebar after order sync

Adds highlight and scroll-to behavior for newly created comments.
Sidebar now scrolls to the new thread after comments order updates.

* Add granular page comment permissions and UI checks

Introduce canCurrentUserCommentOnPage permission for pages. Update
comment UI to respect user comment permissions. Refactor comment
creation logic into useNewComment hook. Hide comment/reply UI for users
without permission.

* Refactor comments components and imports for clarity and type safety

* Refactor comments components to use local types and remove unused files

- Move type definitions from shared types file into local components -
Remove unused comment-reactions component and types/index.ts - Update
imports to use local hooks and types - Minor code cleanup and formatting

* Refactor comments feature flag and clean up comments components

- Replace isPageCommentsEnabled with isCommentsEnabled in page stores -
Remove unused types, utils, and reactions components from comments -
Move and rename comments components for consistency - Update editor
flagging to use new comments feature flag logic - Simplify comments
sidebar and thread item structure - Remove redundant exports and props
from comments modules

* Refactor comments extension to use workspace feature flag

- Pass storeType to navigation pane extensions - Check isCommentsEnabled
with workspaceSlug before rendering comments - Update canComment logic
to use canCurrentUserCommentOnPage - Remove console.log and unused code
- Fix types for extension props

* Add canCurrentUserCommentOnPage to TeamspacePage

* Refactor TCommentConfig type and move EditorSideEffects

- Move TCommentConfig to ce/types/editor.ts and ee

* fix: ce sync

* fix: prosemirror-model fixed

* chore: removed the extra migration

* chore: added page comments serializer

* fix: comments

* refactor: comments

* fix: ce/ee seperation

* chore: changed the page serialization

* fix: page comments refactored

* fix: remove ce changes

* fix: restoration for nested pages fixed

* fix: less ce changes

* fix: imports

* fix: better refactoring of page root and editor body

* fix: renaming files

* fix: editor sideeffects

* fix: add comments json field

* fix: page comments types

* fix: lint warnings

* fix: props name change

* fix: props name

* fix: comment mark

* fix: import type

* fix: review changes

* fix: extra checks

* fix: type changes

* fix: remove editor ref current

* fix: renaming

* fix: renaming files

* fix: comments extension revamp

* fix: declaring better types

* fix: better types

* fix: hooks seperated

* fix: edit box

* fix: html validation

* fix: agents md

* fix: naming convention

* fix: update names and service methods

* fix: more fixes

* fix: attributs

* fix: dev wiki sync

---------

Co-authored-by: Palanikannan M <akashmalinimurugu@gmail.com>
Co-authored-by: Aaryan Khandelwal <aaryankhandu123@gmail.com>
2025-09-01 20:56:52 +05:30
sriramveeraghanta
34181fba80 chore: version bump 2025-09-01 19:38:21 +05:30
Bavisetti Narayan
e8dccb6549 [WEB-4817] fix: issue detail endpoint #4059 2025-09-01 16:41:00 +05:30
sriram veeraghanta
e14f0bf65e Sync: Community Changes #4058 2025-09-01 15:15:44 +05:30
Nikhil
e2c0d0f23c [WEB-4813] fix: ensure all identifiers in log transformations are converted to strings (#7682)
* fix: ensure all identifiers in log transformations are converted to strings

* Update apps/api/plane/bgtasks/cleanup_task.py

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>

---------

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
2025-09-01 14:12:34 +05:30
sriramveeraghanta
648b74b5bf fix: merge conflicts 2025-08-29 19:52:07 +05:30
Bavisetti Narayan
ebd517bb7d [WIKI-619] chore: added sort order migration for page model #7673 2025-08-29 19:44:29 +05:30
sriram veeraghanta
2321200ec5 Sync: Community Changes #4043 2025-08-29 19:16:21 +05:30
Henit Chobisa
4042af9f32 feat: added support for expanding updated_by in work item (#7667)
* feat: added support for expanding `updated_by` and `type` in work item

* fix: moved type to dictionary for expansion

* fix: refactored unnecessary fields
2025-08-29 16:41:54 +05:30
Bavisetti Narayan
f07f528a63 chore: removed the html validation (#4040) 2025-08-29 14:41:32 +05:30
sriramveeraghanta
b70629c98e fix: merge conflicts 2025-08-29 14:37:08 +05:30
Nikhil
154dad1bac [WEB-4797] fix: update USE_STORAGE_PROXY handling in S3Storage class to default to False (#4039)
* fix: update USE_STORAGE_PROXY handling in S3Storage class to default to False

* chore: update USE_STORAGE_PROXY comment for clarity in variables.env
2025-08-29 14:28:57 +05:30
Nikhil
489a6e1e94 [WEB-4796] fix: update MongoDB collection check to use 'is not None' for better clarity #7671 2025-08-29 14:25:46 +05:30
Nikhil
a490e8812e [WEB-4742]feat: use api server as proxy for s3 requests in air-gapped environments when env is set (#3960)
* feat: add proxy upload and download endpoints for S3 integration

- Introduced ProxyUploadEndpoint and ProxyDownloadEndpoint to handle file uploads and downloads via S3 with time-based validation.
- Updated asset URLs to include new proxy endpoints.
- Enhanced S3Storage class to support proxy URL generation for uploads and downloads.
- Added configuration option USE_STORAGE_PROXY to toggle proxy usage.

* chore: update USE_STORAGE_PROXY configuration to disable by default

- Changed USE_STORAGE_PROXY environment variable in common settings and deployment files to default to 0.
- Ensured consistency across various deployment configurations for better control over storage proxy usage.

* chore: standardize formatting and update dependencies in compose files

- Added USE_STORAGE_PROXY environment variable to default to 0 in both Coolify and Portainer deployment configurations.
- Improved formatting for better readability across various service definitions in the compose files.
- Ensured consistent indentation and alignment for environment variables and dependencies.

* feat: enhance S3 storage integration with improved policy validation

- Updated ProxyUploadEndpoint and ProxyDownloadEndpoint to utilize new validation methods for upload and download parameters.
- Implemented comprehensive policy validation in S3Storage, including expiration checks, bucket restrictions, and signature verification.
- Changed USE_STORAGE_PROXY environment variable to default to 1 for enabling proxy usage by default.

* fix: simplify error message in ProxyUploadEndpoint

- Updated the error response in ProxyUploadEndpoint to provide a more generic error message for upload failures, enhancing user experience and reducing exposure of internal error details.

* fix: compose file formatting

---------

Co-authored-by: Sriram Veeraghanta <veeraghanta.sriram@gmail.com>
2025-08-29 01:58:05 +05:30
pushya22
bd529bc7f6 Sync: Community Changes #4035 2025-08-28 20:55:39 +05:30
Aaryan Khandelwal
2089fefbb2 fix: merge conflicts resolved from preview 2025-08-28 20:51:52 +05:30
pushya22
60cb0d6c5d promote: mobile runway to preview #4016 2025-08-28 20:40:02 +05:30
Vipin Chaudhary
7a43137620 [WIKI-556] fix : invert tracking logic #7668 2025-08-28 20:37:20 +05:30
Bavisetti Narayan
e144ce8cf2 [WIKI-556] chore: disable tracking of page hover (#7650)
* chore: disable tracking of page hover

* chore: add track check for page feth

* chore: make track check mandatory

* chore: update track format

---------

Co-authored-by: VipinDevelops <vipinchaudhary1809@gmail.com>
2025-08-28 20:02:44 +05:30
guru_sainath
5433b7dade [MOB-1067] feat: Implement catch-up functionality for notifications activity feed (#3958)
* dev: catch-up init

* dev: handled catch up FF, push notification and updated query response

* dev: removed feature flag validation for catch_up

* dev: remove the catch_up FF

* dev: handled the actor details in issue, epic and intake activity and comment queries

* dev: handled the catchup mutations and updated intake id in workitem details

* dev: handled the actor details

* dev: sorted catchups

* dev: handled the push notification catch-up

* dev: converted the count in catch up

* dev: updated the push notification comment validation

* dev: moved the first and last in to sub queries

* dev: removing deleted work items

* dev: optimized the catchup query

* dev: handled the UUID conversion
2025-08-28 19:10:37 +05:30
Aaryan Khandelwal
83bcd9144a [WEB-4776] chore: automation activity (#3975)
* chore: runhistory render logic

* chore: added initiator in automation run

* chore: updated the migration file

* chore: added automation run activity

* chore: updated the automation commit

* chore: run history item updated

* chore: automation activity and change property updates

* chore: added show fails check

* chore: optimised the query params condition

* chore: add the prefetch for activity

* fix: import order

---------

Co-authored-by: NarayanBavisetti <narayan3119@gmail.com>
2025-08-28 19:03:27 +05:30
sriram veeraghanta
fe9aa38453 Merge branch 'preview' into sync/ce-ee 2025-08-28 18:52:31 +05:30
Vamsi Krishna
3b3bd3e54e [WEB-4722] fix: fixed draft state update #7663 2025-08-28 18:38:30 +05:30