Skip to content

Commit

Permalink
chore: more intrumentation support form (#20323)
Browse files Browse the repository at this point in the history
* chore: add instrumentation to support form to enable experiment on replay docs

* data attr on container
  • Loading branch information
pauldambra authored Feb 14, 2024
1 parent ed9b1ee commit f80b4d8
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -177,6 +177,7 @@ export function SidePanel(): JSX.Element | null {
activeTab === tab ? closeSidePanel() : openSidePanel(tab as SidePanelTab)
}
data-attr={`sidepanel-tab-${tab}`}
data-ph-capture-attribute-state-before-click={activeTab === tab ? 'open' : 'closed'}
active={activeTab === tab}
type="secondary"
status="alt"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ export const SidePanelSupport = (): JSX.Element => {
<>
<SidePanelPaneHeader title={title} />

<div className="overflow-y-auto">
<div className="overflow-y-auto" data-attr="side-panel-support-container">
<div className="p-3 max-w-160 w-full mx-auto">
<SupportForm />

Expand Down
1 change: 1 addition & 0 deletions frontend/src/lib/components/Support/SupportForm.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,7 @@ export function SupportForm(): JSX.Element | null {
options={Object.entries(TARGET_AREA_TO_NAME).map(([key, value]) => ({
label: value,
value: key,
'data-attr': `support-form-target-area-${key}`,
}))}
/>
</LemonField>
Expand Down

0 comments on commit f80b4d8

Please sign in to comment.