fix: Add forbidden symbols restrictions for the files and folders name. Add warning for the dot in the start of the files and folders name (Issues #570, #571) #562
Open
denys-kolomiitsev wants to merge 15 commits intodevelopmentfrom
Conversation
…into feat/537-add-restricted-symbols
…into feat/537-add-restricted-symbols
…into feat/537-add-restricted-symbols
Contributor
There was a problem hiding this comment.
Pull request overview
This PR enhances the File Manager UX by introducing forbidden-symbol name handling (disabled styling + restricted actions) and adding a warning indicator when a user tries to rename an item to a dot-prefixed (hidden) name, addressing Issues #570 and #571.
Changes:
- Introduces shared validation constants/regex for forbidden symbols and spaces.
- Restricts available context-menu actions and applies “invalid name” styling/tooltip behavior when names contain forbidden characters.
- Adds dot-prefix warning support during renaming, with warning icon display support in the rename input.
Reviewed changes
Copilot reviewed 17 out of 17 changed files in this pull request and generated 8 comments.
Show a summary per file
| File | Description |
|---|---|
| src/index.ts | Exports newly introduced validation constants/regex from the package entrypoint. |
| src/constants/validation.ts | Adds default forbidden-symbol / whitespace regex constants. |
| src/constants/file-grid-columns.tsx | Propagates forbidden-symbol validation into grid name rendering and invalid-name styling. |
| src/components/FolderName/FolderName.tsx | Adds invalid-name styling and custom tooltip content support. |
| src/components/FileName/FileName.tsx | Adds invalid-name styling and custom tooltip content support. |
| src/components/FileManager/utils.ts | Adds helper to build a tooltip message when forbidden symbols are detected. |
| src/components/FileManager/hooks/use-item-renaming.tsx | Adds dot-prefix “hidden item” warning message behavior during rename validation. |
| src/components/FileManager/hooks/use-grid-context-menu.tsx | Hides most context-menu actions for items with forbidden symbols in their names. |
| src/components/FileManager/hooks/use-file-manager-columns.tsx | Extends grid context with forbidden-symbol validation/tooltip fields. |
| src/components/FileManager/components/FoldersTree/FoldersTree.tsx | Threads forbidden-symbol validation into tree item name rendering and tooltip creation. |
| src/components/FileManager/components/FileManagerItemNameInput/FileManagerItemNameInput.tsx | Displays warning vs error icon based on message prefix. |
| src/components/FileManager/components/FileManagerItemName/FileManagerItemName.tsx | Applies invalid-name styling and custom tooltip content in non-editing mode. |
| src/components/FileManager/components/DialFileManagerItemSummaryCell/DialFileManagerItemSummaryCell.tsx | Threads forbidden-symbol validation into compact view item rendering. |
| src/components/FileManager/FileManagerProvider.tsx | Adds default forbidden-symbol regex and passes validation/tooltip through context. |
| src/components/FileManager/FileManagerContext.tsx | Extends context with forbidden-symbol validation/tooltip fields. |
| src/components/FileManager/FileManager.tsx | Integrates forbidden-symbol checks into grid/tree context menus and hover tooltip behavior. |
| src/components/EllipsisTooltip/EllipsisTooltip.tsx | Adds support for overriding tooltip content when truncated. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
valerydluski
previously approved these changes
Mar 20, 2026
valerydluski
approved these changes
Mar 20, 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.
Description and UI changes:
Add forbidden symbols restrictions for the files and folders name. Add warning for the dot in the start of the files and folders name.
Issues:
Checklist:
(Issue #<TICKET_ID>)(comma-separated list of issues)New Component Checklist:
e.g.
import { Button } from '@/components/Button/Buttoninstead ofimport { Button } from '../../Button/Button