-
Notifications
You must be signed in to change notification settings - Fork 0
feat: implement V2 Advanced Rehearsal Collaboration Features #158
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Closed
Closed
Changes from 1 commit
Commits
Show all changes
20 commits
Select commit
Hold shift + click to select a range
8acc846
feat: implement V1.1 metadata-only local handoff
seonghobae 2aef571
feat: implement V2 Advanced Rehearsal Collaboration Features
seonghobae 052280a
Merge branch 'develop' into feature/issue-152-collaboration
seonghobae 538a174
Address review feedback: annotations, deep links, validation, workspa…
seonghobae b4816cb
Address review feedback: file validation, audio resolution, markdown …
seonghobae aa7a10d
fix: package-lock and type dependencies
seonghobae 83c8315
Merge remote-tracking branch 'origin/develop' into feature/issue-150-…
seonghobae 37f4976
Merge remote-tracking branch 'origin/develop' into feature/issue-152-…
seonghobae adb92cb
Merge branch 'develop' into feature/issue-150-local-handoff
seonghobae 857c062
Merge branch 'develop' into feature/issue-152-collaboration
seonghobae 442084a
fix(tests): resolve failing archive import/export tests
seonghobae 1642c56
Merge PR 156 to fix typecheck dependencies
seonghobae 682bf7f
fix(desktop): support RehearsalWorkspace in App.tsx
seonghobae 4ca24df
fix(lint): resolve lint errors in PR 158
seonghobae 462c1ee
fix(deps): regenerate lockfile to fix CI
seonghobae 9f44679
fix(deps): regenerate lockfile to fix CI
seonghobae 2c17a0e
Merge branch 'develop' into feature/issue-152-collaboration
seonghobae 38cfa3c
Merge branch 'develop' into feature/issue-152-collaboration
seonghobae 22e19bb
Merge branch 'develop' into feature/issue-152-collaboration
seonghobae a688f45
Merge branch 'develop' into feature/issue-152-collaboration
seonghobae File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,25 @@ | ||
| import { Annotation } from "@bandscope/shared-types"; | ||
|
|
||
| /** | ||
| * Merges two arrays of annotations, keeping unique ones and sorting by timestamp. | ||
| * | ||
| * @param existing - The existing annotations. | ||
| * @param incoming - The incoming annotations. | ||
| * @returns The merged annotations array. | ||
| */ | ||
| export function mergeAnnotations(existing: Annotation[] = [], incoming: Annotation[] = []): Annotation[] { | ||
| const merged = [...existing]; | ||
| const existingIds = new Set(existing.map((a) => a.id)); | ||
|
|
||
| for (const ann of incoming) { | ||
| if (!existingIds.has(ann.id)) { | ||
| merged.push(ann); | ||
| existingIds.add(ann.id); | ||
| } | ||
| } | ||
|
|
||
| // Sort by timestamp to maintain log order | ||
| merged.sort((a, b) => new Date(a.timestamp).getTime() - new Date(b.timestamp).getTime()); | ||
|
coderabbitai[bot] marked this conversation as resolved.
Outdated
|
||
|
|
||
| return merged; | ||
| } | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,32 @@ | ||
| import { validateBandScopeUri } from "@bandscope/shared-types"; | ||
|
|
||
| /** | ||
| * Parsed details of a deep link | ||
| */ | ||
| export type ParsedDeepLink = { | ||
| songId: string; | ||
| sectionId: string; | ||
| }; | ||
|
|
||
| /** | ||
| * Parse a deep link URI | ||
| * | ||
| * @param uri - The URI to parse | ||
| * @returns The parsed deep link or null | ||
| */ | ||
| export function parseDeepLink(uri: string): ParsedDeepLink | null { | ||
| if (!validateBandScopeUri(uri)) { | ||
| return null; | ||
| } | ||
|
|
||
| // bandscope://song/[songId]/section/[sectionId] | ||
| const match = uri.match(/^bandscope:\/\/song\/([a-zA-Z0-9-]+)\/section\/([a-zA-Z0-9-]+)$/); | ||
| if (!match) { | ||
| return null; | ||
| } | ||
|
|
||
| return { | ||
| songId: match[1], | ||
| sectionId: match[2], | ||
| }; | ||
| } | ||
|
coderabbitai[bot] marked this conversation as resolved.
|
||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.