Commit Graph

305 Commits

Author SHA1 Message Date
Nikita Galaiko
746e8ccabc
new structure 2023-09-06 11:47:35 +02:00
dependabot[bot]
f8b0437d21 Bump posthog-js from 1.77.1 to 1.77.2
Bumps [posthog-js](https://github.com/PostHog/posthog-js) from 1.77.1 to 1.77.2.
- [Release notes](https://github.com/PostHog/posthog-js/releases)
- [Changelog](https://github.com/PostHog/posthog-js/blob/master/CHANGELOG.md)
- [Commits](https://github.com/PostHog/posthog-js/compare/v1.77.1...v1.77.2)

---
updated-dependencies:
- dependency-name: posthog-js
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-08-28 22:38:52 +01:00
dependabot[bot]
e4d99cae1f Bump @codemirror/lang-javascript from 6.1.9 to 6.2.1
Bumps [@codemirror/lang-javascript](https://github.com/codemirror/lang-javascript) from 6.1.9 to 6.2.1.
- [Changelog](https://github.com/codemirror/lang-javascript/blob/main/CHANGELOG.md)
- [Commits](https://github.com/codemirror/lang-javascript/compare/6.1.9...6.2.1)

---
updated-dependencies:
- dependency-name: "@codemirror/lang-javascript"
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-08-28 22:34:36 +01:00
dependabot[bot]
dddd3754f3 Bump @codemirror/lang-html from 6.4.5 to 6.4.6
Bumps [@codemirror/lang-html](https://github.com/codemirror/lang-html) from 6.4.5 to 6.4.6.
- [Changelog](https://github.com/codemirror/lang-html/blob/main/CHANGELOG.md)
- [Commits](https://github.com/codemirror/lang-html/compare/6.4.5...6.4.6)

---
updated-dependencies:
- dependency-name: "@codemirror/lang-html"
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-08-28 22:31:51 +01:00
dependabot[bot]
e8c6942b47 Bump vitest from 0.34.2 to 0.34.3
Bumps [vitest](https://github.com/vitest-dev/vitest/tree/HEAD/packages/vitest) from 0.34.2 to 0.34.3.
- [Release notes](https://github.com/vitest-dev/vitest/releases)
- [Commits](https://github.com/vitest-dev/vitest/commits/v0.34.3/packages/vitest)

---
updated-dependencies:
- dependency-name: vitest
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-08-28 22:31:22 +01:00
dependabot[bot]
4464197ad4 Bump typescript from 5.1.6 to 5.2.2
Bumps [typescript](https://github.com/Microsoft/TypeScript) from 5.1.6 to 5.2.2.
- [Release notes](https://github.com/Microsoft/TypeScript/releases)
- [Commits](https://github.com/Microsoft/TypeScript/compare/v5.1.6...v5.2.2)

---
updated-dependencies:
- dependency-name: typescript
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-08-28 22:28:10 +01:00
Nikita Galaiko
28b2fa558e pnpm updates 2023-08-23 13:47:59 +02:00
Mattias Granlund
7b569b0e93 Fix broken eslint in ci
- it needed svelte-kit sync to pickup the generated tsconfig.json
2023-08-17 20:20:38 +01:00
Mattias Granlund
e7cd56ddb5 Manually update eslint related npm packages 2023-08-17 10:26:32 +01:00
Mattias Granlund
85866306aa pnpm update 2023-08-17 10:26:32 +01:00
Mattias Granlund
9a1f707c39 Make https explicit for github hosted packages
This should remove any ambiguity for related tools.
2023-08-17 10:26:32 +01:00
Mattias Granlund
72ff39a106 Hopefully fix dependabot for typescript
When upgrading to pnpm 8 it seems packages with the protocol
`github:` in packages.json are given some weird `git/` prefix
in the lockfile version.. resulting in broken CI.

I assume the difference between github: and without is the
difference between cloning over ssh vs. https. The actions
were indeed failing with Permission denied (publickey).
2023-08-17 09:00:32 +01:00
Nikita Galaiko
b688c451fb update deps 2023-08-10 08:26:59 +02:00
Nikita Galaiko
f12cf1b9e9 setup head subscription 2023-08-09 16:10:09 +02:00
Mattias Granlund
8a6314eb27 Use bundled tailwind nesting plugin
See documentation at:
https://tailwindcss.com/docs/using-with-preprocessors#nesting
2023-07-14 09:48:33 +02:00
Mattias Granlund
c2dd6f9db3 Refactor some postcss stuff
- put global files in /styles
- add postcss-nested plugin
- change runtime import for .dark enclosed classes
2023-07-13 13:57:22 +02:00
Nikita Galaiko
e871d04790 update/cleanup deps 2023-07-13 11:23:41 +02:00
Nikita Galaiko
5bce726477 upgrade svelte-related libs 2023-07-13 09:27:40 +02:00
Nikita Galaiko
82939782eb bump svelte-loadable-store 2023-07-11 15:17:49 +02:00
Mattias Granlund
2b19031a36 Replace svelte-dnd-action with native drag & drop
This commit is a bit of a relief, we now have less than 1/10th the
amount of code powering drag & drop.

Future work includes:
- extracting commonalities into a Svelte action
- applying css to new drop zone without using sibling selector
- styling
2023-07-07 15:58:12 +03:00
Mattias Granlund
2e6a67c0bc Revert "Add syntax highlighting for hunks"
- fixes NaN

This reverts commit ac3aa9dd30.
2023-07-03 19:48:01 +03:00
Mattias Granlund
ac3aa9dd30 Add syntax highlighting for hunks 2023-07-03 02:04:28 +03:00
Kiril Videlov
635486f815 use lscache library for local storage caching
its nice cause it has eviction strategies. updated the hunk summaries to
use this, with a 24 hour time to live, so that we dont leak
2023-07-01 21:45:45 +02:00
Mattias Granlund
5b8f4fc29b Copy in gravatar code 2023-07-01 22:10:25 +03:00
Scott Chacon
e4e902eeac try again 2023-07-01 22:10:25 +03:00
Scott Chacon
c63988e736 omg, pnpm 2023-07-01 22:10:25 +03:00
Scott Chacon
4b7d6739cc gravatars 2023-07-01 22:10:25 +03:00
Mattias Granlund
0bafe62390 Bump dnd library version to fix bug 2023-06-29 19:32:32 +03:00
Kiril Videlov
0ad618159b configure plugin to detect TS dep cycles 2023-06-27 14:46:39 +02:00
Kiril Videlov
5cdad0beea a little bit of a typescript testing setup 2023-06-22 14:42:44 +02:00
Mattias Granlund
4fa1f66976 Make drag & drop behave even better 2023-06-19 16:46:09 +01:00
Mattias Granlund
daf296c647 Create new branches through dedicated dropzone 2023-06-17 16:11:37 +01:00
Nikita Galaiko
38fb0132ec update dependencies 2023-06-16 09:29:26 +02:00
Mattias Granlund
219f1af61c Update dnd package to fix shadowing 2023-06-14 22:52:28 +01:00
Mattias Granlund
d0c2707cae Simplify drag & drop
- use classes for hunks, files, etc
- add class-transformer dependency
- simplify helper functions for readable code
2023-06-14 12:50:31 +01:00
Mattias Granlund
dbcb391252 Update drag & drop to match forked library
- svelte-dnd-action now installed from gitbutlerapp fork
- dnd zones can have multiple types and require receivable types
- dropped items that do not match zone have to be wrapped in handlers
2023-06-12 15:41:50 +02:00
Kiril Videlov
02e81b71dd first stab at virtual branch UI 2023-06-06 15:12:50 +02:00
Nikita Galaiko
cbd8046400 stop using old stores in the player 2023-05-30 16:30:43 +02:00
Nikita Galaiko
60bd88ec21 use mm-jsr for the slider 2023-05-30 14:37:42 +02:00
Kiril Videlov
737f73c834 add markdown lib 2023-05-28 00:28:04 +02:00
Kiril Videlov
4a77e377c6 some markdown for chat messages 2023-05-28 00:28:04 +02:00
Nikita Galaiko
adf1428b40 bump loadable store 2023-05-25 09:06:55 +02:00
Nikita Galaiko
e3e009b609 handle loadable error states 2023-05-24 20:29:29 +02:00
Nikita Galaiko
8ded81f418 update eslint config 2023-05-24 11:07:05 +02:00
Nikita Galaiko
ef49fcbcdc fix player sessions list 2023-05-23 16:46:42 +02:00
Nikita Galaiko
b17f704efb improve click outside detection for modals 2023-05-23 10:16:18 +02:00
Nikita Galaiko
f8bb9741e4 minor stores fix 2023-05-22 20:26:53 +02:00
Nikita Galaiko
beca54115b display bookmark status in the sessions list 2023-05-22 16:56:10 +02:00
Nikita Galaiko
1cde5b1949 update eslint-typescript 2023-05-22 16:56:10 +02:00
Nikita Galaiko
9172b0a4c6 pnpm install 2023-05-22 16:56:10 +02:00
Nikita Galaiko
e2781591c1 bump deps 2023-05-16 08:20:07 +02:00
Nikita Galaiko
8d81e45f8b bump tauri 2023-05-12 12:48:07 +02:00
Nikita Galaiko
cdabd1ec5e add linter for stores 2023-05-12 12:34:31 +02:00
Nikita Galaiko
03171d648e bump typescript 2023-05-11 08:22:28 +02:00
Nikita Galaiko
0b977613b1 add link project modal 2023-05-10 14:29:13 +02:00
Nikita Galaiko
1c62a7976f rm react from deps 2023-05-09 10:03:00 +02:00
Nikita Galaiko
eef6c6374e replace storybook with histoire 2023-05-09 09:57:59 +02:00
Nikita Galaiko
92ec2a52a2 Revert "tauri 1.3"
This reverts commit 7a0b25e9dc.
2023-05-05 09:59:49 +02:00
Nikita Galaiko
7a0b25e9dc tauri 1.3 2023-05-04 10:22:41 +02:00
Nikita Galaiko
25b44d7df6 introdue app-wide event bus 2023-04-27 08:54:29 +02:00
Nikita Galaiko
7fba6269fb update deps 2023-04-25 14:28:02 +02:00
Nikita Galaiko
a06c234e0c better sentry setup 2023-04-21 16:10:06 +02:00
Nikita Galaiko
9b2ea25a7a cleanup terminal 2023-04-06 11:17:09 +02:00
Nikita Galaiko
ea09ccd2d5 rm unused deps 2023-04-05 14:58:58 +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
Nikita Galaiko
581728ee0f use svelte templates for storybook 2023-03-31 14:35:14 +02:00
Nikita Galaiko
57c1571be4 update some versions 2023-03-31 12:13:03 +02:00
Kiril Videlov
f948f0d24f implement a tooltip which always floats correctly 2023-03-29 17:18:02 +02:00
Kiril Videlov
d8b044cf3b add storybook again 2023-03-27 17:31:27 +02:00
Kiril Videlov
14ced0d544 Revert "add Storybook dev dependency"
This reverts commit 615f0092a6.
2023-03-27 17:25:19 +02:00
Kiril Videlov
615f0092a6 add Storybook dev dependency 2023-03-27 17:09:32 +02:00
Nikita Galaiko
47fb378496
highlight rust 2023-03-17 12:47:55 +01:00
Kiril Videlov
bdcc39c494 cmdk 2023-03-16 16:18:40 +01:00
Nikita Galaiko
0e8ff81b6b
thanks, google 2023-03-16 13:21:15 +01:00
Nikita Galaiko
380f606839 replace codemirror with diff2html 2023-03-15 15:37:35 +01:00
Nikita Galaiko
31d04024cd
cherry-pick used icons from @tabler 2023-03-14 10:13:51 +01:00
Kiril Videlov
626d3bf755 🔨 Refactor search page to improve recordings, completions, and tests
- Update packages and add new features to the project search page
- Add 1000ms delay to search query
- Add functions to apply deltas to a text string and diff a paragraph with a query
- Add a code viewer with syntax highlighting for search results

[pnpm-lock.yaml]
- Add `diff` package (version 5.1.0)
- Update `date-fns` to version 2.29.3
- Update `@typescript-eslint/parser` to version 5.45.0
- Update `autoprefixer` to version 10.4.7
- Update `eslint` to version 8.28.0
- Update `eslint-config-prettier` to version
[package.json]
- Add `diff` package to `package.json`
[src/routes/projects/[projectId]/search/+page.svelte]
- Add 1000ms delay to search query
- Add a function to apply deltas to a text string
- Add a function to diff a paragraph with a query
- Add a timestamp to the file path in the search results
- Add a span to the file path with the date of the delta
- Add a code viewer with highlighting for the search results
- Add a pre tag with highlighting for the search results
2023-03-08 15:14:56 +01:00
Nikita Galaiko
e49e3433ed
setup prettier-plugin-tailwindcss 2023-03-07 11:52:18 +01:00
Nikita Galaiko
c6782190fe
optimize text rendering 2023-03-01 16:20:17 +01:00
Nikita Galaiko
29f171d6b8
syntax highlight for code viewer 2023-02-28 16:39:09 +01:00
Nikita Galaiko
03bb8bdf9a
migrate to a better icons library 2023-02-27 15:04:39 +01:00
Nikita Galaiko
afa242535c
drop mm-jsr 2023-02-27 13:19:22 +01:00
Kiril Videlov
d9dc79a4b4 Found this nice way of doing async derived stores 2023-02-24 21:46:09 +01:00
Nikita Galaiko
d80c96ce80
sort out lint/format setup 2023-02-24 10:46:41 +01:00
Nikita Galaiko
b4f13c9caa connect update user api 2023-02-24 09:36:08 +01:00
Kiril Videlov
c162567b6e Use same font family and sizing as Linear 2023-02-23 13:26:33 +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
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
Kiril Videlov
3c08aef077 timeline things 2023-02-22 00:39:04 +01:00
Nikita Galaiko
0ce6b3221f
add request id 2023-02-21 12:02:17 +01:00
Kiril Videlov
f92a2370bd Add date-fns for better date calculations
- Add date-fns package to project
- Update dependencies in pnpm-lock.yaml
- Replace manual date calculations with date-fns functions
- Add functions to Week class for getting the next/previous week and the nth day of the week

[pnpm-lock.yaml]
- Add `date-fns` dependency to `pnpm-lock.yaml`
- Update `@codemirror/state`, `@codemirror/view`, `@tauri-apps/api`, `idb-keyval`, `mm-jsr`, and `seti-icons` dependencies in `pnpm-lock.yaml`
- Add `date-fns` package to `pnpm-lock.yaml`
[src/lib/week.ts]
- Replace manual date calculations with `date-fns` functions
- Make `Week.from` use `weekStartsOn` to set the start of the week
- Add `Week.next`, `Week.previous` and `Week.nThDay` functions
[package.json]
- Add date-fns package
2023-02-20 12:34:07 +01:00
Scott Chacon
f093da0eb5 add seti icons, simplify file names, make them fit 2023-02-18 15:06:04 +01:00
Nikita Galaiko
de0dd25c90
project settings page 2023-02-16 12:16:24 +01:00
Kiril Videlov
692297ed8e Update CodeViewer to use MergeView
- Upgrade CodeViewer component to use MergeView
- Add collapseUnchanged option to MergeView
- Update @codemirror/state and @codemirror/view to latest version
- Add @codemirror/merge to dependencies and packages list

[package.json]
- Add @codemirror/merge dependency to package.json
[src/routes/projects/[projectId]/sessions/[sessionId]/+page.svelte]
- Change the `CodeViewer` value from `contentWithDeltasApplied` to `contentAtSessionStart` and `newValue` to `contentWithDeltasApplied`
[src/routes/projects/[projectId]/sessions/[sessionId]/+page.ts]
- Remove `console.log` line in `src/routes/projects/[projectId]/sessions/[sessionId]/+page.ts`
- Change type of `files` from `Record<string, string>` to `any`
[src/lib/components/CodeViewer.svelte]
- Change the code viewer from an EditorView to a MergeView
- Add a newValue prop to the CodeViewer component
- Update the update function to use the new MergeView
- Add collapseUnchanged option to the MergeView
- Remove unused code related to coloring the last edit
[pnpm-lock.yaml]
- Add `@codemirror/merge` to the dependencies and specifiers
- Update `@codemirror/state` to version `6.2.0`
- Update `@codemirror/view` to version `6.7.3`
- Add `@codemirror/merge` to the packages list with the specified resolution and dependencies
2023-02-14 18:33:55 +01:00
Kiril Videlov
fbb7a93564 add some linting config 2023-02-12 21:14:41 +01:00
Nikita Galaiko
66d526acd4
connect ui to rust crdts 2023-02-07 14:19:29 +01:00
Kiril Videlov
f28a75ce29 adds nav buttons 2023-02-06 12:57:13 +01:00
Kiril Videlov
68d53e8d35 visualize code in a viewer 2023-02-04 23:08:20 +01:00
Nikita Galaiko
bf04ed9e76
setup logger 2023-02-03 14:28:57 +01:00
Nikita Galaiko
76d3b31054
project page 2023-02-03 09:12:57 +01:00
Nikita Galaiko
33904f6533
simple timeline 2023-02-01 15:10:22 +01:00
Nikita Galaiko
d1adefafd0
crdt doc impl 2023-02-01 10:04:03 +01:00
Nikita Galaiko
6c6dab0872
better types 2023-01-31 16:33:32 +01:00
Nikita Galaiko
9aa96f488f
simple tauri example 2023-01-31 15:55:57 +01:00