Skip to content

Commit

Permalink
larger form sizes
Browse files Browse the repository at this point in the history
  • Loading branch information
doralchan committed Sep 25, 2024
1 parent 996fe57 commit cf0fb5f
Show file tree
Hide file tree
Showing 8 changed files with 7 additions and 18 deletions.
2 changes: 1 addition & 1 deletion static/app/views/explore/content.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ const FilterActions = styled('div')`
const Body = styled(Layout.Body)`
@media (min-width: ${p => p.theme.breakpoints.large}) {
display: grid;
grid-template-columns: 275px minmax(100px, auto);
grid-template-columns: 300px minmax(100px, auto);
align-content: start;
gap: ${p => (!p.noRowGap ? `${space(3)}` : `0 ${space(3)}`)};
}
Expand Down
2 changes: 1 addition & 1 deletion static/app/views/explore/toolbar/index.spec.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ describe('ExploreToolbar', function () {
await userEvent.click(within(groupBy).getByRole('button', {name: 'None'}));
await userEvent.click(within(groupBy).getByRole('option', {name: 'release'}));
expect(groupBys).toEqual(['release']);
await userEvent.click(within(groupBy).getByRole('button', {name: 'Add Group By'}));
await userEvent.click(within(groupBy).getByRole('button', {name: 'Add Group'}));
expect(groupBys).toEqual(['release', '']);

await userEvent.click(samples);
Expand Down
4 changes: 2 additions & 2 deletions static/app/views/explore/toolbar/styles.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,6 @@ export const ToolbarFooter = styled('div')<{disabled?: boolean}>`
export const ToolbarRow = styled('div')`
display: flex;
flex-direction: row;
gap: ${space(0.5)};
margin: ${space(0.5)} 0;
gap: ${space(1)};
margin: ${space(1)} 0;
`;
7 changes: 1 addition & 6 deletions static/app/views/explore/toolbar/toolbarDataset.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,7 @@ export function ToolbarDataset({dataset, setDataset}: ToolbarDatasetProps) {
<ToolbarHeader>
<ToolbarLabel>{t('Dataset')}</ToolbarLabel>
</ToolbarHeader>
<SegmentedControl
size="sm"
aria-label={t('Dataset')}
value={dataset}
onChange={setDataset}
>
<SegmentedControl aria-label={t('Dataset')} value={dataset} onChange={setDataset}>
<SegmentedControl.Item key={DiscoverDatasets.SPANS_EAP}>
{t('EAP Spans')}
</SegmentedControl.Item>
Expand Down
1 change: 0 additions & 1 deletion static/app/views/explore/toolbar/toolbarGroupBy.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,6 @@ export function ToolbarGroupBy({disabled}: ToolbarGroupByProps) {
<CompactSelect
searchable
disabled={disabled}
size="sm"
options={options}
value={groupBy}
onChange={newGroupBy => setGroupBy(index, newGroupBy)}
Expand Down
1 change: 0 additions & 1 deletion static/app/views/explore/toolbar/toolbarResults.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ export function ToolbarResults({resultMode, setResultMode}: ToolbarResultsProps)
<ToolbarLabel>{t('Results')}</ToolbarLabel>
</ToolbarHeader>
<SegmentedControl
size="sm"
aria-label={t('Result Mode')}
value={resultMode}
onChange={setResultMode}
Expand Down
6 changes: 2 additions & 4 deletions static/app/views/explore/toolbar/toolbarSortBy.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -41,11 +41,11 @@ export function ToolbarSortBy({fields, setSorts, sorts}: ToolbarSortByProps) {
const kindOptions: SelectOption<Sort['kind']>[] = useMemo(() => {
return [
{
label: 'Desc',
label: 'desc',
value: 'desc',
},
{
label: 'Asc',
label: 'asc',
value: 'asc',
},
];
Expand Down Expand Up @@ -73,13 +73,11 @@ export function ToolbarSortBy({fields, setSorts, sorts}: ToolbarSortByProps) {
<div>
<ToolbarRow>
<CompactSelect
size="sm"
options={fieldOptions}
value={sorts[0]?.field}
onChange={newSortField => setSortField(0, newSortField)}
/>
<CompactSelect
size="sm"
options={kindOptions}
value={sorts[0]?.kind}
onChange={newSortKind => setSortKind(0, newSortKind)}
Expand Down
2 changes: 0 additions & 2 deletions static/app/views/explore/toolbar/toolbarVisualize.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -136,13 +136,11 @@ export function ToolbarVisualize({}: ToolbarVisualizeProps) {
{parsedVisualizeGroup.map((parsedVisualize, index) => (
<ToolbarRow key={index}>
<CompactSelect
size="sm"
options={fieldOptions}
value={parsedVisualize.arguments[0]}
onChange={newField => setChartField(group, index, newField)}
/>
<CompactSelect
size="sm"
options={aggregateOptions}
value={parsedVisualize?.name}
onChange={newAggregate =>
Expand Down

0 comments on commit cf0fb5f

Please sign in to comment.