Commit Graph

566 Commits

Author SHA1 Message Date
1ilit
da7ccee51c Diagram versioning (#560)
* clean up sidesheet

* clean up sharing

* add revisions sidesheet

* update getCommits and clean up

* update date localization

* load diagram in read only mode from previous version

* disable input from control panel and popovers

* add restore warning modal

* separate share and versions

* update versions

* finalize versioning implementation, add pagination

* fix package-lock.json

* clear versions cache on flush storgae

* disable menubar items when in read only mode

* disable remaining fields in readonlt

* suppress eslint only-export-components rule

* show loading version progress
2025-08-24 22:06:58 +04:00
1ilit
1eb4e298e9 Allow editing cardinality 'many' label (#559) 2025-08-23 21:47:05 +04:00
1ilit
3eac4c342a Deduce cardinality from fields (#557) 2025-08-23 13:44:08 +04:00
1ilit
d99f77d0de Increase pixel ratio for png export (#556) 2025-08-19 21:03:27 +04:00
1ilit
2d7c2c6d30 Fix enum import from postgres (#551) 2025-08-10 13:30:13 +04:00
Karen Mkrtumyan
b62471c03f Add ctrl select support (#527)
* Add ctrl select support

* fix the issue with clicking on overlapping objects

* simplify the code, add meta to ctrl for macos

* fix lock unlock with command on macos
2025-08-09 13:22:04 +04:00
1ilit
0e196de261 Fix handleColorChange when no redo action is recorded (#538) 2025-07-23 22:23:51 +04:00
Karen Mkrtumyan
a5718f8359 Refactor dragging logic (#523)
* refactor dragging logic

* Remove unnecessary undefined in TableInfo.jsx
2025-07-05 22:37:58 +04:00
Kishan_Singh
47caa29f78 Add support for PostgreSQL "CREATE TABLE INHERITS" (#524)
* feat: add support for PostgreSQL table inheritance in schema export

* fixed the suggested changes in the inheritance feature

* Update src/components/EditorSidePanel/TablesTab/TableField.jsx

Co-authored-by: 1ilit <1ilit@proton.me>

* fixed all the comments

* feat: finalize Postgres table inheritance support with fixes and formatting

---------

Co-authored-by: kishansinghifs1 <kishansingh956196@gmai.com>
Co-authored-by: 1ilit <1ilit@proton.me>
2025-07-04 14:57:20 +04:00
Karen Mkrtumyan
e609003b25 Change move to batch move only (#508)
* add notDragging constant

* change move to only bulk move
2025-07-01 17:49:35 +04:00
zimiovid
f1d632587b Always use gistId from URL for sharing, prevent duplicate gist creation (#511)
* fix: prevent duplicate gist creation

* feat: change from useEffect to loadFromGist

* Update Workspace.jsx
2025-06-26 13:28:09 +04:00
Karen Mkrtumyan
5a5304073e Add onDoubleClick for notes and areas as edit (#503) 2025-06-23 00:26:44 +04:00
1ilit
9fc9d573e9 Fix mysql decimal and dbml enum export (#499)
* Fix decimal and dbml enum export

* Remove map
2025-06-21 21:51:50 +04:00
Karen Mkrtumyan
3cdf908ffd Panning with middle click, persistent bulk selection (#498)
* panning with middle click, persistant bulk selection

* remove unused variables
2025-06-21 19:48:15 +04:00
Karen Mkrtumyan
e56f6409ff Fix ColorPicker undo stack additions (#494)
* Fix ColorPicker undo stack additions

* make custom component ColorPicker
2025-06-20 18:18:06 +04:00
1ilit
3ea88314eb Refactor theming (#497) 2025-06-18 16:08:12 +04:00
Karen Mkrtumyan
b974a7d854 Change to square grid which moves when panning, add snap to grid functionality (#492)
* change to square grid which moves when panning, add snap to grid functionality

* change grid back to circles, minor improvments

* add new constants
2025-06-14 00:55:29 +04:00
1ilit
ed01241bd8 Allow panning diagram over locked elements (#489) 2025-06-12 02:08:54 +04:00
Karen Mkrtumyan
14ee753d47 Remove panning from undo stack (#483) 2025-06-08 00:54:06 +04:00
Karen Mkrtumyan
f85adf0577 Fix fit window, move hardcoded constants to constants.js (#482)
* fix fit window, move hardcoded constants to constants.js

* comment fixes

* change import from utils.js to utils
2025-06-08 00:22:31 +04:00
1ilit
938ad7c01d Lock notes and subject areas (#480) 2025-06-07 22:24:01 +04:00
1ilit
8bbe4da899 Use nanoids when pasting or duplicating a table (#481) 2025-06-07 22:23:12 +04:00
XC
9570df983d Update zh locales & dbmlView switch (#476) 2025-06-04 17:09:34 +04:00
1ilit
5e1c4978bf Support locking tables on canvas (#475)
* Lock tables

* Add lock flag in addTable
2025-06-03 23:10:20 +04:00
Karen Mkrtumyan
306a7396d1 Change reset view shortcut to Enter/Return (#470) 2025-05-31 20:54:32 +04:00
1ilit
388c7b4fee Fix dropdown menu overflow (#468) 2025-05-29 22:35:47 +04:00
1ilit
f2d60a70e0 Fix invalid field indexes after import (#466)
* Fix invalid field indexes after import

* fix postgres types
2025-05-28 04:18:11 +04:00
1ilit
0e45b0ede6 Add dbml editor (#465) 2025-05-27 18:09:55 +04:00
Dufeutrel Thibaut
80fb9e5080 Add colors to data types in Popover (details of column) (#450) 2025-05-14 21:26:02 +04:00
Dufeutrel Thibaut
b7445e22d1 Add colors to data types (#448)
* Color added to main datatypes

* Add tailwind colors to all data types and display them
2025-05-13 23:34:44 +04:00
1ilit
94226de561 Table and field drag and drop ordering (#444)
* Add dnd for tables and fields

* Fix inputs

* Decouple ids and indecies in the editor

* Decouple ids and indecies in utils

* Fix field indexes

* Use nanoid instead of numberic ids for fields and tables

* Fix review comments
2025-05-11 21:44:04 +04:00
1ilit
f46a6b2ee9 Add mariadb specific types (#425) 2025-04-28 03:09:59 +04:00
1ilit
1a80ac539a Fix create gist 2025-04-21 23:00:57 +04:00
1ilit
66f41d591a Remove octokit (#417)
* remove octokit

* clean up .env.sample and gist apis

* better error management
2025-04-21 22:42:48 +04:00
sudhir
3c95e51f06 Delete diagram on clear (#321) 2025-04-20 01:57:38 +04:00
1ilit
afb3b60123 Clean up (#415) 2025-04-20 01:40:02 +04:00
Pavan
4de49cb3cc Update not bull button title (#407)
* Fix button behavior: Reverse logic for nullable/not nullable toggle

* fix: updated translation key to 'nullable' and refactored button title
2025-04-14 20:13:12 +04:00
1ilit
5c63b4c3ae Remove logs 2025-04-12 23:41:56 +04:00
1ilit
adf647483c Switch to monaco-editor from codemirror (#403)
* switch to monaco-editor

* fix styles
2025-04-12 20:50:47 +04:00
XC
f84ca1bde1 Fix the incorrect use of "panning" (#401) 2025-04-11 18:02:19 +04:00
1ilit
436ab3ec33 Export saved data (#400) 2025-04-10 22:08:31 +04:00
1ilit
0efb5470ab Bulk select (#395)
* add rect for select

* collect selected elements

* increase note stroke width

* move elements and undo redo

* add icon to toolbar to toggle multiselect mode

* set bulk selected elements to none when panning
2025-04-09 01:00:20 +04:00
1ilit
73ed14982c Set overwrite to false by default when importing from source (#394) 2025-04-07 23:56:00 +04:00
1ilit
46e91069d5 Replace colorpalette with colorpicker (#392) 2025-04-06 03:36:46 +04:00
Aditya
16ea2ee23c feat:Added support for exporting SQL as OracleDB SQL (#192)
* feat:Added support for exporting SQL as OracleDB SQL

* Add parser

* Import from sql

* Add beta tag

* Export from generic

* Fix export

* Add import affinity

---------

Co-authored-by: 1ilit <1ilit@proton.me>
2025-04-02 03:11:08 +04:00
1ilit
f95841f0e7 Migrate to tailwind v4 (#370) 2025-03-21 01:25:36 +04:00
Kratik
3e7d1ac6f6 Toggle datatypes visibility (#366)
* showDatatype setting added in view control panel

* removed shortcut

can be discussed later

* fixed linting issue and made sure the condition check is above div element

in table.jsx code
in the else part im directly returning the element by keeping a check  for settings.showDataTypes?
which helps to not add empty element

for setSetting issue
I used the similar code used just above the snippet and modified it
2025-03-17 01:50:59 +04:00
1ilit
6cc9942062 Fix hotkeys (#357)
* Fix hotkeys(#356)

* Check for meta key(#356)
2025-03-07 21:11:50 +04:00
1ilit
885eb8298f Deprecate ddb export(#353) 2025-03-04 22:58:39 +04:00
1ilit
0d813fc0dd Import from and export to DBML (#351)
* Add export and import functions

* Add import from dbml to control panel

* Add the import key back into locales and show import error

* Parse relationships
2025-03-01 22:24:53 +04:00