feat: add useInaliaStatus for explicit running vs static mode detection#46
Merged
Merged
Conversation
Agent-Logs-Url: https://github.com/Inalia-App/slidev-addon-inalia/sessions/7cb484f4-e7b0-47df-9173-d48ac9c54b65 Co-authored-by: Barbapapazes <45267552+Barbapapazes@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Add new composable to check talk running status
Add Apr 11, 2026
useInaliaStatus for explicit running vs static mode detection
commit: |
Contributor
There was a problem hiding this comment.
Pull request overview
Adds a small public composable to make “runtime mode” (running vs static) directly queryable, based on the existing injected talk value, and re-exports it from the package entrypoint.
Changes:
- Added
useInaliaStatus()composable returningisRunning,isStaticMode, andstatus. - Re-exported the new composable from
index.ts. - Added unit tests covering running (talk provided) vs static (no talk provided) scenarios.
Reviewed changes
Copilot reviewed 3 out of 3 changed files in this pull request and generated 1 comment.
| File | Description |
|---|---|
composables/useInaliaStatus.ts |
New composable that infers mode from presence of injected talk. |
index.ts |
Public API export for useInaliaStatus. |
tests/composables/useInaliaStatus.spec.ts |
New composable-level tests for running/static behavior. |
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Barbapapazes
requested changes
Apr 12, 2026
Barbapapazes
left a comment
Contributor
There was a problem hiding this comment.
Use comments and update tests.
useInaliaStatus for explicit running vs static mode detectionuseInaliaStatus for explicit running vs static mode detection
Agent-Logs-Url: https://github.com/Inalia-App/slidev-addon-inalia/sessions/9b10a0b6-8e23-40a6-8a11-16149df5c3e1 Co-authored-by: Barbapapazes <45267552+Barbapapazes@users.noreply.github.com>
Contributor
Author
Addressed in b80d97e. I applied the review feedback by reducing |
Copilot
AI
changed the title
feat: add
Add Apr 12, 2026
useInaliaStatus for explicit running vs static mode detectionuseInaliaStatus for explicit running vs static mode detection
Barbapapazes
approved these changes
Apr 12, 2026
useInaliaStatus for explicit running vs static mode detectionuseInaliaStatus for explicit running vs static mode detection
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Today the addon’s runtime mode is only inferable indirectly through
useInaliaTalk(), which makes simple “is this talk live or static?” checks awkward. This PR adds a dedicated composable for that distinction without changing the existing talk injection contract.New status composable
useInaliaStatus()as a small public API for reading addon mode directly.isRunningPublic API export
Behavior
talkvalue as the source of truth.Focused coverage