Skip to content

Commit

Permalink
unified PoS/PoST naming in UI
Browse files Browse the repository at this point in the history
  • Loading branch information
monikasmolarek committed Feb 7, 2024
1 parent f81f304 commit 8b6a801
Show file tree
Hide file tree
Showing 11 changed files with 20 additions and 20 deletions.
2 changes: 1 addition & 1 deletion app/components/node/PoSFooter.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ const PoSFooter = ({

return (
<Footer>
<Link onClick={navigateToExplanation} text="POST SETUP GUIDE" />
<Link onClick={navigateToExplanation} text="POS SETUP GUIDE" />
<ButtonWrap>
{skipAction && (
<Button
Expand Down
4 changes: 2 additions & 2 deletions app/components/node/PoSModifyPostData.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ const PoSModifyPostData = ({ deleteData, isDeleting }: Props) => {
<Text>Stop smeshing and delete PoS data</Text>
<Tooltip
width={200}
text="Stop Smeshing and delete the POS data files."
text="Stop Smeshing and delete the PoS data files."
/>
<Dots>.....................................................</Dots>
<Button
Expand All @@ -78,7 +78,7 @@ const PoSModifyPostData = ({ deleteData, isDeleting }: Props) => {
isPrimary={false}
/>
{showDeletePoSModal && (
<Modal header="Are you sure you want to delete your POS data?">
<Modal header="Are you sure you want to delete your PoS data?">
<StyledRow>
<Button
isDisabled={isDeleting}
Expand Down
2 changes: 1 addition & 1 deletion app/components/node/PoSSummary.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ const PoSSummary = ({
<Text>data generation max speed</Text>
<Tooltip
width={100}
text="Depending on the processor's capacity and availability. The final POS creation time might vary."
text="Depending on the processor's capacity and availability. The final PoS creation time might vary."
/>
</TooltipWrap>
<Link onClick={() => switchMode({ mode: 3 })} isDisabled={isProcessing}>
Expand Down
4 changes: 2 additions & 2 deletions app/infra/eventsService/eventsService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ import {
import {
SET_ACCOUNT_REWARDS,
SET_METADATA,
SET_POST_DATA_CREATION_STATUS,
SET_POS_DATA_CREATION_STATUS,
SET_SETUP_COMPUTE_PROVIDERS,
SET_SMESHER_CONFIG,
SET_SMESHER_SETTINGS_AND_STARTUP_STATUS,
Expand Down Expand Up @@ -380,7 +380,7 @@ ipcRenderer.on(
} = request;

store.dispatch({
type: SET_POST_DATA_CREATION_STATUS,
type: SET_POS_DATA_CREATION_STATUS,
payload: { postSetupState, numLabelsWritten },
});
}
Expand Down
4 changes: 2 additions & 2 deletions app/redux/smesher/actions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,10 @@ export const SET_SMESHER_SETTINGS_AND_STARTUP_STATUS =
export const SET_SETUP_COMPUTE_PROVIDERS = 'SET_SETUP_COMPUTE_PROVIDERS';
export const SET_SMESHER_CONFIG = 'SET_SMESHER_CONFIG';
export const STARTED_SMESHING = 'STARTED_SMESHING';
export const DELETED_POS_DATA = 'DELETED_POST_DATA';
export const DELETED_POS_DATA = 'DELETED_POS_DATA';
export const PAUSED_SMESHING = 'PAUSED_SMESHING';
export const RESUMED_SMESHING = 'RESUMED_SMESHING';
export const SET_POST_DATA_CREATION_STATUS = 'SET_POST_DATA_CREATION_STATUS';
export const SET_POS_DATA_CREATION_STATUS = 'SET_POS_DATA_CREATION_STATUS';
export const ADD_ACCOUNT_REWARD = 'ADD_ACCOUNT_REWARD';
export const SET_ACCOUNT_REWARDS = 'SET_ACCOUNT_REWARDS';
export const SET_METADATA = 'SET_METADATA';
Expand Down
4 changes: 2 additions & 2 deletions app/redux/smesher/reducer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import {
SET_SETUP_COMPUTE_PROVIDERS,
DELETED_POS_DATA,
STARTED_SMESHING,
SET_POST_DATA_CREATION_STATUS,
SET_POS_DATA_CREATION_STATUS,
SET_SMESHER_CONFIG,
PAUSED_SMESHING,
RESUMED_SMESHING,
Expand Down Expand Up @@ -134,7 +134,7 @@ const reducer = (state: SmesherState = initialState, action: CustomAction) => {
postSetupState: PostSetupState.STATE_IN_PROGRESS,
};
}
case SET_POST_DATA_CREATION_STATUS: {
case SET_POS_DATA_CREATION_STATUS: {
const {
payload: { postSetupState, numLabelsWritten },
} = action;
Expand Down
2 changes: 1 addition & 1 deletion app/screens/node/Node.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -511,7 +511,7 @@ const Node = ({ history, location }: Props) => {
onClick={handlePauseSmeshing}
text={`${
isActionButtonLoading ? 'PAUSING' : 'PAUSE'
} POST DATA GENERATION `}
} POS DATA GENERATION `}
img={pauseIcon}
isPrimary={false}
width={280}
Expand Down
8 changes: 4 additions & 4 deletions app/screens/node/NodeEventActivityRow.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ const withTime = (str: string, now: number, wait?: number) =>
const getEventErrorMessage = (event: NodeEvent) => {
switch (getEventType(event)) {
case 'initFailed':
return `PoST data initialization failed: ${event.initFailed?.error}`;
return `PoS data initialization failed: ${event.initFailed?.error}`;
default:
return `Stage "${getNodeEventStage(
event
Expand All @@ -44,11 +44,11 @@ export default (event: NodeEvent) => {
}
switch (getEventType(event)) {
case 'initStart':
return 'Started PoST data initialization';
return 'Started PoS data initialization';
case 'initComplete':
return 'Completed PoST data initialization';
return 'Completed PoS data initialization';
case 'initFailed':
return 'PoST data initialization failed';
return 'PoS data initialization failed';
case 'poetWaitRound':
return withTime(
'Waiting for PoET registration window',
Expand Down
2 changes: 1 addition & 1 deletion app/screens/node/NodeSetup.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -209,7 +209,7 @@ const NodeSetup = ({ history, location }: Props) => {
setProvider({
id: 0,
deviceType: DeviceType.DEVICE_CLASS_UNKNOWN,
model: 'No POS Provider',
model: 'No PoS Provider',
performance: 0,
});
setMode(mode + 1);
Expand Down
6 changes: 3 additions & 3 deletions app/screens/node/nodeEventUtils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,11 @@ import { smColors } from '../../vars';
export const getNodeEventStage = (event: NodeEvent) => {
switch (getEventType(event)) {
case 'initStart':
return 'PoST data initialization';
return 'PoS data initialization';
case 'initComplete':
return 'PoST data initialization complete';
return 'PoS data initialization complete';
case 'initFailed':
return 'PoST data initialization';
return 'PoS data initialization';
case 'poetWaitRound':
return 'Waiting for PoET registration';
case 'poetWaitProof':
Expand Down
2 changes: 1 addition & 1 deletion desktop/posProfiler.ts
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ export const runProfiler = (
typeof res.time_s !== 'number' ||
typeof res.speed_gib_s !== 'number'
) {
reject(new Error(`Invalid output of Pos profiler tool: ${out.stdout}`));
reject(new Error(`Invalid output of PoS profiler tool: ${out.stdout}`));
}
return resolve({
time: res.time_s,
Expand Down

0 comments on commit 8b6a801

Please sign in to comment.