Use i18n for board component strings, show controls in edit mode, require website before editing
- Replace raw strings with useMessages hook in BoardColumn and BoardComponentSelect - Show WebsiteControls on edit screen so users can test filters - Disable board body editing until a website is selected - Scope website select to team websites when editing a team board Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
1 parent
87bde9da1f
commit
2c7ab2b734
6 files changed
+23
-22
No files matched your search
@@ -309,6 +309,7 @@ export const labels: Record<string, string> = {
|
||||
pixel: 'label.pixel',
|
||||
pixels: 'label.pixels',
|
||||
addBoard: 'label.add-board',
|
||||
selectComponent: 'label.select-component',
|
||||
addLink: 'label.add-link',
|
||||
addPixel: 'label.add-pixel',
|
||||
maximize: 'label.maximize',
|
||||
@@ -367,6 +368,8 @@ export const messages: Record<string, string> = {
|
||||
noResultsFound: 'message.no-results-found',
|
||||
noWebsitesConfigured: 'message.no-websites-configured',
|
||||
noTeamWebsites: 'message.no-team-websites',
|
||||
selectComponentPreview: 'message.select-component-preview',
|
||||
selectWebsiteFirst: 'message.select-website-first',
|
||||
teamWebsitesInfo: 'message.team-websites-info',
|
||||
noMatchPassword: 'message.no-match-password',
|
||||
goToSettings: 'message.go-to-settings',
|
||||
|
||||
Reference in new issue
Block a user