Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Data tables v1 #1915

Open
wants to merge 400 commits into
base: ayush/2075
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
400 commits
Select commit Hold shift + click to select a range
d109437
Refactor data_table.rs into a folder with multiple files
ddimaria Oct 24, 2024
82c8803
multisort
davidfig Oct 25, 2024
c8c99f2
sort works better
davidfig Oct 25, 2024
5e6c010
don't select the table title if the table is not active and the curso…
davidfig Oct 25, 2024
7ad35e3
simplify CellsArray (the underlying border around code cells)
davidfig Oct 25, 2024
6c76e69
better spill errors
davidfig Oct 25, 2024
3d339af
fix rename table bug
davidfig Oct 25, 2024
06731b7
fix bug with hover table
davidfig Oct 25, 2024
84c4996
Test for not adding numbers on unique names
ddimaria Oct 25, 2024
af3e237
Merge branch 'data-tables-v1' of github.com:quadratichq/quadratic int…
ddimaria Oct 25, 2024
79f5e82
fix bugs with table sort dialog
davidfig Oct 25, 2024
f258c99
fix table name bug
davidfig Oct 25, 2024
081ead7
Start DataTableMeta operation
ddimaria Oct 25, 2024
31e3ad9
Remove auto_gen_path.rs
ddimaria Oct 25, 2024
ca823b6
Merge branch 'data-tables-v1' of github.com:quadratichq/quadratic int…
ddimaria Oct 25, 2024
c07ad25
reworking cellsMarker
davidfig Oct 25, 2024
e9966c6
reworking markers
davidfig Oct 25, 2024
6d9b136
Merge branch 'data-tables-v1' of https://github.com/quadratichq/quadr…
davidfig Oct 25, 2024
8783d6d
fix overflow issues with table columns and name
davidfig Oct 25, 2024
c22e2c9
fix bug with table name not disappearing when inactive
davidfig Oct 25, 2024
cde562c
Merge branch 'qa' into data-tables-v1
davidfig Oct 25, 2024
bdae8dc
fixed bug with gridlines appearing on top of the column names again
davidfig Oct 25, 2024
04b84a5
fixed bug with sort button not disappearing when moving into table name
davidfig Oct 25, 2024
bb8ab7c
merge latest
jimniels Oct 25, 2024
a1d08de
Create ContextMenuItem.tsx
jimniels Oct 25, 2024
eedf4c1
Update ContextMenuItem.tsx
jimniels Oct 25, 2024
8340213
make code table editalb
jimniels Oct 25, 2024
b3de1ee
tweak label
jimniels Oct 25, 2024
61ecaff
udpated icons
jimniels Oct 25, 2024
937b04c
fixing capitalization
davidfig Oct 26, 2024
8cb426c
clean up file names
davidfig Oct 26, 2024
f60c038
ContextMenu is not correct
davidfig Oct 26, 2024
964f1ed
fix a few bugs
davidfig Oct 26, 2024
3d77a72
fix visual bug with table outline and floating column headers
davidfig Oct 27, 2024
312ee4f
fix bug with table menu in grid menu
davidfig Oct 27, 2024
6b7b770
fix positioning when menu goes off screen
davidfig Oct 27, 2024
683adde
remove console log
davidfig Oct 28, 2024
fb0b1a9
charts cover up chart cell
davidfig Oct 29, 2024
b6ed5ca
use table name instead of [CHART] for charts
davidfig Oct 29, 2024
6e703bf
images use table name
davidfig Oct 29, 2024
0748191
cell images
davidfig Oct 30, 2024
9b8b046
clicking on JS image selects the code cell
davidfig Oct 30, 2024
f84e085
removing cellsArray
davidfig Oct 30, 2024
15328e6
better table highlighting for html and image
davidfig Oct 30, 2024
90d6d11
html border isnet
davidfig Oct 30, 2024
b01cd40
clip all table cells
davidfig Oct 30, 2024
14da94d
fix adjustColumns for htmlCells
davidfig Oct 30, 2024
94e70c8
resizing image properly updates grid lines
davidfig Oct 31, 2024
4e75b0c
fix bug with position of context menu
davidfig Oct 31, 2024
044f61d
Merge remote-tracking branch 'origin/qa' into data-tables-v1
davidfig Oct 31, 2024
6227df8
ensure gridLines are defined in constructor
davidfig Oct 31, 2024
47f77e1
hook up color picker to tables
davidfig Oct 31, 2024
e9ece64
hook up asc and desc from column menu
davidfig Oct 31, 2024
a94095b
fix bug with renaming column names
davidfig Oct 31, 2024
66cc859
themes work on tables
davidfig Oct 31, 2024
c6e8e0b
fix sort table and layout
davidfig Oct 31, 2024
1f10377
added tab to PixiRename
davidfig Oct 31, 2024
559dbd6
table moving by dragging table name
davidfig Oct 31, 2024
7cd0d69
initial work on formats for tables
davidfig Oct 31, 2024
101ab4c
WIP formats
davidfig Nov 1, 2024
5afa0a4
fix serialization
davidfig Nov 1, 2024
fd3b9a4
improve format combine
davidfig Nov 1, 2024
3a16f02
improve context menu positioning
davidfig Nov 3, 2024
0f522ae
Finish DataTableMeta operations in core, remove UpdateDataTableName
ddimaria Nov 4, 2024
2c6b8a0
Replace UpdateDataTableName references in client with DataTableMeta
ddimaria Nov 4, 2024
fe8b916
rework how the cursor moves into charts
davidfig Nov 4, 2024
829cf13
Fix all lints
ddimaria Nov 4, 2024
5275ec0
Merge branch 'data-tables-v1' of github.com:quadratichq/quadratic int…
ddimaria Nov 4, 2024
8beca45
add chart_outpu
davidfig Nov 4, 2024
ed4bc1e
Merge branch 'data-tables-v1' of https://github.com/quadratichq/quadr…
davidfig Nov 4, 2024
21f201b
fix tests
davidfig Nov 4, 2024
560b329
Implement Toggle alternating colors in the UI
ddimaria Nov 5, 2024
c2e2e71
Implement show_headers in rust
ddimaria Nov 5, 2024
732e3ec
Implement show_headers in the client
ddimaria Nov 5, 2024
c1b9125
Rename column_names to columns in JsRenderCodeCell
ddimaria Nov 5, 2024
1b66a61
Rename column name in the client
ddimaria Nov 5, 2024
247dab8
Implement hide column in the UI
ddimaria Nov 5, 2024
638945b
Implement show all columns in the UI
ddimaria Nov 5, 2024
14f0502
Fix clippy lints
ddimaria Nov 5, 2024
399e870
Fix prettier lints
ddimaria Nov 5, 2024
f243caf
Add display_buffer to JsRenderCode cell and implement calculateRowInd…
ddimaria Nov 5, 2024
d02f543
Revert adding display_index, peform transmute in rust instead
ddimaria Nov 5, 2024
5004a80
Respect display_buffer when setting data table cell values
ddimaria Nov 5, 2024
38ec438
Cleanup
ddimaria Nov 5, 2024
90bb41f
move render_size to table
davidfig Nov 6, 2024
5f97b85
Merge branch 'data-tables-v1' of https://github.com/quadratichq/quadr…
davidfig Nov 6, 2024
dccecaa
update compiled file
davidfig Nov 6, 2024
ab9069b
fix type issue
davidfig Nov 6, 2024
815e00f
fix client updates for changes in code_cells, image, and html
davidfig Nov 6, 2024
8c471dd
resize/spill work on charts and image
davidfig Nov 6, 2024
28d7b47
fix visual bug
davidfig Nov 6, 2024
dc46629
Add original index to the data table pretty print
ddimaria Nov 6, 2024
09aecaf
Merge branch 'data-tables-v1' of github.com:quadratichq/quadratic int…
ddimaria Nov 6, 2024
c469161
Edit sorted data table cell
ddimaria Nov 6, 2024
3878a82
keep chart size consistent between runs
davidfig Nov 7, 2024
06a4c11
clippy
davidfig Nov 7, 2024
fba8177
when offsets change, recalculate intersecting chart sizes
davidfig Nov 7, 2024
b96bb5d
working through ctrl+arrow around tables
davidfig Nov 7, 2024
909f26d
fix bug with find_next_row
davidfig Nov 7, 2024
3b8d8c2
Abstract display_columns and add transmute_index()
ddimaria Nov 7, 2024
873451a
Merge branch 'data-tables-v1' of github.com:quadratichq/quadratic int…
ddimaria Nov 7, 2024
d510fa3
Finish hide column testing
ddimaria Nov 7, 2024
ebac40a
WIP jumpCursor port to Rust
davidfig Nov 7, 2024
a5ce2b9
Add column hiding + tests
ddimaria Nov 8, 2024
283c253
Show all columns and rename column
ddimaria Nov 8, 2024
be755f4
Merge branch 'data-tables-v1' into jump-cursor
davidfig Nov 8, 2024
740b50d
finish jump_cursor logic
davidfig Nov 8, 2024
cd0d0a7
jump_cursor is working
davidfig Nov 8, 2024
ba1a853
add show all columns to table menu
davidfig Nov 8, 2024
892c444
fix color stuff
davidfig Nov 8, 2024
33230e3
minor tweaks
davidfig Nov 8, 2024
3ba71d6
html chart has a default size
davidfig Nov 8, 2024
1cec49b
fix bug with gridlines after table deletion
davidfig Nov 8, 2024
d90d9ec
ensure that chart_output is only set for charts
davidfig Nov 8, 2024
cdb2c8e
minor tweaks
davidfig Nov 8, 2024
719880e
fix sort button
davidfig Nov 8, 2024
d113705
Make all the name unique + refactors
ddimaria Nov 8, 2024
a52a1b7
add description text for charts in code editor header
davidfig Nov 11, 2024
82e42a4
Fix data tables copy/paste issue, add panic hook
ddimaria Nov 11, 2024
65b44f0
Merge branch 'data-tables-v1' of github.com:quadratichq/quadratic int…
ddimaria Nov 11, 2024
fe48d69
Move data table partially working, enforce new nameing standards
ddimaria Nov 11, 2024
b5e96e4
thumbnails don't include selected table names
davidfig Nov 12, 2024
04cd769
Complete data move/cut/copy for various scenarios
ddimaria Nov 12, 2024
fe3ad3b
Merge branch 'data-tables-v1' of github.com:quadratichq/quadratic int…
ddimaria Nov 12, 2024
019d596
Rename columns to column header
ddimaria Nov 13, 2024
85710c6
Rename column.rs to column_header.rs
ddimaria Nov 13, 2024
7ba1ad7
Finish renaming
ddimaria Nov 13, 2024
0f56991
tweak labels
jimniels Nov 13, 2024
b353f96
fix z-index of cursor and floating column headers
davidfig Nov 14, 2024
4528b46
fix spill error for data tables
davidfig Nov 14, 2024
4602b49
style stuff
davidfig Nov 14, 2024
4f01548
remove console.log
davidfig Nov 14, 2024
074b8e2
make grid dropdown icons same as material ones
jimniels Nov 14, 2024
65b3bd1
make dropdown icons consistent
jimniels Nov 14, 2024
4614180
Handle insert/remove row and column in Rust
ddimaria Nov 14, 2024
c4b3ea2
Merge branch 'data-tables-v1' of github.com:quadratichq/quadratic int…
ddimaria Nov 14, 2024
aeabc7a
update icons
jimniels Nov 15, 2024
af8cbfd
tweak labels
jimniels Nov 15, 2024
005e91f
sort iconography
jimniels Nov 15, 2024
7999bac
insert/delete row/column operations, bugs
ddimaria Nov 16, 2024
7321da6
Merge branch 'data-tables-v1' of github.com:quadratichq/quadratic int…
ddimaria Nov 16, 2024
8a21708
Allow reading/writing of CellValues to fix bugs and add features
ddimaria Nov 18, 2024
3706ca4
Default to blank values in get_code_cell_values()
ddimaria Nov 18, 2024
61bc660
Correctly display multi-column code outputs
ddimaria Nov 19, 2024
efb2ab7
Paste values on top of a data table + some edge cases
ddimaria Nov 19, 2024
7a4d147
Handle to-the-left and from-the-top paste conditions for data tables
ddimaria Nov 21, 2024
1d26e68
Remove data table when pasting over the source cell
ddimaria Nov 21, 2024
3c1cbf6
Fix most of the broken tests
ddimaria Nov 21, 2024
9cb3592
Add/remove a column from the UI
ddimaria Nov 22, 2024
666c932
1st pass at mergeing
ddimaria Dec 20, 2024
206ddda
Checkpoint, only 8 rust errors remaining
ddimaria Dec 20, 2024
f006a2a
Complete fixing all rust errors from the merge
ddimaria Dec 20, 2024
2088b13
fix chart_size_to_data_table_size
davidfig Dec 21, 2024
7d8cbc8
working through TS changes
davidfig Dec 21, 2024
1b495fa
fix cellsfills
davidfig Dec 21, 2024
0ce6eac
"fixing" javascript issues
davidfig Dec 22, 2024
da4a30e
remove unnecessary comment
davidfig Dec 23, 2024
5956b23
fix bug with decelerate
davidfig Dec 23, 2024
d47beed
remove deprecated file
davidfig Dec 23, 2024
18dd503
fix table bounds issue
davidfig Dec 23, 2024
91298f9
Merge remote-tracking branch 'origin/qa' into data-tables-v1-merge-2
ddimaria Dec 23, 2024
6d8c8c5
fix A1 printing for rows
davidfig Dec 18, 2024
ddec69a
added a momentum checker for wheel events
davidfig Dec 18, 2024
c3d2393
fix comment
davidfig Dec 18, 2024
6067b0f
fix code run order for insert/delete col/row
AyushAgrawal-A2 Dec 18, 2024
b23c938
clippy
AyushAgrawal-A2 Dec 18, 2024
24019ec
add rust code to determine if getCells should be forced to be 2d
davidfig Dec 18, 2024
33a3fcd
changed bad test
davidfig Dec 18, 2024
1f0a3a7
events.off
AyushAgrawal-A2 Dec 18, 2024
27b80e9
fix context menu on headings
AyushAgrawal-A2 Dec 18, 2024
fe51a13
update snowflake input
luke-quadratic Dec 18, 2024
43bfcda
Update urls.ts
jimniels Dec 19, 2024
75e9a41
Update urls.ts
jimniels Dec 19, 2024
3d689ed
JS properly receives 1D or 2D arrays from q.cells
davidfig Dec 19, 2024
9dcc420
prettier
AyushAgrawal-A2 Dec 19, 2024
f4f2bb1
change old format operation
davidfig Dec 19, 2024
c289942
fix bug with unselected selection
davidfig Dec 23, 2024
6d35177
don't select single cursor
davidfig Dec 23, 2024
5b05b41
fix JS compile issues
davidfig Dec 23, 2024
334437c
fixes
davidfig Dec 23, 2024
d3be859
Merge branch 'data-tables-v1' into data-tables-v1-merge-2
ddimaria Dec 23, 2024
3d67b6b
Merge pull request #2146 from quadratichq/data-tables-v1-merge-2
ddimaria Dec 23, 2024
a307049
started work on marching ants
davidfig Dec 23, 2024
d9a9463
initial work
davidfig Dec 16, 2024
a3104f2
fix aiAnalystAtom
davidfig Dec 16, 2024
41fd9e8
update name to match other settings, use selector in analyst
AyushAgrawal-A2 Dec 16, 2024
2f51f29
marching ants copy
davidfig Dec 17, 2024
729b830
escape also cancels range UI
davidfig Dec 17, 2024
005cc49
show multiple ranges on clipboard
davidfig Dec 17, 2024
216f062
fix a few bugs
davidfig Dec 17, 2024
0a77c13
events.off
AyushAgrawal-A2 Dec 18, 2024
c6900c2
update snowflake input
luke-quadratic Dec 18, 2024
5cb79a6
JS properly receives 1D or 2D arrays from q.cells
davidfig Dec 19, 2024
8329882
Merge branch 'data-tables-v1' of github.com:quadratichq/quadratic int…
ddimaria Dec 23, 2024
2621871
move back z-index for cellImages
davidfig Dec 23, 2024
ac824dc
fix marching ants
davidfig Dec 23, 2024
8ec1f5a
Fix 20 broken tests + bugs
ddimaria Dec 23, 2024
9aa8715
Merge branch 'data-tables-v1' of github.com:quadratichq/quadratic int…
ddimaria Dec 23, 2024
a6dadfd
Fix 14 tests
ddimaria Dec 24, 2024
0396b99
test_check_all_spills
davidfig Dec 24, 2024
819b834
fix remaining tests
davidfig Dec 24, 2024
33d9ccc
clean up warnings
davidfig Dec 24, 2024
a4889aa
fix up warnings; add broken test for new file
davidfig Dec 24, 2024
6373e10
fix open blank file (needed to replace it with file based on new schema)
davidfig Dec 24, 2024
527aa52
grid to data table
davidfig Dec 24, 2024
6d052e5
fixing table functionality
davidfig Dec 24, 2024
45e9432
improve data table names
davidfig Dec 24, 2024
084bea0
parser for table refs
davidfig Dec 25, 2024
b440d3a
fix tests
davidfig Dec 25, 2024
807123a
working through to_string test cases
davidfig Dec 25, 2024
96f290b
fix table display tests
davidfig Dec 26, 2024
33f058c
fix comment
davidfig Dec 26, 2024
e7c002d
comments
davidfig Dec 26, 2024
ec4117f
Merge pull request #2150 from quadratichq/data-tables-ref
davidfig Dec 26, 2024
6203bcb
more work on tables ref (lots of todos)
davidfig Dec 26, 2024
2893c5c
pass tests
davidfig Dec 26, 2024
c0b12e6
add TableMap so JsSelection can get coordinates fo tables
davidfig Dec 26, 2024
85eec79
adding more fns that require TableMap
davidfig Dec 27, 2024
e799a9a
fix broken test
davidfig Dec 27, 2024
59a852d
hooking up ts and filling in missing fns
davidfig Dec 27, 2024
572db29
fixing TS issues
davidfig Dec 28, 2024
c63cabd
simplifying api and reorganizing imports
davidfig Dec 29, 2024
4a7a82d
cleaned up compile errors
davidfig Dec 30, 2024
e819f3a
cleaning up filenames in a1
davidfig Dec 30, 2024
9b470c6
fix more tests
davidfig Dec 30, 2024
ce78a3c
clean up TS type errors
davidfig Dec 31, 2024
f443d5e
fixing more todos
davidfig Dec 31, 2024
65b95b5
better handling of columns within table_map
davidfig Dec 31, 2024
e850fd2
convert_to_ref_range_bounds and related functionality
davidfig Jan 1, 2025
6d8308a
fixing more todos
davidfig Jan 1, 2025
1e2f79c
fix test
davidfig Jan 1, 2025
d7b04f9
clippy
davidfig Jan 1, 2025
811a9df
removed cell_ref_range_to_rect todo
davidfig Jan 1, 2025
fd4fabc
more todos
davidfig Jan 2, 2025
541c7ac
fix more todos
davidfig Jan 2, 2025
c5f1a22
fix table refs
davidfig Jan 2, 2025
7e7e9c1
fix TS errors
davidfig Jan 2, 2025
dcdd464
Complete work on adding/removing data table columns in Rust + tests
ddimaria Jan 2, 2025
4ad8707
Refactor colunns and column headers
ddimaria Jan 2, 2025
b1ddfcd
compile + test fixes
davidfig Jan 3, 2025
569faf8
fix final tests
davidfig Jan 3, 2025
29c13cc
Merge branch 'table-ref-refactor' into data-tables-v1
davidfig Jan 3, 2025
f7fc4fc
fix TS type errors
davidfig Jan 3, 2025
954ab35
reworking finiteRanges and infiniteRanges
davidfig Jan 3, 2025
857b30c
select table starting to work
davidfig Jan 3, 2025
7abebb6
Merge branch 'ayush/2075' of github.com:quadratichq/quadratic into da…
AyushAgrawal-A2 Jan 3, 2025
9d4553a
merge bug
AyushAgrawal-A2 Jan 3, 2025
c5f29ea
Complete work on adding/removing data table rows in Rust + tests
ddimaria Jan 3, 2025
703b75c
Merge branch 'data-tables-v1' of github.com:quadratichq/quadratic int…
ddimaria Jan 3, 2025
3654f2e
Add/remove column/row working in the UI
ddimaria Jan 4, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
5 changes: 5 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,13 @@ quadratic-core/tmp.txt
quadratic-files/target/
quadratic-files/storage
quadratic-multiplayer/target/

