Commit Graph

7325 Commits

Author SHA1 Message Date
Nikita Galaiko
d80c96ce80
sort out lint/format setup 2023-02-24 10:46:41 +01:00
Scott Chacon
b266ed58dc Merge remote-tracking branch 'origin/master' into sc-home-screen 2023-02-24 10:44:53 +01:00
Scott Chacon
05f699b22e wip: new home screen, blank slate and project list 2023-02-24 10:35:57 +01:00
Nikita Galaiko
894e31881d
fix some warnings 2023-02-24 10:34:26 +01:00
Nikita Galaiko
139cdb8496
remove unused code 2023-02-24 10:20:05 +01:00
Nikita Galaiko
0c2999d909
if failed to push to remote, just log 2023-02-24 10:14:47 +01:00
Nikita Galaiko
9ae9308348 display user img in the header 2023-02-24 09:36:08 +01:00
Nikita Galaiko
b4f13c9caa connect update user api 2023-02-24 09:36:08 +01:00
Nikita Galaiko
b5a50bac4d connect user update api 2023-02-24 09:36:08 +01:00
Nikita Galaiko
1036aad9e2 update ui to allow avatar update 2023-02-24 09:36:08 +01:00
Nikita Galaiko
2d8cc028d6 add update user name ui 2023-02-24 09:36:08 +01:00
Kiril Videlov
228e73cc88 🔨 Refactor UI for increased recordings & improved completions
- Improved the layout of the project session page
- Added overflow-hidden to the main container
- Added border to the content container

[src/routes/projects/[projectId]/sessions/[sessionId]/+page.svelte]
- Change the css class of the main container from `flex flex-col h-full  text-zinc-400` to `flex flex-col h-full  text-zinc-400 overflow-hidden`
- Change the css class of the content container from `flex flex-col flex-none max-w-full select-none border-b border-zinc-700` to `flex flex-col flex-none max-w-full select
2023-02-23 23:25:26 +01:00
Kiril Videlov
e851cfc727 🔨 Refactor: Routes, Recordings, and Date Formatting
- Update style and functionality of project, day, and session pages
- Increase the amount of returned recordings from 10 to 100
- Add a formatDate function for formatting the session date
- Adjust the header and arrow classes for all pages

[src/routes/projects/[projectId]/day/+page.svelte]
- Change the header class from `px-6 py-4` to `px-8 py-1.5`
- Change the left arrow class from `w-8 h-8` to `-ml-2 w-8 h-8`
- Change the justify-start width from `w-72` to `w-64`
- Change the right arrow class from `w-8 h-8` to `-mr-2 w-8 h
[src/routes/projects/[projectId]/sessions/[sessionId]/+page.svelte]
- Raise the amount of returned recordings from `10` to `100`
- Move the `onMount` import from `svelte` to `"svelte"`
- Add a `formatDate` function for formatting the session date
- Change the `header` class from `px-6` to `px-8`
- Change the `arrow` class from `w-8` to `w-8` and add `-ml-2`
2023-02-23 23:25:26 +01:00
Kiril Videlov
c244574203 🔨 Refactor project layout for improved navigation
- Improved navigation menu for project page
- Added selection variable based on route id
- Updated colors for navigation menu items

[src/routes/projects/[projectId]/+layout.svelte]
- Import `page` store from `$app/stores`
- Add a selection variable based on the route id
- Increase width of navigation menu
- Add background color and text color to navigation menu items based on selection
2023-02-23 23:25:26 +01:00
Scott Chacon
1024b4691d these are in ms now 2023-02-23 22:01:33 +01:00
Nikita Galaiko
56ca8d5be4
correctly print anyhow errors 2023-02-23 16:49:06 +01:00
Nikita Galaiko
ba838e19d9
fix production builds 2023-02-23 14:26:22 +01:00
Kiril Videlov
efc6983181 🔨 Refactor project layout navigation links
- Update navigation menu styling
- Add links to Week, Day, and current session pages

