Skip to content

Commit 80e0dff

Browse files
Merge pull request #319 from lightningrodlabs/bug-fixes-aug-7
bug fixes
2 parents dc9d315 + c998f50 commit 80e0dff

File tree

15 files changed

+55
-105
lines changed

15 files changed

+55
-105
lines changed

electron/src/paths.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ const PREV_VER_USER_DATA_MIGRATION_FILE_PATHS = [
3131
// Acorn 6
3232
path.join(USER_DATA_PATH, `${MIGRATION_FILE_NAME_PREFIX}9`),
3333
// uncomment the below line for development testing
34+
// of migration-feature
3435
// path.join(USER_DATA_PATH, `${MIGRATION_FILE_NAME_PREFIX}${INTEGRITY_VERSION_NUMBER}`),
3536
]
3637

web/src/components/ExpandedViewMode/EVMiddleColumn/TabContent/EvDetails/EvDetails.component.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -364,6 +364,7 @@ const EvDetails: React.FC<EvDetailsProps> = ({
364364
projectId={projectId}
365365
onClose={() => setEditAssignees(false)}
366366
activeAgentPubKey={activeAgentPubKey}
367+
profilesPresent={presentMembers}
367368
people={people}
368369
outcomeActionHash={outcomeActionHash}
369370
createOutcomeMember={createOutcomeMember}

web/src/components/Footer/Footer.scss

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
.footer {
22
max-height: 48px;
3+
z-index: 3;
34
}
45

56
/* Buttom Left Panel */

web/src/components/MigrationProgress/MigrationProgress.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
position: fixed;
77
top: 0;
88
background: var(--bg-color-canvas);
9-
z-index: 10000;
9+
z-index: 2;
1010
}
1111

1212
.run-update-screen {

web/src/components/PeoplePicker/PeoplePicker.tsx

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ export type PeoplePickerProps = {
1515
isOutcomeMember: boolean
1616
outcomeMemberActionHash: ActionHashB64
1717
})[]
18+
profilesPresent: AgentPubKeyB64[]
1819
outcomeActionHash: ActionHashB64
1920
createOutcomeMember: (
2021
outcomeActionHash: ActionHashB64,
@@ -27,6 +28,7 @@ export type PeoplePickerProps = {
2728
const PeoplePicker: React.FC<PeoplePickerProps> = ({
2829
activeAgentPubKey,
2930
people,
31+
profilesPresent,
3032
outcomeActionHash,
3133
createOutcomeMember,
3234
deleteOutcomeMember,
@@ -97,6 +99,12 @@ const PeoplePicker: React.FC<PeoplePickerProps> = ({
9799
activeAgentPubKey
98100
)
99101
}
102+
// check if the profile is in the
103+
// list of present profiles
104+
// (presence being "has the project open presently")
105+
const isProfilePresent = !!profilesPresent.find(
106+
(presentprofile) => person.agentPubKey === presentprofile
107+
)
100108
return (
101109
<li
102110
key={index}
@@ -109,8 +117,9 @@ const PeoplePicker: React.FC<PeoplePickerProps> = ({
109117
avatarUrl={person.avatarUrl}
110118
imported={person.isImported}
111119
size="medium"
112-
withStatus
113120
selfAssignedStatus={person.status}
121+
disconnected={!isProfilePresent}
122+
withStatus={isProfilePresent}
114123
/>
115124
<div className="person-name-handle-wrapper">
116125
<span className="person-name">

web/src/components/ProjectSettingsModal/ProjectSettingsModal.component.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ function EditProjectForm({
117117
export default function ProjectSettingsModal({
118118
showModal,
119119
onClose,
120-
project = {} as WithActionHash<ProjectMeta>,
120+
project,
121121
updateProjectMeta,
122122
openInviteMembersModal,
123123
cellIdString,

web/src/components/UpdateModal/UpdateModal.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ const UpdateModal: React.FC<UpdateModalProps> = ({
3232
}) => {
3333
const history = useHistory()
3434
const runUpdate = () => {
35+
onClose()
3536
history.push('/run-update')
3637
}
3738

web/src/components/UpdatePromptModal/UpdatePromptModal.js

Lines changed: 0 additions & 50 deletions
This file was deleted.

web/src/components/UpdatePromptModal/UpdatePromptModal.scss

Lines changed: 0 additions & 35 deletions
This file was deleted.

web/src/hooks/useFinishMigrationChecker.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ export default function useFinishMigrationChecker(): {
2626
}
2727
setHasChecked(true)
2828
} else {
29+
// mock here if we want to test
2930
setHasChecked(true)
3031
}
3132
}

0 commit comments

Comments
 (0)