Commit Graph

337 Commits

Author SHA1 Message Date
Nikita Galaiko
b24c646ec7
move session activity update into deltas::write 2023-02-24 14:56:10 +01:00
Kiril Videlov
c85a45dbc9 Finally fix overlows in the app 2023-02-24 14:23:51 +01:00
Nikita Galaiko
7271fefd7e
fix minor warnings 2023-02-24 13:34:21 +01:00
Nikita Galaiko
f6add083a3
print status error 2023-02-24 13:33:06 +01:00
Nikita Galaiko
e549e99c05 cache images locally 2023-02-24 13:29:09 +01:00
Kiril Videlov
e8a77b7d50 Formatting 2023-02-24 12:43:18 +01:00
Scott Chacon
be901c11a3 wow, I fd up that merge 2023-02-24 12:25:24 +01:00
Scott Chacon
c0f25b33d1
Merge pull request #21 from gitbutlerapp/schacon/gb-42-better-default-project-home-screen
Better default project home screen
2023-02-24 12:12:25 +01:00
Scott Chacon
b141a419e0 Merge remote-tracking branch 'origin/master' into schacon/gb-42-better-default-project-home-screen 2023-02-24 12:11:53 +01:00
Scott Chacon
4c63a0df2d better grid 2023-02-24 11:50:11 +01:00
Nikita Galaiko
5fde45a916
lint and check frontend on push 2023-02-24 11:01:23 +01:00
Nikita Galaiko
cb13b497ed
fix remaining eslint issues 2023-02-24 11:00:17 +01:00
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