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

Improve snippet organization in SQL Editor #27881

Merged
merged 43 commits into from
Jul 17, 2024
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
43 commits
Select commit Hold shift click to select a range
30bd0f3
Init changes for sql fodlers
joshenlim Jul 4, 2024
ff1aa0a
Merge branch 'master' into feat/sql-folders-new
joshenlim Jul 4, 2024
cfb9c6b
Merge master resolve conflicts
joshenlim Jul 4, 2024
67fac44
Added upsert logic in sql-editor-v2 valtio, hooked up with templates …
joshenlim Jul 4, 2024
a994bcf
Do up logic for creating new snippets by typing in /new or by clickin…
joshenlim Jul 4, 2024
61a57a9
Do up logic for updating and deleting snippets
joshenlim Jul 4, 2024
a49d1c3
Do up logic for favourites and shared snippets
joshenlim Jul 5, 2024
a839c50
Do up logic for favourites and shared snippets
joshenlim Jul 5, 2024
31b05e8
Fix
joshenlim Jul 5, 2024
36d4fda
Fix saving indicator, add empty states for favorites and shared snippets
joshenlim Jul 5, 2024
5754e44
Implement sorting
joshenlim Jul 5, 2024
d02f065
Some minor QOL improvements
joshenlim Jul 5, 2024
96cb9ab
Minor fix on empty state for private snippets
joshenlim Jul 5, 2024
57ad789
Add delete folder mutation
joshenlim Jul 5, 2024
47164d7
Implement create and update folder
joshenlim Jul 8, 2024
60da9f7
Fix reinstate with AI renaming for new snippets under folder
joshenlim Jul 8, 2024
f2f3ebc
Support controlled multi select behaviour in private snippets
joshenlim Jul 8, 2024
169f05b
Undo changes to tree-view-multi-select
joshenlim Jul 8, 2024
ff09863
Support bulk deletes
joshenlim Jul 8, 2024
a0b9e54
Support moving queries rendering queries in folders
joshenlim Jul 9, 2024
33cd45c
Support deleting folders and creating a new folder when moving a query
joshenlim Jul 9, 2024
0bf4769
Fix bug where renaming query removes content
joshenlim Jul 9, 2024
d198936
Add initial loading state in sql editor nav handle fallback if cann…
joshenlim Jul 9, 2024
34f55f7
Fix some spelling
joshenlim Jul 9, 2024
6c39eed
Fix TS issue in sql folders mutation keys
joshenlim Jul 9, 2024
0db5380
Fix toggling favorite
joshenlim Jul 9, 2024
ba0b1ec
Lint
joshenlim Jul 9, 2024
f29d3c4
Revert fallback behaviour in ]id] for now
joshenlim Jul 9, 2024
5b7d5f5
Fix favorites and shared snippets not showing
joshenlim Jul 9, 2024
44e7e7f
Fix moving currently opened snippet leads to loading
joshenlim Jul 12, 2024
ed8da76
Support bulk moving
joshenlim Jul 12, 2024
824810b
Improve multi select logic a little
joshenlim Jul 12, 2024
f4aaaf5
Merge master resolve conflicts
joshenlim Jul 12, 2024
3df8008
Nit lint
joshenlim Jul 12, 2024
6362073
Merge branch 'master' into feat/sql-folders-new
joshenlim Jul 15, 2024
8bc49ba
Reinstate AI retitling for untitled snippets when running query
joshenlim Jul 15, 2024
e6bf586
Remove hardcode in useAFlag
joshenlim Jul 15, 2024
d77384a
Support creating new snippet in a folder directly
joshenlim Jul 15, 2024
f88da3e
Fix sharing snippets that are within a folder
joshenlim Jul 15, 2024
2a9aa88
Fix sharing snippets within a folder
joshenlim Jul 15, 2024
a2f774f
Fix favorite
joshenlim Jul 15, 2024
b200b98
Add loading state when fetching folder contents
joshenlim Jul 16, 2024
d431629
Fix favoriting snippets in folders
joshenlim Jul 16, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Fix
  • Loading branch information
joshenlim committed Jul 5, 2024
commit 31b05e80bd6e7c4350a9757d795a09cc6bc72a3f
Original file line number Diff line number Diff line change
Expand Up @@ -204,6 204,12 @@ export const SQLEditorNav = () => {
onSelectDownload={() => {
setSelectedSnippetToDownload(element.metadata as Snippet)
}}
onSelectCopyPersonal={() => {
onSelectCopyPersonal(element.metadata as Snippet)
}}
onSelectUnshare={() => {
setSelectedSnippetToUnshare(element.metadata as Snippet)
}}
/>
)}
/>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 143,7 @@ export const SQLEditorTreeViewItem = ({
)}
{onSelectCopyPersonal !== undefined &&
isSharedSnippet &&
// !isSnippetOwner &&
!isSnippetOwner &&
canCreateSQLSnippet && (
<ContextMenuItem_Shadcn_
className="gap-x-2"
Expand Down