Skip to content

914 allow for exporting audio while using stream only#941

Merged
LeviXIII merged 17 commits into
mainfrom
914-allow-for-exporting-audio-while-using-stream-only
May 28, 2026
Merged

914 allow for exporting audio while using stream only#941
LeviXIII merged 17 commits into
mainfrom
914-allow-for-exporting-audio-while-using-stream-only

Conversation

@Fikitti
Copy link
Copy Markdown
Contributor

@Fikitti Fikitti commented Apr 30, 2026

Added ability to export audio files for Stream Only. It uses similar approach as our playback feature.

Test Project: 941-allow-for-exporting-audio-while-using-stream-only

Tied to genesis-ai-dev/frontier-authentication#31

Fikitti added 2 commits April 30, 2026 19:20
Enabled audio export when users are in stream only, using the same logic as our playback feature.
…into 914-allow-for-exporting-audio-while-using-stream-only
@Fikitti Fikitti requested a review from LeviXIII April 30, 2026 17:28
@Fikitti Fikitti linked an issue Apr 30, 2026 that may be closed by this pull request
@Fikitti
Copy link
Copy Markdown
Contributor Author

Fikitti commented May 6, 2026

Resolves issues #914 #917 #918

@TimRl
Copy link
Copy Markdown
Contributor

TimRl commented May 8, 2026

/build

@github-actions
Copy link
Copy Markdown

github-actions Bot commented May 8, 2026

TimRl
TimRl previously requested changes May 8, 2026
Copy link
Copy Markdown
Contributor

@TimRl TimRl left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Batch downloading of the files should be implemented. It downloads extremely slow compared to other downloads in Codex.

@TimRl
Copy link
Copy Markdown
Contributor

TimRl commented May 11, 2026

/build

@github-actions
Copy link
Copy Markdown

TimRl added 8 commits May 20, 2026 08:05
…lers

- Added `audioAttachmentUtils.ts` for shared audio attachment handling, including functions to pick audio attachments and determine cell audio states.
- Updated `audioExporter.ts` to utilize the new audio attachment utilities, enhancing audio export functionality.
- Introduced `exportProgress.ts` to manage export progress reporting, allowing for better user feedback during export operations.
- Refactored existing export functions in `htmlExporter.ts`, `plaintextExporter.ts`, and `usfmExporter.ts` to incorporate progress reporting.
- Improved error handling and user notifications across export processes.
Remove cleanupInvalidAudioSelections so opening a cell no longer rewrites
selectedAudioId or marks the document dirty. The audio history modal now shows the user’s real selection (explicitSelectedAudioId), even when that take is missing. Export and pre-flight no longer auto-pick the latest take:
cells with recordings but no selection warn as “audio available, none selected”; cells whose selected take is gone warn as “selected audio is missing”.
Updated audio attachment utilities to deliberately ignore the `isMissing` flag during selection and resolution processes. This change ensures that user selections are preserved and not prematurely filtered out due to stale migration hints. Introduced a new utility function to clear the `isMissing` flag after successful audio resolution, enhancing the accuracy of audio state reporting in the editor and export processes.
- Extracted `formatCellDisplayLabel` and `extractCellTextSnippet` functions into a new `cellLabelUtils.ts` file for shared use between the audio exporter and export wizard's pre-flight scan.
- Updated `exportAudioAttachments` to utilize the new labeling functions, ensuring consistent human-readable identifiers for cells in audio-missing reporting.
- Improved handling of missing audio flags during export processes, aligning the user interface with the actual export state.
…d styling

- Introduced a mechanism to manage a single active export panel, preventing duplicate instances when the export command is invoked multiple times.
- Updated the styling of audio-stat counters for better visual affordance, ensuring they are clearly identifiable as interactive elements.
- Enhanced accessibility features by adding ARIA attributes to buttons in the export view.
- Updated the `restoreMissingPointers` method to differentiate between LFS pointer text and raw media bytes in the `files/` directory.
- Implemented logic to write zero-byte placeholders for raw media bytes, allowing for recovery during the next sync push.
- Added tests to ensure correct behavior for both scenarios, verifying that pointers are mirrored or stubbed appropriately based on content type.
- Improved documentation to clarify the rationale behind the changes and the handling of various audio attachment states.
@TimRl
Copy link
Copy Markdown
Contributor

TimRl commented May 25, 2026

/build

@github-actions
Copy link
Copy Markdown

@TimRl
Copy link
Copy Markdown
Contributor

TimRl commented May 26, 2026

/build

@github-actions
Copy link
Copy Markdown

- Added a new command "openCellInEditor" to facilitate navigation from the export view to specific cells in the codex editor.
- Updated the `NotebookAudioStats` interface to include detailed cell entries with `label` and `cellId` for better identification.
- Refactored related functions to handle the new data structure for audio stats cells.
- Enhanced error handling for the new navigation feature.
@TimRl
Copy link
Copy Markdown
Contributor

TimRl commented May 26, 2026

/build

@github-actions
Copy link
Copy Markdown

@LeviXIII
Copy link
Copy Markdown
Contributor

/build

@github-actions
Copy link
Copy Markdown

Copy link
Copy Markdown
Contributor

@LeviXIII LeviXIII left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In order to unblock @Fikitti from the last part of the overall ticket (#918), I'll let this one through with the minor fixes as other tickets (#996, #997, #998). This PR requires a bump in Frontier Auth which will be done in a separate bump PR.

@LeviXIII LeviXIII dismissed TimRl’s stale review May 28, 2026 15:56

He added the changes.

@LeviXIII LeviXIII merged commit 75c9adf into main May 28, 2026
3 checks passed
@LeviXIII LeviXIII deleted the 914-allow-for-exporting-audio-while-using-stream-only branch May 28, 2026 19:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Allow for exporting audio while using Stream Only

3 participants