Use i18n for board component strings, show controls in edit mode, require website before editing
Some checks are pending
Node.js CI / build (push) Waiting to run

- 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:
Mike Cao 2026-02-09 02:46:30 -08:00
parent 87bde9da1f
commit 2c7ab2b734
6 changed files with 23 additions and 22 deletions

View file

@ -103,6 +103,8 @@ export function BoardBody() {
});
};
const websiteId = board?.parameters?.websiteId;
const canEdit = editing && !!websiteId;
const rows = board?.parameters?.rows ?? [];
const minHeight = (rows?.length || 1) * MAX_ROW_HEIGHT + BUTTON_ROW_HEIGHT;
@ -121,7 +123,7 @@ export function BoardBody() {
rowId={row.id}
rowIndex={index}
rowCount={rows?.length}
editing={editing}
editing={canEdit}
onRemove={handleRemoveRow}
onMoveUp={handleMoveRowUp}
onMoveDown={handleMoveRowDown}
@ -131,7 +133,7 @@ export function BoardBody() {
{index < rows?.length - 1 && <Separator />}
</Fragment>
))}
{editing && (
{canEdit && (
<Panel minSize={BUTTON_ROW_HEIGHT}>
<Row padding="3">
<TooltipTrigger delay={0}>