[src/routes/projects/[projectId]/+layout.svelte]
- Change the styling of the navigation menu
- Add a link to the Week page
- Add a link to the Day page
- Add a link to the current session (if available)
2023-02-23 14:07:57 +01:00
Kiril Videlov
c162567b6e Use same font family and sizing as Linear 2023-02-23 13:26:33 +01:00
Nikita Galaiko
35a3a0194d
optimize posthog load 2023-02-23 12:32:25 +01:00
Scott Chacon
cffb008a1b just say we are syncing 2023-02-23 12:21:21 +01:00
Scott Chacon
f9a1b5407a show footer and link to cloud if the project is syncing 2023-02-23 12:21:21 +01:00
Kiril Videlov
f866b9edbb 🔨 Refactor: Increase recordings, switch API, lower tolerance
- Increase returned recordings from 10 to 100
- Add OpenAI API for completions
- Lower tolerance for numeric values in test files
- Add 2 tests for inclusive string split function

[src/hooks.client.ts]
- Remove `console.log("HERE");` line
[src/routes/projects/[projectId]/sessions/[sessionId]/+page.svelte]
- Increase the returned recordings from 10 to 100
- Fix typo in github action name
- Move octokit initialization to separate file
- Add OpenAI API for completions
- Lower tolerance for numeric values in test files
- Add 2 tests for inclusive string split function
2023-02-23 09:39:18 +01:00
Kiril Videlov
3441075286 🔨 Refactor package flags in pnpm-lock.yaml
- Update the `pnpm-lock.yaml` file
- Add `fluent-svelte` as a dependency
- Change `dev` flag to `false` for multiple packages

[pnpm-lock.yaml]
- Add `fluent-svelte` as a dependency
- Change `dev` flag from `true` to `false` for `focus-trap` and `for-each` packages
- Change `dev` flag from `true` to `false` for `tabbable` package
- Change `dev` flag from `true` to `false` for `tailwindcss` package
2023-02-23 09:22:53 +01:00
Nikita Galaiko
53669b881f
drop yjs 2023-02-23 08:56:36 +01:00
Nikita Galaiko
a9a8ab8fc0
more deltas tests 2023-02-23 08:33:00 +01:00
Nikita Galaiko
89b2b15a2a
fix operations calculation bug 2023-02-23 08:28:11 +01:00
Kiril Videlov
c8f2412b9e 🤦 Fix performance & completions issues
Linear GB-43

- Enable performance tracking for PostHog
- Add a console log statement

