Skip to content

feat(admin): show before and after preview in bulk rename modal - #278

Merged
trtajim merged 1 commit into
mainfrom
feat/bulk-rename-preview
Sep 2, 2026
Merged

feat(admin): show before and after preview in bulk rename modal#278
trtajim merged 1 commit into
mainfrom
feat/bulk-rename-preview

Conversation

@trtajim

@trtajim trtajim commented Sep 2, 2026

Copy link
Copy Markdown
Member

Summary by CodeRabbit

  • New Features

    • Bulk rename previews now show before-and-after titles for up to five resources.
    • The preview and file count dynamically reflect the selected resources.
    • Bulk renaming cannot be submitted without entering a prefix.
  • Updates

    • The admin bulk rename dialog now receives the selected resources directly for more accurate previews and counts.

@trtajim
trtajim merged commit 01ee578 into main Sep 2, 2026
5 of 6 checks passed
@trtajim
trtajim deleted the feat/bulk-rename-preview branch September 2, 2026 06:33
@coderabbitai

coderabbitai Bot commented Sep 2, 2026

Copy link
Copy Markdown

Review Change Stack

Caution

Review failed

The pull request is closed.

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Team

Run ID: dd679e87-a4a1-4a08-9bb6-e299f551c89e

📥 Commits

Reviewing files that changed from the base of the PR and between b4119df and 02295c9.

📒 Files selected for processing (2)
  • resources/js/components/admin/BulkRenameModal.vue
  • resources/js/pages/admin/Node.vue

📝 Walkthrough

Walkthrough

The bulk rename modal now receives resource records instead of a count. It displays current and computed titles for the first five resources and derives submission guards and labels from the array length.

Changes

Bulk rename preview and submission

Layer / File(s) Summary
Resource preview data
resources/js/components/admin/BulkRenameModal.vue
The modal accepts resources and computes before-and-after title pairs for up to five resources.
Preview and submission UI
resources/js/components/admin/BulkRenameModal.vue, resources/js/pages/admin/Node.vue
Node passes the resource array. The modal renders the new preview and derives empty-state handling, counts, and the submit label from the array length. The submit button remains disabled for an empty prefix.

Estimated code review effort: 2 (Simple) | ~10 minutes

✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch feat/bulk-rename-preview

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

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.

1 participant