Skip to content

[Content] Content item Redirects tab #3514

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

Open
wants to merge 16 commits into
base: dev
Choose a base branch
from

Conversation

finnar-bin
Copy link
Contributor

Added a redirect tabs for each content item which allows the following:

  • View all redirects that are targeting the current content item
  • Edit redirects related to the current content item
  • Delete redirects related to the current content item

Resolves #3422

Content---All-Field-Types---Zesty-io---zesty-pw---Manager.webm

@finnar-bin finnar-bin self-assigned this May 19, 2025
@finnar-bin finnar-bin added ready PR is complete and ready for deployment feature Additional functionality that should be added to Zesty labels May 19, 2025
Copy link
Contributor

@Copilot 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 a dedicated "Redirects" tab to content item edit pages, allowing users to view, edit, and delete redirects targeting the current item.

  • Introduces a new icon mapping for the redirects tab
  • Implements a Redirects view with listing and actions
  • Adds a deletion confirmation modal and end-to-end tests
  • Hooks up routing and tab entry in the item editor header

Reviewed Changes

Copilot reviewed 9 out of 9 changed files in this pull request and generated 3 comments.

Show a summary per file
File Description
src/shell/store/ui.ts Added ShuffleVariant icon and mapped it to the redirects tab
src/apps/content-editor/src/app/views/Redirects/index.tsx New Redirects view with DataGrid, edit/delete handlers
src/apps/content-editor/src/app/views/Redirects/DeleteRedirectModal.tsx Added modal to confirm and execute redirect deletion
src/apps/content-editor/src/app/views/ItemEdit/components/ItemEditHeader/index.tsx Registered the "Redirects" tab in the header tabs
src/apps/content-editor/src/app/views/ItemEdit/components/ItemEditHeader/PublishStatus.tsx Minor conditional formatting adjustment
src/apps/content-editor/src/app/views/ItemEdit/Meta/index.tsx Fixed TypeScript state initialization typing
src/apps/content-editor/src/app/views/ItemEdit/ItemEdit.js Wired up /redirects route and context provider
src/apps/content-editor/src/app/views/ItemEdit/Content/Actions/Actions.js Reformatted destructuring for clarity
cypress/e2e/content/redirects.spec.js E2E tests for creating, viewing, editing, and deleting redirects

@finnar-bin finnar-bin requested a review from geodem127 May 21, 2025 01:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature Additional functionality that should be added to Zesty ready PR is complete and ready for deployment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Content: Edit Content Item - Redirects Tab - View All Incoming Redirects
2 participants