[src/hooks.client.ts]
- Change PostHog initialization to include capture_performance setting
- Add a console log statement
2023-02-22 22:45:58 +01:00
Kiril Videlov
846a19b6aa 🔨 Refactor session page for recordings
- Refactor page.svelte to improve performance
- Update text manipulation to use string slicing
- Add timestamp to slider value
2023-02-22 21:14:21 +01:00
Nikita Galaiko
22f65ec2a1
fix server-side event 2023-02-22 17:35:07 +01:00
Nikita Galaiko
d3f9cc8828
client logs when receiving events 2023-02-22 17:34:41 +01:00
Nikita Galaiko
22489a6b90
log event sent message 2023-02-22 17:27:58 +01:00
Nikita Galaiko
97048983cf
drop yrs 2023-02-22 17:16:10 +01:00
Nikita Galaiko
be7eda4047
better logs 2023-02-22 16:32:23 +01:00
Nikita Galaiko
8903efd56a
bring back log colors 2023-02-22 16:22:00 +01:00
Nikita Galaiko
9b80f277ae
when production, only log to file 2023-02-22 16:19:12 +01:00
Kiril Videlov
6d2f938f16 🔨 Refactor sessionv2 & switch to internal API
- Remove `+page.ts` file from `src/routes/projects/[projectId]/sessions/[sessionId]`
- Move `deltas` and `files` to the end of the object in `src/routes/projects/[projectId]/sessions/[sessionId]/+page.ts`
- Change `files` and `deltas` from properties to variables in `src/routes

[src/routes/projects/[projectId]/sessionv2/[sessionId]/+page.ts]
- Remove the `+page.ts` file
- Change the logic for getting the previous and next session
[src/routes/projects/[projectId]/sessions/[sessionId]/+page.ts]
- Move `deltas` and `files` to the end of the object
- Change `files` and `deltas` from properties to variables
[src/routes/projects/[projectId]/sessionv2/[sessionId]/+page.svelte]
- Remove page.svelte file
- Add OpenAI API for completions
- Add 2 tests for inclusive string split function
- Lower numeric tolerance for test files
- Move octokit initialization to a separate file
- Fix typo in github action name
- Raise amount of returned recordings from 10 to 100
2023-02-22 16:17:02 +01:00
Kiril Videlov
31f2994a9e 🤦 Fix: Raise recordings, switch API, lower tolerance, schedule actions
- Add Yjs Doc for deltas
- Add CodeViewerNext component with customization options
- Move octokit initialization to separate file
- Add button for jumping to specific timestamp of delta
- Filter operations based on the current slider value

[src/routes/projects/[projectId]/sessionv2/[sessionId]/+page.svelte]
- Add Yjs Doc for deltas
- Add CodeViewerNext component
- Move octokit initialization to separate file
- Add button for jumping to specific timestamp of delta
- Change slider value to include tick size
- Filter operations based on the current slider value
[src/lib/components/CodeViewerNext.svelte]
- Add CodeViewerNext component
- Set color, background color, caret color, selection background color, gutters background color and color for the editor
- Set height of the editor to 600px
- Make the editor non-editable
- Enable line wrapping
- Enable line numbers
- Set the dark theme for the editor
[src/lib/components/index.ts]
- Add `CodeViewerNext` component
2023-02-22 15:56:51 +01:00
Nikita Galaiko
0ccc37c0ef
do not fail session creation if session dir exists 2023-02-22 14:53:25 +01:00
Scott Chacon
e919a5fa47
Posthog integration GB-36 (#18)
* add posthog, add init to hooks
* identify user
* send name and email
* log out user
2023-02-22 14:38:45 +01:00
Nikita Galaiko
180d3c412e
set window focus when showing 2023-02-22 14:13:35 +01:00
Nikita Galaiko
cf20990218
conditional compilation for window builder 2023-02-22 13:38:04 +01:00
Nikita Galaiko
775d1cd1f3
only apply macos specific window things on macos 2023-02-22 13:20:19 +01:00
Nikita Galaiko
4d3f64d6d9
send user info to sentry 2023-02-22 12:55:25 +01:00
Nikita Galaiko
93975be057
set correct version for sentry 2023-02-22 12:24:50 +01:00
Kiril Videlov
f1d8555453 🔨 Refactor: Improve UI for session page
- Add a button to the `[sessionId]/+page.svelte` file for column selection
- Update the class of the button to `z-20 flex justify-end items-center overflow-hidden sticky left-0 w-1/6 text-xs leading-5`
- Add an `on:click` event to the button to update

[src/routes/projects/[projectId]/sessionv2/[sessionId]/+page.svelte]
- Change class of button from `flex justify-end items-center overflow-hidden sticky left-0 z-20 w-1/6 text-xs leading-5` to `z-20 flex justify-end items-center overflow-hidden sticky left-0 w-1/6 text-xs leading-5`
- Add a `<button>` element for column selection
- Add `on:click` event to the `<button>` element to update
2023-02-22 11:57:31 +01:00
Nikita Galaiko
3c42525a13
programmaticaly control window and channel events 2023-02-22 11:49:41 +01:00
Kiril Videlov
76b0989ece 🤦 Fix timeline display and tooltip on recordings page
- Add a function to convert a column number to a timestamp
- Change the slider to display a tooltip with the timestamp of the selected value
- Add a div to display the selected value on the timeline

[src/routes/projects/[projectId]/sessionv2/[sessionId]/+page.svelte]
- Add a function to convert a column number to a timestamp
- Change the slider to display a tooltip with the timestamp of the selected value
- Add a div to display the selected value on the timeline
2023-02-22 10:14:56 +01:00
Nikita Galaiko
f4a24faa29
allow to only request some session files 2023-02-22 08:47:03 +01:00
Kiril Videlov
3c08aef077 timeline things 2023-02-22 00:39:04 +01:00