Skip to content

feat: design for main panel#404

Merged
cguedes merged 7 commits into
mainfrom
370-design-for-main-panel
Aug 24, 2023
Merged

feat: design for main panel#404
cguedes merged 7 commits into
mainfrom
370-design-for-main-panel

Conversation

@sehyod

@sehyod sehyod commented Aug 23, 2023

Copy link
Copy Markdown
Collaborator

This updates the styles for the main panel, which includes the split bar and the tabs on the top.
This also updates the styles of the RefStudio editor: the menu bar and the text styles inside the editor itself

Before:
image

After:
Screenshot 2023-08-23 at 16 45 42

Closes #370

@sehyod sehyod requested a review from cguedes August 23, 2023 15:52
@codecov

codecov Bot commented Aug 23, 2023

Copy link
Copy Markdown

Codecov Report

Merging #404 (1008f99) into main (51b091f) will increase coverage by 0.22%.
Report is 2 commits behind head on main.
The diff coverage is 86.97%.

@@            Coverage Diff             @@
##             main     #404      +/-   ##
==========================================
+ Coverage   82.92%   83.15%   +0.22%     
==========================================
  Files         180      182       +2     
  Lines       10408    10588     +180     
  Branches     1114     1128      +14     
==========================================
+ Hits         8631     8804     +173     
- Misses       1762     1768       +6     
- Partials       15       16       +1     
Files Changed Coverage Δ
src/application/components/MainPanel.tsx 0.00% <0.00%> (ø)
src/application/components/OpenEditorsTabPane.tsx 0.00% <0.00%> (ø)
src/application/sidebar/LeftSidePanelWrapper.tsx 0.00% <0.00%> (ø)
src/application/sidebar/RightSidePanelWrapper.tsx 0.00% <0.00%> (ø)
src/components/icons.tsx 0.00% <0.00%> (ø)
...otionBlock/plugins/collapsiblePlaceholderPlugin.ts 76.36% <0.00%> (ø)
src/application/components/SideBar.tsx 100.00% <100.00%> (ø)
src/components/TabCloseButton.tsx 100.00% <100.00%> (ø)
src/components/TabPane.tsx 100.00% <100.00%> (ø)
src/features/textEditor/components/MenuBar.tsx 100.00% <100.00%> (+5.91%) ⬆️
... and 3 more

... and 4 files with indirect coverage changes

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

text: editorData.title,
value: editorData.id,
isDirty: editorData.isDirty,
Icon: type === 'refstudio' ? <RefStudioEditorIcon /> : undefined,

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@sehyod can we have icons for at least PDFs? (please ask the design team)

className={cx('block', 'group-hover/tab-close-button:!block', {
'!hidden': isDirty,
})}
color="currentcolor"

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why do we need this? Where have you seen this documentation?

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We need it to be able to set the color in the parent div, in TabItem. That's just a regular CSS keyword: https://developer.mozilla.org/en-US/docs/Web/CSS/color_value#currentcolor_keyword


.tiptap-editor span.selected {
background-color: #c4dcf6;
@apply bg-[#c4dcf6];

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Another color to maybe as the design team for a name, right?

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes! I will move it to a variable and ask the design team for which color we should use

@cguedes cguedes merged commit 4473b60 into main Aug 24, 2023
@cguedes cguedes deleted the 370-design-for-main-panel branch August 24, 2023 08:40
@sehyod sehyod mentioned this pull request Sep 5, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Design for MainPanel (tabs and editor and split)

2 participants