refactor(object-storage): rename folder and files following new naming conventions#22304
Open
pierre-pelloquin wants to merge 1 commit intodevelopfrom
Open
Conversation
There was a problem hiding this comment.
Pull request overview
This pull request implements a comprehensive refactoring to standardize folder and file naming conventions across the pci-object-storage application. The changes align with modern React/TypeScript conventions by adopting consistent file suffixes (.component.tsx, .modal.tsx, .page.tsx, .hook.tsx), converting function declarations to arrow functions with named exports, and reorganizing folder structures to use bracket notation for dynamic routes (e.g., [region], [s3Name]).
Changes:
- Standardized file naming with appropriate suffixes (
.component.tsx,.modal.tsx,.page.tsx,.hook.tsx,.constants.ts) - Converted function declarations to arrow functions with consistent export patterns
- Reorganized folder structure from flat naming to bracket notation for dynamic routes
- Updated all import paths to reflect new file locations and naming
- Removed trailing whitespace in multiple files
Reviewed changes
Copilot reviewed 137 out of 221 changed files in this pull request and generated no comments.
Show a summary per file
| File | Description |
|---|---|
| vitest.config.js | Removed trailing empty lines |
| Various component files | Converted function declarations to arrow functions with named exports |
| Route-based pages | Renamed from generic names (Create.page, Dashboard.page) to descriptive names (CreateObjectStorage.page, S3Dashboard.page) |
| Hook files | Renamed to use .hook.tsx suffix consistently |
| Test files | Updated import paths to match renamed source files |
| Context files | Updated paths from old folder structure to new bracket notation |
| Storage-related files | Moved from storage/ to organized structure under s3/[region]/[s3Name]/ and swift/[swiftId]/ |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
…g conventions ref: #DATATR-2925 Signed-off-by: Pierre Pelloquin <pierre.pelloquin@ovhcloud.com>
007cae0 to
d671a2f
Compare
Emiri-i
approved these changes
Feb 16, 2026
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.
ref: #DATATR-2925
Description
Ticket Reference: #...
Additional Information