Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

refactor: Workspace Page - Add section components #345

Merged
merged 2 commits into from
Feb 22, 2022

Conversation

bryphe-coder
Copy link
Contributor

Related #67

This adds some placeholder <WorkspaceSection /> components, so that we have a place to put things as we start to add more functionality to the Workspaces page.

Before, this was just the title:
image

Now, this PR introduces a component to host the sections:
Screen Shot 2022-02-21 at 2 19 12 PM

<WorkspaceSection title="Timeline">
<div
className={styles.vertical}
style={{ justifyContent: "center", alignItems: "center", height: "300px" }}
Copy link
Contributor Author

Choose a reason for hiding this comment

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

I used inline styles here since this was just a placeholder - figured it'd be OK since (hopefully) this goes away soon! Let me know if you'd prefer to have them factored out into useStyles block, though.

Copy link
Member

Choose a reason for hiding this comment

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

I think there's always a time and a place for inline styles, and this seems entirely reasonable to me!

@codecov
Copy link

codecov bot commented Feb 21, 2022

Codecov Report

Merging #345 (6434098) into main (8958b64) will increase coverage by 0.40%.
The diff coverage is 100.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##             main     #345      +/-   ##
==========================================
+ Coverage   67.34%   67.74%   +0.40%     
==========================================
  Files         145      147       +2     
  Lines        7918     7930      +12     
  Branches       77       77              
==========================================
+ Hits         5332     5372      +40     
+ Misses       2038     2015      -23     
+ Partials      548      543       -5     
Flag Coverage Δ
unittest-go-macos-latest 66.69% <ø> (+0.61%) ⬆️
unittest-go-ubuntu-latest 67.31% <ø> (-0.03%) ⬇️
unittest-go-windows-2022 65.93% <ø> (ø)
unittest-js 64.16% <100.00%> (+0.54%) ⬆️
Impacted Files Coverage Δ
site/components/Workspace/Workspace.tsx 100.00% <100.00%> (ø)
site/components/Workspace/WorkspaceSection.tsx 100.00% <100.00%> (ø)
site/components/Workspace/constants.ts 100.00% <100.00%> (ø)
peer/channel.go 84.79% <0.00%> (+2.33%) ⬆️
peerbroker/listen.go 84.80% <0.00%> (+2.39%) ⬆️
peer/conn.go 80.81% <0.00%> (+5.37%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 8958b64...6434098. Read the comment docs.

@bryphe-coder bryphe-coder merged commit 1789ba0 into main Feb 22, 2022
@bryphe-coder bryphe-coder deleted the bryphe/refactor/workspace-sections branch February 22, 2022 19:10
@@ -0,0 +1,3 @@
export const TitleIconSize = 48
Copy link
Contributor

Choose a reason for hiding this comment

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

Love that you're factoring out these and the section component - I imagine we'll add theming but it'll be easy to make changes from here. Something I just thought of - we're on MUI 4 in v1 but MUI 5 is out, have you considered using it for v2? I don't know how much change it requires for copy-pasted code, maybe we can talk about it at a FE V if you haven't already looked into it.

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.

None yet

3 participants