quadratic-multiplayer/updateAlertVersion.json
<<<<<<< HEAD
quadratic-rust-shared/src/auto_gen_path.rs
=======
quadratic-shared/src/auto_gen_path.rs
>>>>>>> origin/qa

# Generated JS files
quadratic-api/node_modules/
Expand Down
4 changes: 3 additions & 1 deletion .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
"bindgen",
"buildkit",
"Buildx",
"cellvalue",
"codegen",
"containerd",
"CRPXNLSKVLJFHH",
Expand Down Expand Up @@ -146,5 +147,6 @@
},
"[markdown]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
}
},
"C_Cpp.errorSquiggles": "enabled"
}
11 changes: 11 additions & 0 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Binary file modified quadratic-api/src/data/current_blank.grid
Binary file not shown.
2 changes: 1 addition & 1 deletion quadratic-client/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
-->
<link rel="manifest" href="/manifest.json" />
<title>Quadratic</title>
<!--
<!--
Social share meta info
-->
<meta property="og:type" content="website" />
Expand Down
Binary file added quadratic-client/public/images/dropdown-white.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified quadratic-client/public/images/dropdown.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed quadratic-client/public/images/formula-fx-icon.png
Binary file not shown.
Binary file added quadratic-client/public/images/icon-formula.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added quadratic-client/public/images/icon-javascript.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added quadratic-client/public/images/icon-mssql.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added quadratic-client/public/images/icon-mysql.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added quadratic-client/public/images/icon-postgres.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added quadratic-client/public/images/icon-python.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added quadratic-client/public/images/icon-snowflake.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
38 changes: 38 additions & 0 deletions quadratic-client/public/images/mssql-icon.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed quadratic-client/public/images/python-icon.png
Binary file not shown.
32 changes: 32 additions & 0 deletions quadratic-client/public/images/snowflake-icon.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 4 additions & 0 deletions quadratic-client/public/images/sort-ascending.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 3 additions & 0 deletions quadratic-client/public/images/sort-descending.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
19 changes: 19 additions & 0 deletions quadratic-client/src/app/actions/actions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -141,5 +141,24 @@ export enum Action {
InsertRowBelow = 'insert_row_below',
DeleteRow = 'delete_row',
DeleteColumn = 'delete_column',
FlattenTable = 'flatten_table',
GridToDataTable = 'grid_to_data_table',
ToggleFirstRowAsHeaderTable = 'toggle_first_row_as_header_table',
RenameTable = 'rename_table',
ToggleHeaderTable = 'toggle_header_table',
DeleteDataTable = 'delete_table',
CodeToDataTable = 'code_to_data_table',
SortTable = 'table_sort',
ToggleTableAlternatingColors = 'toggle_table_alternating_colors',
RenameTableColumn = 'rename_table_column',
SortTableColumnAscending = 'sort_table_column_ascending',
SortTableColumnDescending = 'sort_table_column_descending',
InsertTableColumn = 'insert_table_column',
RemoveTableColumn = 'remove_table_column',
InsertTableRow = 'insert_table_row',
RemoveTableRow = 'remove_table_row',
HideTableColumn = 'hide_table_column',
ShowAllColumns = 'show_all_columns',
EditTableCode = 'edit_table_code',
ToggleAIAnalyst = 'toggle_ai_analyst',
}
8 changes: 8 additions & 0 deletions quadratic-client/src/app/actions/actionsSpec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,14 @@ export type ActionSpec<ActionArgsType> = {
// return `<Icon className="custom-style-class" />`
// ```
Icon?: IconComponent;

// use a checkbox instead of an Icon
checkbox?: boolean | (() => boolean);

// defaultOption will bold the name (this is usually used to indicate that
// double clicking will trigger the action)
defaultOption?: boolean;

isAvailable?: (args: ActionAvailabilityArgs) => boolean;
// Used for command palette search
keywords?: string[];
Expand Down
Loading
Loading