Skip to content
Merged
Changes from 1 commit
Commits
Show all changes
66 commits
Select commit Hold shift + click to select a range
53c775e
refactor(bem): replace Block with cn() in Space.tsx
luarmr Oct 16, 2025
a6fe3fe
refactor(bem): replace Block/Elem with cn() in ViewControls.tsx
luarmr Oct 16, 2025
395a69d
refactor(bem): replace Block/Elem with cn() in GroundTruth.jsx
luarmr Oct 16, 2025
c493f9e
refactor(bem): replace Block/Elem with cn() in TimeBox.tsx
luarmr Oct 16, 2025
19d4afd
refactor(bem): replace Block with cn() in TimeDurationControl.tsx
luarmr Oct 16, 2025
352b668
refactor(bem): replace Block/Elem with cn() in Pagination.tsx
luarmr Oct 16, 2025
eb64bb9
refactor(bem): replace Block with cn() in Hint.tsx
luarmr Oct 16, 2025
e26ad61
refactor(bem): replace Block/Elem with cn() in Button.tsx
luarmr Oct 16, 2025
d1ddd85
refactor(bem): replace Block/Elem with cn() in Range.tsx
luarmr Oct 16, 2025
ec7126d
refactor(bem): replace Block with cn() in Icon.jsx
luarmr Oct 16, 2025
80a76fd
refactor(bem): replace Block/Elem with cn() in AnnotationButton.tsx
luarmr Oct 16, 2025
c597898
refactor(bem): replace Block/Elem with cn() in AnnotationsCarousel.tsx
luarmr Oct 16, 2025
6ae6e14
refactor(bem): replace Block/Elem with cn() in Label.jsx
luarmr Oct 16, 2025
684a7c4
refactor(bem): replace Block with cn() in Menu.jsx
luarmr Oct 16, 2025
2bc2f83
refactor(bem): replace Block with cn() in TaxonomySearch.tsx
luarmr Oct 16, 2025
59d1e93
refactor(bem): replace Block/Elem with cn() in RelationsControls.tsx
luarmr Oct 16, 2025
d350deb
refactor(bem): replace Block/Elem with cn() in AutoAcceptToggle.jsx
luarmr Oct 16, 2025
5e51952
refactor(bem): replace Block/Elem with cn() in DynamicPreannotationsT…
luarmr Oct 16, 2025
c55bcb5
refactor(bem): replace Block with cn() in DropdownComponent.tsx
luarmr Oct 16, 2025
e57d73d
refactor(bem): replace Block/Elem with cn() in Tool.jsx
luarmr Oct 16, 2025
aefc2ac
refactor(bem): replace Block/Elem with cn() in OutlinerPanel.tsx
luarmr Oct 16, 2025
4488deb
refactor(bem): replace Block/Elem with cn() in AnnotationHistory.tsx
luarmr Oct 16, 2025
02713be
refactor(bem): replace Block/Elem with cn() in OutlinerTree.tsx
luarmr Oct 16, 2025
804f487
refactor(bem): replace Block/Elem with cn() in RegionLabel.tsx
luarmr Oct 16, 2025
cde33fc
refactor(bem): replace Block/Elem with cn() in Seeker.tsx
luarmr Oct 16, 2025
b58f9c9
refactor(bem): replace Block/Elem with cn() in Slider.tsx
luarmr Oct 16, 2025
cd835bc
refactor(bem): replace Block/Elem with cn() in ConfigControl.tsx
luarmr Oct 16, 2025
d6b4117
refactor(bem): replace Block/Elem with cn() in SpectrogramControl.tsx
luarmr Oct 16, 2025
71ebcb2
refactor(bem): replace Block/Elem with cn() in AudioControl.tsx
luarmr Oct 16, 2025
b4b364a
refactor(bem): replace Block/Elem with cn() in AudioUltra ConfigContr…
luarmr Oct 16, 2025
50f3493
refactor(bem): replace Block with cn() in FramesControl.tsx
luarmr Oct 16, 2025
009ffef
refactor(bem): replace Block/Elem with cn() in Controls.tsx
luarmr Oct 16, 2025
0162ab5
refactor(bem): replace Block/Elem with cn() in Timeline.tsx
luarmr Oct 16, 2025
a83b480
refactor(bem): replace Block/Elem with cn() in TopBar Controls.jsx
luarmr Oct 16, 2025
1d2408c
refactor(bem): replace Block/Elem with cn() in TopBar.jsx
luarmr Oct 16, 2025
95388b4
refactor(bem): replace Elem with cn() in Actions.jsx
luarmr Oct 16, 2025
490b380
refactor(bem): replace Block/Elem with cn() in Annotations.jsx
luarmr Oct 16, 2025
51bf772
refactor(bem): replace Block/Elem with cn() in CurrentTask.jsx
luarmr Oct 16, 2025
43df286
refactor(bem): replace Block with cn() in HistoryActions.jsx
luarmr Oct 16, 2025
505d22f
refactor(bem): replace Block/Elem with cn() in Toolbar.jsx
luarmr Oct 16, 2025
e6fc9ed
refactor(bem): replace Block/Elem with cn() in PanelBase.tsx
luarmr Oct 16, 2025
cc1c746
refactor(bem): replace Block/Elem with cn() in SidePanels.tsx
luarmr Oct 16, 2025
f1ea516
refactor(bem): replace Block/Elem with cn() in Hotkey.ts
luarmr Oct 16, 2025
887e99f
refactor(bem): replace Block/Elem with cn() in FlyoutMenu.jsx
luarmr Oct 16, 2025
d34b772
refactor(bem): replace Block/Elem with cn() in Minimap.tsx
luarmr Oct 16, 2025
43ca8f5
refactor(bem): replace Block/Elem with cn() in Frames.tsx
luarmr Oct 16, 2025
7e064ca
refactor(bem): replace Block/Elem with cn() in Keypoints.tsx
luarmr Oct 16, 2025
e1deb13
refactor(bem): replace Block/Elem with cn() in Tabs.tsx
luarmr Oct 16, 2025
d6cba7c
refactor(bem): replace Block/Elem with cn() in PanelTabsBase.tsx
luarmr Oct 16, 2025
07ae70b
refactor(bem): replace Block/Elem with cn() in SideTabsPanels.tsx
luarmr Oct 16, 2025
7677baa
refactor(bem): replace Block with cn() in RegionLabels.tsx
luarmr Oct 16, 2025
fa89d86
refactor(bem): replace Block/Elem with cn() in RegionDetails.tsx
luarmr Oct 16, 2025
64dcb99
refactor(bem): replace Block/Elem with cn() in Relations.tsx
luarmr Oct 16, 2025
a8dd6c8
refactor(bem): replace Block/Elem with cn() in RegionEditor.tsx
luarmr Oct 16, 2025
0137cb8
refactor(bem): replace Block/Elem with cn() in RegionItem.tsx
luarmr Oct 16, 2025
c8cd118
refactor(bem): replace Block/Elem with cn() in DetailsPanel.tsx
luarmr Oct 16, 2025
d198a40
refactor(bem): replace Block/Elem with cn() in BottomBar.jsx and Acti…
luarmr Oct 16, 2025
5cab075
refactor(bem): replace Block/Elem with cn() in BottomBar Controls.tsx
luarmr Oct 16, 2025
cde427c
refactor(bem): replace Block/Elem with cn() in BottomBar CurrentTask.jsx
luarmr Oct 16, 2025
b65a527
refactor(bem): replace Block/Elem with cn() in VideoCanvas.tsx and Im…
luarmr Oct 16, 2025
d09becc
refactor(bem): replace Block/Elem with cn() in AnnotationTabs.jsx and…
luarmr Oct 16, 2025
f01e20d
biome fixes and add explicit type="button" to Tool component
luarmr Oct 16, 2025
9d8be84
test: update bem mocks to include cn() function in panel tests
luarmr Oct 16, 2025
d5a25ca
test: update test assertions after removing Block/Elem mocks
luarmr Oct 16, 2025
2c121e1
useBem fixes
luarmr Oct 17, 2025
58e7c0f
Merge branch 'develop' into 'fb-bemything'
luarmr Oct 22, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ import {
} from "react";
import { IconPropertyAngle } from "@humansignal/icons";
import { Checkbox, Select } from "@humansignal/ui";
import { Block, Elem, useBEM } from "../../../utils/bem";
import { cn, useBEM } from "../../../utils/bem";
import { TimeDurationControl } from "../../TimeDurationControl/TimeDurationControl";
import { TimelineRegionEditor } from "./TimelineRegionEditor";
import "./RegionEditor.scss";
Expand Down Expand Up @@ -57,17 +57,17 @@ const RegionEditorComponent: FC<RegionEditorProps> = ({ region }) => {
const Component = isTimelineRegion ? TimelineRegionEditor : isAudioRegion ? AudioRegionProperties : RegionProperties;

return (
<Block name="region-editor" mod={{ disabled: region.isReadOnly() }}>
<div className={cn("region-editor").mod({ disabled: region.isReadOnly() }).toClassName()}>
<Component region={region} />
</Block>
</div>
);
};

