* feat: added tab index support to navigate using Tab key in all the editors
* chore: changed the name of Table of Contents in Pages
* chore: file formatting
---------
Co-authored-by: sriram veeraghanta <veeraghanta.sriram@gmail.com>
* fix: horizontal rule no more causes issues on last node
* fixed the mismatched transaction by using native tiptap stuff
* added support to add new line onclick at bottom if last node is an image
TODO: blockquote at last node
* fix: simplified adding node at end of the document logic
* feat: rewrite entire logic handling all cases
* feat: arrow down and arrow up keys add empty node at top and bottom of doc from first/last row's cells
* feat: added arrow up and down key support to images too
* remove unnecessary console logs
* chore: formatting components
* fix: reduced bottom padding to increase onclick area
---------
Co-authored-by: sriram veeraghanta <veeraghanta.sriram@gmail.com>
* fix: z index issues with modals and on hover color in table item picker menu
* feat: added text indicators inside the table colors to give a gist of how text would look
* feat: implemented cycle and module for display filters groupBy and sunGroupBy in project issues list and kanban layouts
* chore: Enabled drag ability for cycle and handled prepopulated data for quick add
* chore: disbaled drag ability for cycle
* chore: updated preloaded data
* chore: updated module and cycle store router dependancy to prop dependancy
* dev: add is_subscriber to issue details endpoint
* dev: remove is_subscribed annotation from detail serializers
* dev: update issue details endpoint
* dev: inbox issue create
* dev: issue detail serializer
* dev: optimize and add extra fields for issue details
* dev: remove data from issue updates
* dev: add fields for issue link and attachment
* remove expecting a issue response while updating and deleting an issue
* change link, attachment and reaction types and modify store to recieve their data from within the issue detail API call
* make changes for subscription store to recieve data from issue detail API call
* dev: add issue reaction id
* add query prarms for archived issue
---------
Co-authored-by: rahulramesha <rahulramesham@gmail.com>
* chore: implemented the modules and cycle filter in the display properties
* typo: added placeholders for module and cycle select in spreadsheet view
* feat: created workspace modules and cycles endpoints in appi server and implemented in application
* ui: UI changes in the spreadsheet module and cycle dropdown and added cursor navigation for cycle via arrow keys
* format: formatted api sever
* chore: module select logic updated
* chore: updated module updated handler in all-properties and spreadsheet column
* chore: updated url names for workspace modules and cycles
* fix: validated members availability in the modules list member tooltip
---------
Co-authored-by: Anmol Singh Bhatia <anmolsinghbhatia@plane.so>
* fix: updated description init loading and added loading confirmation alert in inbox issues, issue peek overview, and issue detail
* fix: updated the space issue in the editor and removed unwanted props in the description-input for issues
* Virtualization like core changes with intersection observer
* Virtualization like changes for spreadsheet
* Virtualization like changes for list
* Virtualization like changes for kanban
* add logic to render all the issues at once
* revert back the changes for list to follow the old pattern of grouping
* fix column shadow in spreadsheet for rendering rows
* fix constant draggable height while dragging and rendering blocks in kanban
* fix height glitch while rendered rows adjust to default height
* remove loading animation for issue layouts
* reduce requestIdleCallback timer to 300ms
* remove logic for index tarcking to force render as the same effect seems to be achieved by removing requestIdleCallback
* Fix Kanban droppable height
* fix spreadsheet sub issue loading
* force change in reference to re render the render if visible component when the order of list changes
* add comments and minor changes
* enable keyboard navigation for spreadsheet layout
* move the logic to table level instead of cell level
* fix perf issue that made it unusable
* fix scroll issue with navigation
* fix build errors
* chore: cycle and module store update action updated
* chore: cycle and module issue store actions updated
* chore: cycle and module retrieve endpoints updated
* fix: app sidebar z index and priority icon fix
* chore: cycle and module sidebar and stats updated
* style: peek overview and issue details properties
* fix: cycle and module remove function
* style: update placeholder text color
* fix: relation constant
* chore: added todos to fix later
* fix: issue embed going to next line when selected on slash commands
* fix: issue suggestions selecting next embed on arrow down
* fix: pages crashing, because of incorrect data type
* chore: removed issue embeds from document editor and page interface
* fix: upgraded issue widget card to show only Placeholder
* fix: pricing url changes for issue embed placeholder
* fix: build errors
* fix: inline codes now exitable with right arrow key and inclusive
* regression: toggle inline code on bubble menu selection
* feat: added different code block behaviour on selection and not selection
* fix: blockquote toggling and isActive state fixed
* add concurrency to dev command to avaoid erroring out
* add context to issue activity
* minor quality of life improvement for exporter modal
* show the option to save draft issue only when there is content in name and description
* maintain commonality while referencing the user in activity
* fix minor changes in draft save issue modal logical condition
* minor change is state component for filter selection
* change logic for create issue activity
* change use last draft issue button to state control over previous on hover as that was inconsistent
* chore: dropdowns should close on selecting an option
* style: @plane/ui dropdown styling
* refactor: @plane/ui dropdowns
* fix: build errors
* fix: list layout dropdowns positioning
* fix: priority dropdown text in dark mode
- Removed unused `switchLinkView` function in `PageRenderer`
- Added `hideDragHandle` prop to `PageRenderer` component
- Updated `EditorContainer` component in `PageRenderer` to include `hideDragHandle` prop
- Removed unused code and variables in `DocumentEditor` component
- Added `hideDragHandleOnMouseLeave` state variable in `DocumentEditor` component
- Added `setHideDragHandleFunction` to set the hideDragHandle function from the DragAndDrop extension
- Passed `hideDragHandleOnMouseLeave` as prop to `PageRenderer` component in `DocumentEditor`
- Removed unused code and variables in `PageDetailsPage` component
- Updated `customClassName` prop in `PageRenderer` component used in `PageDetailsPage`
chore(deps): Update dependencies
- Updated `@tippyjs/react` dependency to version 4.2.6
- Updated `mobx-react-lite` dependency to version 4.0.5
- Updated `tippy.js` dependency to version 6.3.7
Co-authored-by: sriram veeraghanta <veeraghanta.sriram@gmail.com>
* dev: workspace states and estimates
* refactor issue dropdown logic to help work properly with issues on global level
* fix: project labels response change
* fix label type
* change store computed actions to computed functions from mobx-utils
* fix: state response change
* chore: project and workspace state change
* fix state and label types
* chore: state and label serializer change
* modify state and label types
* fix dropdown reset on project id change
* fix label sort order
---------
Co-authored-by: pablohashescobar <nikhilschacko@gmail.com>
Co-authored-by: Rahul R <rahulr@Rahuls-MacBook-Pro.local>
Co-authored-by: NarayanBavisetti <narayan3119@gmail.com>
Co-authored-by: Rahul R <rahul.ramesha@plane.so>
* fix: created dashboard, widgets and dashboard widget model
* fix: new user home dashboard
* chore: recent projects list
* chore: recent collaborators
* chore: priority order change
* chore: payload changes
* chore: collaborator's active issue count
* chore: all dashboard widgets added with services and typs
* chore: centered metric for pie chart
* chore: widget filters
* chore: created issue filter
* fix: created and assigned issues payload change
* chore: created issue payload change
* fix: date filter change
* chore: implement filters
* fix: added expansion fields
* fix: changed issue structure with relation
* chore: new issues response
* fix: project member fix
* chore: updated issue_relation structure
* chore: code cleanup
* chore: update issues response and added empty states
* fix: button text wrap
* chore: update empty state messages
* fix: filters
* chore: update dark mode empty states
* build-error: Type check in the issue relation service
* fix: issues redirection
* fix: project empty state
* chore: project member active check
* chore: project member check in state and priority
* chore: remove console logs and replace harcoded values with constants
* fix: code refactoring
* fix: key name changed
* refactor: mapping through similar components using an array
* fix: build errors
---------
Co-authored-by: Aaryan Khandelwal <aaryankhandu123@gmail.com>
Co-authored-by: gurusainath <gurusainath007@gmail.com>
This fix adds support for hiding the drag handle when the cursor leaves the editor container. It improves the user experience by providing a cleaner interface and removing unnecessary visual elements especially while scrolling.
- Add `hideDragHandle` prop to `EditorContainer` component in `editor-container.tsx`.
- Implement `onMouseLeave` event handler in `EditorContainer` to invoke `hideDragHandle` function.
- Update `DragAndDrop` extension in `drag-drop.tsx` to accept a `setHideDragHandle` function as an optional parameter.
- Pass the `setHideDragHandle` function from `RichTextEditor` component to `DragAndDrop` extension in `RichTextEditorExtensions` function in `index.tsx`.
- Set `hideDragHandleOnMouseLeave` state in `RichTextEditor` component to store the `hideDragHandlerFromDragDrop` function.
- Create `setHideDragHandleFunction` callback function in `RichTextEditor` to update the `hideDragHandleOnMouseLeave` state.
- Pass `hideDragHandleOnMouseLeave` as `hideDragHandle` prop to `EditorContainer` component in `RichTextEditor`.
* fix: removed backticks in inline code blocks
* added better error handling while cancelling uploads
* fix: inline code blocks, code blocks and links have saner behaviour
- Inline code blocks are now exitable, don't have backticks, have better padding vertically and better regex matching
- Code blocks on the top and bottom of the document are now exitable via Up and Down Arrow keys
- Links are now exitable while being autolinkable via a custom re-write of the tiptap-link-extension
* fix: more robust link checking
* refcator spreadsheet to use table and roow based approach rather than column based
* update spreadsheet and optimized layout
* fix issues in spread sheet
* close quick action menu on click
---------
Co-authored-by: Rahul R <rahulr@Rahuls-MacBook-Pro.local>
* fix: handled undefined issue_id in list layout
* dev: issue detail store and optimization
* dev: issue filter and list operations
* fix: typo on labels update
* dev: Handled all issues in the list layout in project issues
* dev: handled kanban and auick add issue in swimlanes
* chore: fixed peekoverview in kanban
* chore: fixed peekoverview in calendar
* chore: fixed peekoverview in gantt
* chore: updated quick add in the gantt chart
* chore: handled issue detail properties and resolved build issues
---------
Co-authored-by: pablohashescobar <nikhilschacko@gmail.com>
* refactor: updated preloaded function for the list view quick add
* fix: resolved bug in the assignee dropdown
* chore: issue sidebar link improvement
* fix: resolved subscription store bug
* chore: updated preloaded function for the kanban layout quick add
* chore: resolved issues in the list filters and component
* chore: filter store updated
* fix: issue serializer changed
* chore: quick add preload function updated
* fix: build error
* fix: serializer changed
* fix: minor request change
* chore: resolved build issues and updated the prepopulated data in the quick add issue.
* fix: build fix and code refactor
* fix: spreadsheet layout quick add fix
* fix: issue peek overview link section updated
* fix: cycle status bug fix
* fix: serializer changes
* fix: assignee and labels listing
* chore: issue modal parent_id default value updated
* fix: cycle and module issue serializer change
* fix: cycle list serializer changed
* chore: prepopulated validation in both list and kanban for quick add and group header add issues
* chore: group header validation added
* fix: issue response payload change
* dev: make cycle and module issue create response simillar
* chore: custom control link component added
* dev: make issue create and update response simillar to list and retrieve
* fix: build error
* chore: control link component improvement
* chore: globalise issue peek overview
* chore: control link component improvement
* chore: made changes and optimised the issue peek overview root
* build-error: resolved build erros for issueId dependancy from issue detail store
* chore: peek overview link fix
* dev: update state nullable rule
---------
Co-authored-by: gurusainath <gurusainath007@gmail.com>
Co-authored-by: NarayanBavisetti <narayan3119@gmail.com>
Co-authored-by: pablohashescobar <nikhilschacko@gmail.com>
error of table not being defined while getting getBoundingClientRect()
and solve other TS issues
- Added ResolvedPos import from @tiptap/pm/model
- Updated setCellsBackgroundColor function parameter type to string
- Declared ToolboxItem type for toolbox items
- Modified columnsToolboxItems and rowsToolboxItems to use the ToolboxItem type
- Updated createToolbox function parameters to specify Element or null for triggerButton and ToolboxItem[] for items
- Added ts-expect-error comment above the toolbox variable declaration
- Updated update method parameter type to readonly Decoration[]
- Changed destructuring assignment of hoveredTable and hoveredCell in updateControls method to use Object.values and reduce method
- Added null check for this.table in updateControls method
- Wrapped the code that updates columnsControl and rowsControl with null checks for each control
- Replaced ts-ignore comments with proper dispatch calls in selectColumn and selectRow methods
Co-authored-by: sriram veeraghanta <veeraghanta.sriram@gmail.com>
* query params from router as computed
* chore: setup workspace store and sub-stores
* chore: update router query store
* chore: update store types
* fix: pages store changes
* change observables and retain object reference
* fix build errors
* chore: changed the structure of workspace, project, cycle, module and pages
* fix: pages fixes
* fix: merge conflicts resolved
* chore: fixed workspace list
* chore: update workspace store accroding to the new response
* fix: adding page details to store
* fix: adding new contexts and providers
* dev: issues store and filters in new store
* dev: optimised the issue fetching in issue base store
* chore: project views id mapped
* update lodash set to directly run inside runInaction since it mutates the object
* fix: context changes
* code refactor kanban for better mainatinability
* optimize Kanban for performance
* chore: implemented hooks for all the created stores
* chore: removed bridge id
* css change and refactor
* chore: update cycle store structure
* chore: implement the new label root store
* chore: removed object structure
* chore: implement project view hook
* Kanban new store implementation for project issues
* fix project root for kanban
* feat: workspace and project members endpoint (#3092)
* fix: merge conflicts resolved
* issue properties optimization
* chore: user stores
* chore: create new store context and update hooks
* chore: setup inbox store and implement router store
* chore: initialize and implement project estimate store
* chore: initialize global view store
* kanban and list view optimization
* chore: use new cycle and module store. (#3172)
* chore: use new cycle and module store.
* chore: minor improvements.
* Revert "chore: merge develop"
This reverts commit 9d2e0e29e7, reversing
changes made to 9595493c42.
* chore: implement useGlobalView hook
* refactor: projects & inbox store instances (#3179)
* refactor: projects & inbox store instances
* fix: formatting
* fix: action usage
* chore: implement useProjectState hook. (#3185)
* dev: issue, cycle store optimiation
* fix build for code
* dev: removed dummy variables
* dev: issue store
* fix: adding todos
* chore: removing legacy store
* dev: issues store types and typos
* chore: cycle module user properties
* fix legacy store deletion issues
* chore: change POST to PATCH
* fix issues rendering for project root
* chore: removed workspace details in workpsaceinvite
* chore: created models for display properties
* chore: setup member store and implement it everywhere
* refactor: module store (#3202)
* refactor: cycle store (#3192)
* refator: cycle store
* some more improvements.
* chore: implement useLabel hook. (#3190)
* refactor: inbox & project related stores. (#3193)
* refactor: inbox -> filter, issues, inoxes & project -> publish, projects store
* refactor: workspace-project-id name
* fix kanban dropdown overlapping issue
* fix kanban layout minor re rendering
* chore: implement useMember store everywhere
* chore: create and implement editor mention store
* chore: removed the issue view user property
* chore: created at id changed
* dev: segway intgegration (#3132)
* feat: implemented rabbitmq
* dev: initialize segway with queue setup
* dev: import refactors
* dev: create communication with the segway server
* dev: create new workers
* dev: create celery node queue for consuming messages from django
* dev: node to celery connection
* dev: setup segway and django connection
* dev: refactor the structure and add database integration to the app
* dev: add external id and source added
---------
Co-authored-by: NarayanBavisetti <narayan3119@gmail.com>
* dev: github importer (#3205)
* dev: initiate github import
* dev: github importer all issues import
* dev: github comments and links for the imported issues
* dev: update controller to use logger and spread the resultData in getAllEntities
* dev: removed console log
* dev: update code structure and sync functions
* dev: updated retry logic when exception
* dev: add imported data as well
* dev: update logger and repo fetch
* dev: update jira integration to new structure
* dev: update migrations
* dev: update the reason field
* chore: workspace object id removed
* chore: view's creation fixed
* refactor: mobx store improvements. (#3213)
* fix: state and label errors
* chore: remove legacy code
* fix: branch build fix (#3214)
* branch build fix for release-* in case of space,backend,proxy
* fixes
* chore: update store names and types
* fix - file size limit not work on plane.settings.production (#3160)
* fix - file size limit not work on plane.settings.production
* fix - file size limit not work on plane.settings.production
* fix - file size limit not work on plane.settings.production, move to common.py
---------
Co-authored-by: luanduongtel4vn <hoangluan@tel4vn.com>
Co-authored-by: sriram veeraghanta <veeraghanta.sriram@gmail.com>
* style: instance admin email settings ui & ux update. (#3186)
* refactor: use-user-auth hook (#3215)
* refactor: use-user-auth hook
* fix: user store currentUserLoader
* refactor: project-view & application related stores (#3207)
* refactor: project-view & application related stores
* rename: projectViews -> projectViewIds
* fix: project-view favourite state in store
* chore: remove unnecessary hooks and contexts (#3217)
* chore: update issue assignee property component
* chore: bug fixes & improvement (#3218)
* chore: draft issue validation added to prevent saving empty or whitespace title
* chore: resolve scrolling issue in page empty state
* chore: kanban layout quick add issue improvement
* fix: bugs & improvements (#3189)
* fix: workspace invitation modal form values reset
* fix: profile sidebar avatar letter
* [refactor] Editor code refactoring (#3194)
* removed relative imports from editor core
* Update issue widget file paths and imports to use kebab case instead of camel case, to align with coding conventions and improve consistency.
* Update Tiptap core and extensions versions to 2.1.13 and Tiptap React version to 2.1.13. Update Tiptap table imports to use the new location in package @tiptap/pm/tables. Update AlertLabel component to use the new type definition for LucideIcon.
* updated lock file
* removed default exports from editor/core
* fixed injecting css into the core package itself
* seperated css code to have single source of origin wrt to the package
* removed default imports from document editor
* all instances using index as key while mapping fixed
* Update Lite Text Editor package.json to remove @plane/editor-types as a dependency.
Update Lite Text Editor index.ts to update the import of IMentionSuggestion and IMentionHighlight from @plane/editor-types to @plane/editor-core.
Update Lite Text Editor ui/index.tsx to update the import of UploadImage, DeleteImage, IMentionSuggestion, and RestoreImage from @plane/editor-types to @plane/editor-core.
Update Lite Text Editor ui/menus/fixed-menu/index.tsx to update the import of UploadImage from @plane/editor-types to @plane/editor-core.
Update turbo.json to remove @plane/editor-types#build as a dependency for @plane/lite-text-editor#build, @plane/rich-text-editor#build, and @plane/document-editor#build.
* Remove deprecated import and adjust tippy.js usage in the slash-commands.tsx file of the editor extensions package.
* Update dependencies in `rich-text-editor/package.json`, remove `@plane/editor-types` and add `@plane/editor-core` in `rich-text-editor/src/index.ts`, and update imports in `rich-text-editor/src/ui/extensions/index.tsx` and `rich-text-editor/src/ui/index.tsx` to use `@plane/editor-core` instead of `@plane/editor-types`.
* Update package.json dependencies and add new types for image deletion, upload, restore, mention highlight, mention suggestion, and slash command item.
* Update import statements in various files to use the new package "@plane/editor-core" instead of "@plane/editor-types".
* fixed document editor to follow conventions
* Refactor imports in the Rich Text Editor package to use relative paths instead of absolute paths.
- Updated imports in `index.ts`, `ui/index.tsx`, and `ui/menus/bubble-menu/index.tsx` to use relative paths.
- Updated `tsconfig.json` to include the `baseUrl` compiler option and adjust the `include` and `exclude` paths.
* Refactor Lite Text Editor code to use relative import paths instead of absolute import paths.
* Added LucideIconType to the exports in index.ts for use in other files.
Created a new file lucide-icon.ts which contains the type LucideIconType.
Updated the icon type in HeadingOneItem in menu-items/index.tsx to use LucideIconType.
Updated the Icon type in AlertLabel in alert-label.tsx to use LucideIconType.
Updated the Icon type in VerticalDropdownItemProps in vertical-dropdown-menu.tsx to use LucideIconType.
Updated the Icon type in BubbleMenuItem in fixed-menu/index.tsx to use LucideIconType.
Deleted the file tooltip.tsx since it is no longer used.
Updated the Icon type in BubbleMenuItem in bubble-menu/index.tsx to use LucideIconType.
* ♻️ refactor: simplify rendering logic in slash-commands.tsx
The rendering logic in the file "slash-commands.tsx" has been simplified. Previously, the code used inline positioning for the popup, but it has now been removed. Instead of appending the popup to the document body, it is now appended to the element with the ID "tiptap-container". The "flip" option has also been removed. These changes have improved the readability and maintainability of the code.
* fixed build errors caused due to core's internal imports
* regression: fixed pages not saving issue and not duplicating with proper content issue
* build: Update @tiptap dependencies
Updated the @tiptap dependencies in the package.json files of `document-editor`, `extensions`, and `rich-text-editor` packages to version 2.1.13.
* 🚑 fix: Correct appendTo selector in slash-commands.tsx
Update the `appendTo` function call in `slash-commands.tsx` to use the correct selector `#editor-container` instead of `#tiptap-container`. This ensures that the component is appended to the appropriate container in the editor extension.
Note: The commit message assumes that the change is a fix for an issue or error. If it's not a fix, please provide more context so that an appropriate commit type can be determined.
* style: email placeholder changed across the platform (#3206)
* style: email placeholder changed across the platform
* fix: placeholder text
* dev: updated new filter endpoints and restructured issue and issue filters store
* implement issues and replace useMobxStore
* remove all store legacy references
* dev: updated the orderby and subgroupby filters data
* dev:added projectId in issue filters for consistency
* fix more build errors
* dev: updated profile issues
* dev: removed store legacy
* dev: active cycle issues in the cycle issue store
* fix additional build errors and memoize issueActions in each layout component
* change store enums
* remove all useMobxStore references
* fix more build errors
* dev: reverted workspace invitation
* fix: build errors and warnings
* fix: optimistic update for instant operations (#3221)
* fix: update functions failed case
* fix: typo
* chore: revert back to optimistic update approach for all `update related actions` (#3219)
* fix: merge conflicts resolved
* chore: update memberMap logic in components
* add assignees to kanban groups and properties
* dev: migration fixes
* final bit of optimization on list view
* change all TODOs that are to be done before this release to FIXME
* change base Kanban TODOs that are to be done before this release to FIXME
* dev: add fields and expand for app serializers
* dev: issue detail store
* dev: update issue serializer to return object ids
* fix: Instance key added in settings and converted issues list api to arry instead of dict
* fix: removing segway files
* dev: control expand through query parameters
* revert: github importer
* Revert "dev: segway intgegration (#3132)"
This reverts commit 1cc18a0915.
* dev: remove migrations for segway
* dev: issue structure change and created workspacebasemodel
* dev: issue detail serializer
* fix: changed workspace dict
* dev: updated new issue structure
* chore: build fix
* dev: issue detail store refactor
* dev: created list endpoint for issue-relation
* dev: added issue attachments in issue detail store
* dev: added issue activity computed
* fix: build error
* chore: peek overview modal context added
* chore: build error fix
* dev: added sub_issues in issue details store
* dev: added complete issue serializer for sub issues
* dev: resolved type errors in issue root store
* dev: changed the issue relation structure
* chore: new global dropdowns
* chore: build error fix
* chore: cycle and module selection if disabled
* dev: removed unnecessary code from the workspace root
* chore: build error fix
* chore: issue relation remove endpoint
* fix: build error
* dev: typos and implemented issue relation store
* fix: yarn lock updated
* style: update the UI of all the dropdowns
* fix: state store fixes
* fix: key issue
* fix: state store console logs removed
* refactor: member dropdowns
* fix: moving types to packages
* fix: dropdown arrow positioning
* dev: removed logs
* style: label dropdown
* chore: restrict description notifications
* chore: description changes
* chore: update spreadsheet layout dropdowns
* fix: build errors
* chore: duplicate key change
* fix: ui bugs
* chore: relation activity change
* chore: comment activity changes
* chore: blocking issue removal
* chore: added project_id for relation
* chore: issue relation store and component
* chore: issue redirection issue in the issue realtion in detail page
* chore: created activity changed
* chore: issue links new store implementation on the issue detail
* chore: issue relation deletion acitivity changed
* chore: issue attachments new store implementation on the issue detail
* chore: workspace level issues
* fix: build errors
---------
Co-authored-by: rahulramesha <rahulramesham@gmail.com>
Co-authored-by: gurusainath <gurusainath007@gmail.com>
Co-authored-by: sriram veeraghanta <veeraghanta.sriram@gmail.com>
Co-authored-by: NarayanBavisetti <narayan3119@gmail.com>
Co-authored-by: Bavisetti Narayan <72156168+NarayanBavisetti@users.noreply.github.com>
Co-authored-by: Prateek Shourya <prateekshourya29@gmail.com>
Co-authored-by: Lakhan Baheti <94619783+1akhanBaheti@users.noreply.github.com>
Co-authored-by: Nikhil <118773738+pablohashescobar@users.noreply.github.com>
Co-authored-by: Manish Gupta <59428681+mguptahub@users.noreply.github.com>
Co-authored-by: Hoang Luan <luandnh98@gmail.com>
Co-authored-by: luanduongtel4vn <hoangluan@tel4vn.com>
Co-authored-by: Anmol Singh Bhatia <121005188+anmolsinghbhatia@users.noreply.github.com>
Co-authored-by: M. Palanikannan <73993394+Palanikannan1437@users.noreply.github.com>
Co-authored-by: pablohashescobar <nikhilschacko@gmail.com>
Co-authored-by: Anmol Singh Bhatia <anmolsinghbhatia@plane.so>
* 🔧 chore: Update revalidate option and add useEffect hook in PageDetailsPage component
- Set the `revalidate` option to `false` in the `commonSwrOptions` object.
- Add an `useEffect` hook that calls the `mutatePageDetails` function with specific options.
- Inside the `useEffect` hook, set `revalidate` to `true`, `populateCache` to `true`, and define a rollback function for error handling.
- If an error occurs during the rollback, display an error alert message using the `actionCompleteAlert` function.
- In the `updatePage` function, ensure that `workspaceSlug`, `projectId`, and `pageId` are all defined before proceeding.
* ♻️ refactor: Update code styling for inline code in CoreEditorExtensions
In the `packages/editor/core/src/ui/extensions/index.tsx` file, the code for inline code styling in the CoreEditorExtensions component has been updated. Previously, it was set to `false`, but now it is defined as an object with specific HTML attributes. The code styling includes a rounded-md background, custom primary color, margin, padding, font styling, and disabling spellcheck. This change improves the visual appearance and readability of inline code elements in the editor.
* Fix position bug in the UploadImagesPlugin widget decoration and adjust transaction to correctly insert image node and set meta data for image removal.
* Update CSS styles in editor.css to remove margin top and bottom on images and img placeholders and adjust the margin on the table in the editor container.
* Better typescript support for images extension.
Update the `Command` extension in `slash-commands.tsx` to include a `SlashCommandOptions` type for better TS support and allow spaces in the suggestion options and modify the `image` suggestion's search terms to include "img" in addition to "photo", "picture", and "media".
* removed relative imports from editor core
* Update issue widget file paths and imports to use kebab case instead of camel case, to align with coding conventions and improve consistency.
* Update Tiptap core and extensions versions to 2.1.13 and Tiptap React version to 2.1.13. Update Tiptap table imports to use the new location in package @tiptap/pm/tables. Update AlertLabel component to use the new type definition for LucideIcon.
* updated lock file
* removed default exports from editor/core
* fixed injecting css into the core package itself
* seperated css code to have single source of origin wrt to the package
* removed default imports from document editor
* all instances using index as key while mapping fixed
* Update Lite Text Editor package.json to remove @plane/editor-types as a dependency.
Update Lite Text Editor index.ts to update the import of IMentionSuggestion and IMentionHighlight from @plane/editor-types to @plane/editor-core.
Update Lite Text Editor ui/index.tsx to update the import of UploadImage, DeleteImage, IMentionSuggestion, and RestoreImage from @plane/editor-types to @plane/editor-core.
Update Lite Text Editor ui/menus/fixed-menu/index.tsx to update the import of UploadImage from @plane/editor-types to @plane/editor-core.
Update turbo.json to remove @plane/editor-types#build as a dependency for @plane/lite-text-editor#build, @plane/rich-text-editor#build, and @plane/document-editor#build.
* Remove deprecated import and adjust tippy.js usage in the slash-commands.tsx file of the editor extensions package.
* Update dependencies in `rich-text-editor/package.json`, remove `@plane/editor-types` and add `@plane/editor-core` in `rich-text-editor/src/index.ts`, and update imports in `rich-text-editor/src/ui/extensions/index.tsx` and `rich-text-editor/src/ui/index.tsx` to use `@plane/editor-core` instead of `@plane/editor-types`.
* Update package.json dependencies and add new types for image deletion, upload, restore, mention highlight, mention suggestion, and slash command item.
* Update import statements in various files to use the new package "@plane/editor-core" instead of "@plane/editor-types".
* fixed document editor to follow conventions
* Refactor imports in the Rich Text Editor package to use relative paths instead of absolute paths.
- Updated imports in `index.ts`, `ui/index.tsx`, and `ui/menus/bubble-menu/index.tsx` to use relative paths.
- Updated `tsconfig.json` to include the `baseUrl` compiler option and adjust the `include` and `exclude` paths.
* Refactor Lite Text Editor code to use relative import paths instead of absolute import paths.
* Added LucideIconType to the exports in index.ts for use in other files.
Created a new file lucide-icon.ts which contains the type LucideIconType.
Updated the icon type in HeadingOneItem in menu-items/index.tsx to use LucideIconType.
Updated the Icon type in AlertLabel in alert-label.tsx to use LucideIconType.
Updated the Icon type in VerticalDropdownItemProps in vertical-dropdown-menu.tsx to use LucideIconType.
Updated the Icon type in BubbleMenuItem in fixed-menu/index.tsx to use LucideIconType.
Deleted the file tooltip.tsx since it is no longer used.
Updated the Icon type in BubbleMenuItem in bubble-menu/index.tsx to use LucideIconType.
* ♻️ refactor: simplify rendering logic in slash-commands.tsx
The rendering logic in the file "slash-commands.tsx" has been simplified. Previously, the code used inline positioning for the popup, but it has now been removed. Instead of appending the popup to the document body, it is now appended to the element with the ID "tiptap-container". The "flip" option has also been removed. These changes have improved the readability and maintainability of the code.
* fixed build errors caused due to core's internal imports
* regression: fixed pages not saving issue and not duplicating with proper content issue
* build: Update @tiptap dependencies
Updated the @tiptap dependencies in the package.json files of `document-editor`, `extensions`, and `rich-text-editor` packages to version 2.1.13.
* 🚑 fix: Correct appendTo selector in slash-commands.tsx
Update the `appendTo` function call in `slash-commands.tsx` to use the correct selector `#editor-container` instead of `#tiptap-container`. This ensures that the component is appended to the appropriate container in the editor extension.
Note: The commit message assumes that the change is a fix for an issue or error. If it's not a fix, please provide more context so that an appropriate commit type can be determined.
* chore: format all files in the project
* fix: removing @types/react from dependencies
* fix: adding prettier and eslint config
* chore: format files
* fix: upgrading turbo version
* chore: ignoring warnings and adding todos
* fix: updated the type of bubble menu item in the document editor
* chore: format files
---------
Co-authored-by: Aaryan Khandelwal <aaryankhandu123@gmail.com>