Skip to content

Commit

Permalink
chore(boxai-sidebar): PR fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
DanilaRubleuski committed Oct 15, 2024
1 parent 1cf3cdb commit f791408
Show file tree
Hide file tree
Showing 7 changed files with 10 additions and 16 deletions.
2 changes: 2 additions & 0 deletions i18n/en-US.properties
Original file line number Diff line number Diff line change
Expand Up @@ -360,6 +360,8 @@ be.contentSidebar.boxSignWatermarkBlockedTooltip = This action is unavailable, b
be.contentSidebar.editTask.approval.title = Modify Approval Task
# modal title for when editing an existing general task
be.contentSidebar.editTask.general.title = Modify General Task
# Default message for Box AI expand button in sidebar header
be.contentSidebarExpandBoxAI = Expand
# Label for copy action.
be.copy = Copy
# Label for create action.
Expand Down
11 changes: 0 additions & 11 deletions src/elements/content-sidebar/BoxAISidebar.scss

This file was deleted.

1 change: 0 additions & 1 deletion src/elements/content-sidebar/BoxAISidebar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ import { mark } from '../../utils/performance';

import messages from '../common/messages';
import sidebarMessages from './messages';
import './BoxAISidebar.scss';

const MARK_NAME_JS_READY: string = `${ORIGIN_BOXAI_SIDEBAR}_${EVENT_JS_READY}`;

Expand Down
4 changes: 4 additions & 0 deletions src/elements/content-sidebar/__tests__/BoxAISidebar.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,10 @@ describe('elements/content-sidebar/BoxAISidebar', () => {
render(<BoxAISidebarComponent {...defaultProps} {...props} />);
};

afterEach(() => {
jest.clearAllMocks();
});

test('should render title', () => {
renderComponent();

Expand Down
2 changes: 1 addition & 1 deletion src/elements/content-sidebar/messages.js
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ const messages = defineMessages({
description: 'modal title for when editing an existing general task',
},
expandBoxAI: {
id: 'be.expandBoxAI',
id: 'be.contentSidebarExpandBoxAI',
description: 'Default message for Box AI expand button in sidebar header',
defaultMessage: 'Expand',
},
Expand Down
4 changes: 2 additions & 2 deletions src/elements/content-sidebar/stories/BoxAISidebar.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ const mockFeatures = {
'boxai.sidebar.enabled': true,
};

export const basic = {};

export default {
title: 'Elements/ContentSidebar/BoxAISidebar',
component: ContentSidebar,
Expand All @@ -13,5 +15,3 @@ export default {
token: global.TOKEN,
},
};

export const basic = {};
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ export const BoxAIInSidebar: StoryObj<typeof BoxAISidebar> = {
},
};

export const ExpandButtonCheck: StoryObj<typeof BoxAISidebar> = {
export const BoxAIWithExpandedView: StoryObj<typeof BoxAISidebar> = {
play: async ({ canvasElement }) => {
const canvas = within(canvasElement);

Expand Down

0 comments on commit f791408

Please sign in to comment.