Skip to content

TT-7019 Add publish button functionality to PlanView and update ScriptureTable handling#191

Merged
gtryus merged 1 commit intodevelopfrom
feature/TT-7019-publish-button
Jan 15, 2026
Merged

TT-7019 Add publish button functionality to PlanView and update ScriptureTable handling#191
gtryus merged 1 commit intodevelopfrom
feature/TT-7019-publish-button

Conversation

@gtryus
Copy link
Contributor

@gtryus gtryus commented Jan 14, 2026

No description provided.

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR adds toggle functionality to the publish button in PlanView that shows different icons based on publish status, and updates ScriptureTable's publish button handler to toggle between published and unpublished states.

Changes:

  • Modified publish button in PlanView to display PublishOffIcon when published and PublishOnIcon when not published
  • Updated ScriptureTable's handleOpenPublishDialog to toggle publish state based on current status
  • Added comprehensive test coverage for the new publish button functionality in PlanView

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 1 comment.

File Description
src/renderer/src/components/Sheet/ScriptureTable.tsx Added toggle logic to handleOpenPublishDialog to unpublish or publish based on current state; added hidePublishing to useMemo dependencies; minor formatting improvement
src/renderer/src/components/Sheet/PlanView.tsx Added PublishOffIcon import and usePublishDestination hook; implemented conditional icon rendering based on publish status
src/renderer/src/components/Sheet/PlanView.cy.tsx Added comprehensive test coverage for publish button icon states and interactions across various scenarios

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@gtryus gtryus force-pushed the feature/TT-7019-publish-button branch 2 times, most recently from 7a51d2e to 2c939a8 Compare January 15, 2026 00:09
…ureTable components

- Refactor ConfirmPublishDialog to utilize context and improve string handling for media and plan publishing. Remove unnecessary props and integrate new selectors for better state management.
- Display dialog for publish options
- Refactor PlanView to replace handleOpenPublishDialog with handlePublish, enhancing publish functionality and integrating confirmation dialog for publishing actions.
- Update localized strings for improved user feedback during publishing.
@gtryus gtryus force-pushed the feature/TT-7019-publish-button branch from 2c939a8 to 02479f0 Compare January 15, 2026 18:13
@gtryus gtryus merged commit a352374 into develop Jan 15, 2026
2 checks passed
@gtryus gtryus deleted the feature/TT-7019-publish-button branch January 15, 2026 18:31
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.

3 participants