const RegionProperties = ({ region }: RegionEditorProps) => {
const fields = region.editableFields ?? [];

return (
<Elem name="wrapper">
<div className={cn("region-editor").elem("wrapper").toClassName()}>
{region.editorEnabled &&
fields.map((field, i) => {
return (
Expand All @@ -79,7 +79,7 @@ const RegionProperties = ({ region }: RegionEditorProps) => {
/>
);
})}
</Elem>
</div>
);
};

Expand All @@ -93,7 +93,7 @@ const AudioRegionProperties = observer(({ region }: { region: any }) => {
};

return (
<Elem name="wrapper-time-control">
<div className={cn("region-editor").elem("wrapper-time-control").toClassName()}>
<TimeDurationControl
startTime={region.start}
endTime={region.end}
Expand All @@ -105,7 +105,7 @@ const AudioRegionProperties = observer(({ region }: { region: any }) => {
showLabels
showDuration
/>
</Elem>
</div>
);
});

Expand Down Expand Up @@ -182,7 +182,7 @@ const RegionProperty: FC<RegionPropertyProps> = ({ property, label, region }) =>
}, [region]);

return (
<Elem name="property" mod={{ text: isString }} tag="label">
<label className={cn("region-editor").elem("property").mod({ text: isString }).toClassName()}>
{isBoolean ? (
<Checkbox
className={block?.elem("input").toClassName()}
Expand All @@ -207,7 +207,7 @@ const RegionProperty: FC<RegionPropertyProps> = ({ property, label, region }) =>
/>
) : null}
<PropertyLabel label={label} />
</Elem>
</label>
);
};

Expand Down Expand Up @@ -309,9 +309,9 @@ const PropertyLabel: FC<{ label: string }> = ({ label }) => {
}, [label]);

return (
<Elem name="text" tag="span">
<span className={cn("region-editor").elem("text").toClassName()}>
{IconComponent ? <IconComponent /> : label}
</Elem>
</span>
);
};

Expand Down