-
Notifications
You must be signed in to change notification settings - Fork 103
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
PR for [UX] Migrate existing markdown content to TSX pages #1056 Turn UX Design to Implementation #1077
base: features/ux
Are you sure you want to change the base?
Conversation
@flanakin, I forget to sync with latest from ux branch. There are conflicts that need to be resolved. |
Thanks, I forgot it. I'll commit it
β¦On Sun, 27 Oct 2024 at 23:25, Orthodoxos Kipouridis < ***@***.***> wrote:
***@***.**** commented on this pull request.
------------------------------
In src/web/pages/App.tsx
<#1077 (comment)>
:
> @@ -1,27 +1,41 @@
-import './App.css';
+import { BrowserRouter as Router, Route, Routes } from 'react-router-dom';
+import HomePage from './HomePage';
+import FinOpsHubsPage from './FinOpsHubsPage';
+import FinOpsWorkbooksPage from './FinOpsWorkbooksPage';
+import GovernanceWorkbookPage from './GovernanceWorkbookPage';
+import AzureOptimizationEnginePage from './AzureOptimizationEnginePage';
+import PowerShellModulePage from './PowerShellModulePage';
+import BicepRegistryModulesPage from './BicepRegistryModulesPage';
+import OpenDataPage from './OpenDataPage';
+import {PowerBIReportsPage} from './PowerBIReportsPage';
+import CostOptimizationWorkbookPage from './CostOptimizationWorkbookPage';
+import {SamplePage} from './SamplePage';
+import FluentUIProvider from '../components/FluentUIProvider'; // Use your FluentUIProvider
Can it be that the FluentUIProvider in the components folder was not
committed? Its not in this path
β
Reply to this email directly, view it on GitHub
<#1077 (review)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/A6QJFYCJ4GI4KTGWUHUYJZTZ5VK3LAVCNFSM6AAAAABQWD2W6SVHI2DSMVQWIX3LMV43YUDVNRWFEZLROVSXG5CSMV3GSZLXHMZDGOJXGYZTSNRUGE>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Tested deployment locally
src/web/components/SideBar.tsx
Outdated
{ name: 'PowerShell', icon: <FaCode />, route: '/powershell' }, | ||
{ name: 'Bicep modules', icon: <FaDatabase />, route: '/bicep-registry' }, | ||
{ name: 'Open data', icon: <FaCloud />, route: '/open-data' }, | ||
{ name: 'Learning', icon: <FaUserGraduate />, external: true, route: 'https://learn.microsoft.com/en-us/cloud-computing/finops/toolkit/finops-toolkit-overview' }, // External link |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Make sure you don't include locales ("en-us") in links. But in this case, can we create a dedicated page for this? We don't have one today, but we can copy the learning section of the home page as a starting point. It's okay if that happens in a separate PR.
Also, we should probably put learning resources first since you should learn about FinOps before you use all the tools that automate it π€ (I know the mockup had it last. Sorry about that.)
{ name: 'Learning', icon: <FaUserGraduate />, external: true, route: 'https://learn.microsoft.com/en-us/cloud-computing/finops/toolkit/finops-toolkit-overview' }, // External link | |
{ name: 'Learning', icon: <FaUserGraduate />, external: true, route: 'https://learn.microsoft.com/cloud-computing/finops/toolkit/finops-toolkit-overview' }, // External link |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Okay, I can do that if it makes more sense. We probably need to brainstorm about this.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
When you say put learning resources first do you mean the order of things on the sidebar? So under home comes learning, then the tools?
src/web/components/TopMenuBar.tsx
Outdated
|
||
|
||
// Styled components for layout and customization | ||
const StyledCommandBar = styled.div` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I feel like putting CSS in TSX is an antipattern. What do others think?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is what I started with when converting to CSS. These are styled components. I will convert to fluent ui if we get the same look and feel as a result. Then, we need to check if we can create global styles for components and call them out. I'm more than happy to change this and get input from others
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fluent uses Griffel and the makestyles is something I am using now for the finops home page. It is not here in this first pr, but we can have a working session to go through this and then I can adapt accordingly.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
New commit contains only fluent v2 with makeStyles
|
||
export function PowerBIReportsPage() { | ||
return ( | ||
<div style={{ display: 'flex', flexDirection: 'column', height: '100vh', overflowX: 'hidden', backgroundColor: '#f4f6f8' }}> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why does this page have the TopMenuBar and SideBar explicitly called out? I didn't notice that in other pages.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It is an example of a page using the top menu bar and sidebar, the sample page has that too.
src/web/pages/SamplePage.tsx
Outdated
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do we need this file?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We don't it is just to be able to show the top menu bar and sidebar and get your comments in.
src/web/public/logo-windows.png
Outdated
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Shouldn't we put all images in an 'img' or 'images' folder? I'm not too picky on the name, but I'm assuming we'll want them organized in some way.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What I would like us to do is to define the directory structure and define how we want the files to be organized. There is examples on the internet, but I'm interested in understanding how the internal teams organize this as well
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: sidebar-collapse.png
Does Fluent UI have an equivalent? Not a huge deal.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I didn't find it, but I'll look into it.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
After searching in the catalog of fluent v2, I found it. Will do a new commit soon.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@Ivanmtta Creating this issue as a blocker for your review. Can you resolve this when you submit your review?
π οΈ Description
#1056
PR for turning figma design into implementation.
Top Menu Bar, Sidebar + Sample Page created.
Tests created
π· Screenshots
Jest test results
π Checklist
π¬ How did you test this change?
πββοΈ Do any of the following that apply?
π Did you update
docs/changelog.md
?π Did you update documentation?