Skip to content

Commit

Permalink
page curve added, tick and cross item changed with polaris icons, ema…
Browse files Browse the repository at this point in the history
…il replaced with account name in userMenu topbar
  • Loading branch information
amitpanwar789 committed Dec 28, 2024
1 parent a348252 commit a624d9b
Show file tree
Hide file tree
Showing 9 changed files with 27 additions and 13 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ export default function Header() {
}
}
})

function createNewAccount() {
api.saveToAccount(newAccount).then(resp => {
setShowCreateAccount(false)
Expand Down Expand Up @@ -165,7 +165,7 @@ export default function Header() {
},
]}
initials={func.initials(username)}
name={username}
name={accounts[activeAccount]}
open={isUserMenuOpen}
onToggle={toggleIsUserMenuOpen}
/>
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import React, { useState } from 'react'
function SearchField(props) {

const [searchValue, setSearchValue] = useState("")
const SearchIcon = (
const SearchFieldIcon = (
<Box>
<Icon source={SearchIcon} />
</Box>
Expand All @@ -23,7 +23,7 @@ function SearchField(props) {

return (
<TextField
prefix={SearchIcon}
prefix={SearchFieldIcon}
onChange={searchResult}
value={searchValue}
placeholder={props.placeholder}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@
}

.active {
background: #00A47C;
/* background: #00A47C; */
}

.tooltipSpan {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ function HomePage() {

return (
<Frame navigation={leftNavCollapsed? undefined:<LeftNav />} topBar={<Header />} logo={logo} >
<Box minHeight="100vh" background="bg" paddingBlockEnd={"2000"}>
<Box borderStartEndRadius="300" minHeight="100%" background="bg" paddingBlockEnd={"2000"}>
<Outlet />
</Box>
</Frame>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ const transform = {
<tr style={{background: "#FAFBFB", padding: '0px !important', borderTop: '1px solid #dde0e4'}}>
<td colSpan={'100%'} style={{padding: '0px !important'}}>
{urls.map((ele,index)=>{
const borderStyle = index < (urls.length - 1) ? {borderBlockEndWidth : 1} : {}
const borderStyle = index < (urls.length - 1) ? {borderBlockEndWidth : "025"} : {}
return (
<Box padding={"200"} paddingInlineEnd={"400"} paddingInlineStart={"300"} key={index}
borderColor="border-secondary" {...borderStyle}>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ const Settings = () => {

return (
<Frame navigation={<SettingsLeftNav />} topBar={<SettingsHeader />}>
<Box minHeight="100vh" background="bg" paddingBlockEnd={"2000"}>
<Box borderStartEndRadius="300" minHeight="100%" background="bg" paddingBlockEnd={"2000"}>
<Outlet />
</Box>
</Frame>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ const TestEditor = () => {
}
navigation={ <TestEditorFileExplorer addCustomTest={(e) => addCustomTest(e)}/> }
>
<Box background="bg" paddingInlineStart={1200}>
<Box borderStartEndRadius="300" minHeight="100%" background="bg" paddingInlineStart={1200}>
<InlineGrid columns={2}>
<YamlEditor fetchAllTests={fetchAllTests} />
<SampleApi />
Expand Down
10 changes: 6 additions & 4 deletions apps/dashboard/web/polaris_web/web/src/util/func.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@ import {
MobileIcon,
CalendarTimeIcon,
IdentityCardFilledIcon,
CheckCircleIcon,
XCircleIcon
} from "@shopify/polaris-icons";
import { saveAs } from 'file-saver'
import inventoryApi from "../apps/dashboard/pages/observe/api"
Expand All @@ -30,8 +32,6 @@ import homeFunctions from '../apps/dashboard/pages/home/module';
import {themes} from '@shopify/polaris-tokens';
import PersistStore from '../apps/main/PersistStore';

import { circle_cancel, circle_tick_minor } from "@/apps/dashboard/components/icons";

const iconsUsedMap = {
CalendarIcon,ClockIcon,AlertCircleIcon,DatabaseIcon, LockIcon, KeyIcon, ProfileIcon, PasskeyIcon,
EmailIcon, CreditCardIcon, IdentityCardIcon, LocationIcon,PhoneIcon, FileIcon, ImageIcon, BankIcon, HashtagIcon,
Expand Down Expand Up @@ -290,12 +290,14 @@ prettifyEpoch(epoch) {
case "STOPPED":
return{
tooltipContent: "Error occurred while running the test.",
icon: circle_cancel,
icon: XCircleIcon,
icon:"critical"
}
case "COMPLETED":
return {
tooltipContent: "Test has been completed.",
icon: circle_tick_minor
icon: CheckCircleIcon,
color:"success"
}
default:
return {
Expand Down

0 comments on commit a624d9b

Please sign in to comment.