Commit Graph

935 Commits

Author SHA1 Message Date
Ian Donahue
20ee550f1f Ppm format and min-hight for cards on the porjects page 2023-04-11 14:17:43 +02:00
Ian Donahue
71ed4cda4a Update UI styles and improve visual clarity
Changes:
- Change text size in [projectId]/+page.svelte and commit/+page.svelte to "text-sm" for better readability.
- Update background color in FileActivity.svelte from a custom purple color to the predefined "bg-blue-500" class.
- Replace "bg-gb-700" with a custom color "bg-[#3356C2]" in commit/+page.svelte for the file-changed-item background.
- Adjust padding in commit/+page.svelte to enhance the file-changed-item appearance.
2023-04-11 14:14:09 +02:00
Ian Donahue
00d5933c20 WIP - broken command palette 2023-04-11 11:37:08 +02:00
Ian Donahue
bc636c3786 Revert "Merge branch 'master' into ian/gb-187-cmdpal-icons-for-repository-and-files"
This reverts commit 6b74d3f0f9, reversing
changes made to 57e6db78ad.
2023-04-11 11:37:08 +02:00
Ian Donahue
ee184ebe8e GB missed this content 2023-04-11 11:37:08 +02:00
Ian Donahue
f9997f9273 Refactor CommandPalette CSS and structure
Refactored the CommandPalette component's CSS and structure to improve readability and maintainability. Restructured the code to achieve more flexibility and conform to established best practices.

Changes include:
- Removed duplicated styles from app.postcss.
- Reorganized styles and class names in CommandPalette.svelte.
- Applied appropriate CSS classes and styles directly to input fields and icons.
- Moved styles to dedicated sections within the style tag.
- Made minor changes to QuickCommit.svelte for consistency.
2023-04-11 11:37:08 +02:00
Nikita Galaiko
2ecf0dbadd pty: run reader in a separate thread 2023-04-11 10:59:14 +02:00
Nikita Galaiko
771166968e pty-ws: log error when fail to listen 2023-04-11 10:59:14 +02:00
Nikita Galaiko
2cb0d11199 use localhost for prod 2023-04-11 10:59:14 +02:00
Nikita Galaiko
decd0511ba pty: server side prettyfy 2023-04-11 10:59:14 +02:00
Nikita Galaiko
d312981f29 fix csp 2023-04-11 10:59:14 +02:00
Nikita Galaiko
57dfd89a28 return http error from handshake 2023-04-06 16:31:54 +02:00
Nikita Galaiko
27fdd591d7 make pty connections project aware 2023-04-06 15:32:07 +02:00
Kiril Videlov
c782262570 fit more text in terminal 2023-04-06 15:27:50 +02:00
Kiril Videlov
d544c26a44 button component shouldnt prevent default 2023-04-06 15:10:11 +02:00
Kiril Videlov
1b4f3833c2 no spell check on the Command K input 2023-04-06 14:45:57 +02:00
Kiril Videlov
7111ac0a3b 🔨 Refactor shortcuts in project layout page
- Add shortcuts to project pages
- Add date-fns import for date formatting

[src/routes/projects/[projectId]/+layout.svelte]
- Add `format` import from `date-fns`
- Add `Shift+p` shortcut to go to project page
- Add `Meta+Shift+p` shortcut to go to project settings page
- Add `Shift+r` shortcut to go to project player page
- Add `a i p` shortcut to go to AI playground page
2023-04-06 14:31:31 +02:00
Nikita Galaiko
1ff5d46e7b do not close terminal sessions 2023-04-06 13:06:59 +02:00
Kiril Videlov
44a2ddf7ad 🔨 Refactor: Keyboard Shortcuts & Navigation
- Improve keyboard shortcuts navigation in the project layout
- Add `onMount` for keyboard shortcuts
- Add `tinykeys` for keyboard shortcuts
- Add `statuses` derived store
- Add `Shift+c` and `Shift+t` keyboard shortcuts
- Add `a i p` keyboard shortcut

