Commit Graph

29 Commits

Author SHA1 Message Date
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