[src/routes/+layout.svelte]
- Remove the `goto` import
- Remove 3 key bindings
- Add an `a i p` key binding
[src/routes/projects/[projectId]/+layout.svelte]
- Add `onMount` for keyboard shortcuts
- Add `tinykeys` for keyboard shortcuts
- Add `statuses` derived store
- Add `Shift+c` keyboard shortcut to navigate to commit page
- Add `Shift+t` keyboard shortcut to navigate to terminal page
- Add `a i p` keyboard shortcut to navigate to AI Playground page
2023-04-06 12:53:36 +02:00
Kiril Videlov
837e8f8014 wire up the connect to cloud dialog 2023-04-06 11:56:43 +02:00
Nikita Galaiko
9b2ea25a7a cleanup terminal 2023-04-06 11:17:09 +02:00
Kiril Videlov
5fb947421a removing chromatic 2023-04-05 21:09:34 +02:00
Kiril Videlov
4b15a9b1f2 fix dialog for commit page 2023-04-05 21:01:45 +02:00
Ian Donahue
e5e47bf64a Modified buttons for full-width which was not update in the button-component 2023-04-05 18:06:39 +02:00
Ian Donahue
541a72de0c pnpm format 2023-04-05 18:06:39 +02:00
Ian Donahue
e8ee1b26af The most basic updates to the terminal page experience 2023-04-05 18:06:39 +02:00
Nikita Galaiko
ea09ccd2d5 rm unused deps 2023-04-05 14:58:58 +02:00
Nikita Galaiko
402622bcd2 fixed height cmdk 2023-04-05 14:27:23 +02:00
Nikita Galaiko
4815b57b95 small fixes for nav handling 2023-04-05 14:06:19 +02:00
Nikita Galaiko
29a87b7efe pnpm format 2023-04-05 14:06:19 +02:00
Nikita Galaiko
03e0ae4429 use correct terminal icon 2023-04-05 14:06:19 +02:00
Nikita Galaiko
a97ab9749b refactor cmdk 2023-04-05 14:06:19 +02:00
Kiril Videlov
ce590fdae4 visual fixes in the player slider controls 2023-04-05 11:05:11 +02:00
Kiril Videlov
96b70d0eaf add terminal navigation to command palette 2023-04-05 10:44:44 +02:00
Kiril Videlov
48c7779453 player showing full context is the default 2023-04-05 10:10:44 +02:00
Scott Chacon
35f28cbc94
Add a Terminal (#49)
This implements a simple terminal frontend using Xterm and backend using portable_pty. It will not yet record, but it should keep a separate terminal per project, resize properly, change directories to the project, etc.

https://docs.rs/portable-pty/latest/portable_pty/
2023-04-05 10:10:07 +02:00
Kiril Videlov
79632f5ce9 permit the selection of code 2023-04-05 09:30:14 +02:00
Ian Donahue
470667fa91 pnpm format 2023-04-04 19:52:53 +02:00
Ian Donahue
f17255d4e0 Refactor CSS styles and clean up code
The diff is mainly focused on updating the styling of the input fields, changing some class names, and removing extra spacing or unnecessary lines.

Changes include:
- Reformatting textarea and input element styling by breaking selectors into multiple lines for better readability.
- Updating input focus styles in `CommandPalette/Commit.svelte` to remove duplicate classes.
- Adjusting padding and margins for elements in `FileActivity.svelte` and `+page.svelte` for improved appearance and alignment.
- Tweaking and simplifying class names in `+page.svelte` for consistency and readability.
2023-04-04 19:52:53 +02:00
Ian Donahue
f51757372f Fixed the inputs 2023-04-04 19:52:53 +02:00
Ian Donahue
3607738bb1 pnpm format 2023-04-04 16:59:40 +02:00
Ian Donahue
d517ac1dd4 pnpm format 2023-04-04 16:59:40 +02:00
Ian Donahue
56277b6af4 Improve file list styling in project page
Updated the styling of the file list in the project page to enhance readability and consistency. Padding and spacing adjustments were made on both the file list and file activity components to provide a better user experience.

Changes made:
- Adjusted padding and spacing in the file list of the project page
- Updated padding and height in the FileActivity component
- Visual pretification
2023-04-04 16:59:40 +02:00
Ian Donahue
259fcfd40d Refactor project file UI and improve file activities display
In this commit, the UI for the project files page is enhanced by restructuring the layout and improving the readability of the file activities. The file activity bars are redesigned to use a more visual and adaptable representation.

Changes include:
- Updated the layout and styling of `+page.svelte` for better readability.
- Refactored the file activities display in `FileActivity.svelte` with more descriptive bar styles and heights for different activity levels.
- Added styles to the file activity bars for a cleaner and more visually appealing look.
2023-04-04 16:59:40 +02:00
Nikita Galaiko
9bf9104c81 fix project load 2023-04-04 16:35:24 +02:00
Nikita Galaiko
bf25227293 use <Button> for project page files list 2023-04-04 16:24:47 +02:00
Nikita Galaiko
828f98311b use <Button> for Replay changes 2023-04-04 16:13:48 +02:00
Nikita Galaiko
e0fb1c93ba fix cmdk project switching 2023-04-04 16:08:53 +02:00
Kiril Videlov
22365668e0 hidden ai playground page. nobody will know how to go to it 2023-04-04 16:08:21 +02:00
Nikita Galaiko
b94dcf90d4 set ariaLabel on buttons 2023-04-04 15:37:16 +02:00