Compare commits
2 commits
10148644e7
...
a5838ea564
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
a5838ea564 | ||
|
|
98f45204dc |
3 changed files with 15 additions and 9 deletions
|
|
@ -6,12 +6,12 @@ verified green at the moment this file was written.
|
||||||
## Where things are
|
## Where things are
|
||||||
|
|
||||||
- Project: `/home/avi/Projects/Nostr_Keynctr`
|
- Project: `/home/avi/Projects/Nostr_Keynctr`
|
||||||
- Git repo: `master` @ `f534165` ("frontend: remove redundant Profiles sidebar
|
- Git repo: `master` @ `98f4520` ("frontend: show active-profile picture on
|
||||||
tab"). Before it: `835b0a0` (list all profiles on Home, pin dev host,
|
Compose and sidebar"). Before it: `f534165` (remove Profiles sidebar tab),
|
||||||
widen card), `5635f79` (checkpoint), `71e580f` (Trim white margins),
|
`835b0a0` (list all profiles on Home, pin dev host, widen card), `5635f79`
|
||||||
`f29d4f9` (Checkpoint 0.45 migration), `fa5ba08` (Security: upgrade nostr
|
(checkpoint), `71e580f` (Trim white margins), `f29d4f9` (Checkpoint 0.45
|
||||||
stack 0.40->0.45), `bf10ae3`, `e210f17`, `7098e75`, `e6a1efc`, `6d5063d`,
|
migration), `fa5ba08` (Security: upgrade nostr stack 0.40->0.45),
|
||||||
`1c428a9`.
|
`bf10ae3`, `e210f17`, `7098e75`, `e6a1efc`, `6d5063d`, `1c428a9`.
|
||||||
- Working tree: still DIRTY with the long-standing user changes — `concept3.svg`
|
- Working tree: still DIRTY with the long-standing user changes — `concept3.svg`
|
||||||
deleted, `KeynectrAppIconPossibility02.jpeg` untracked. These are NOT part
|
deleted, `KeynectrAppIconPossibility02.jpeg` untracked. These are NOT part
|
||||||
of the frontend commit above and remain uncommitted.
|
of the frontend commit above and remain uncommitted.
|
||||||
|
|
@ -43,6 +43,7 @@ verified green at the moment this file was written.
|
||||||
|
|
||||||
## Commits added most recently
|
## Commits added most recently
|
||||||
|
|
||||||
|
- `98f4520` frontend: show active-profile picture on Compose and sidebar
|
||||||
- `f534165` frontend: remove redundant Profiles sidebar tab
|
- `f534165` frontend: remove redundant Profiles sidebar tab
|
||||||
- `835b0a0` frontend: list all profiles on Home, pin dev host, widen profiles card
|
- `835b0a0` frontend: list all profiles on Home, pin dev host, widen profiles card
|
||||||
- `fa5ba08` Security: upgrade nostr stack 0.40->0.45 clearing 11 RustSec advisories
|
- `fa5ba08` Security: upgrade nostr stack 0.40->0.45 clearing 11 RustSec advisories
|
||||||
|
|
@ -1395,6 +1396,11 @@ A stopping point you can return to if this session is closed.
|
||||||
in `Sidebar.tsx`; the Profiles screen, route, and Manage button are all
|
in `Sidebar.tsx`; the Profiles screen, route, and Manage button are all
|
||||||
unchanged. Updated `App.test.tsx` to reach the screen via "Manage profiles"
|
unchanged. Updated `App.test.tsx` to reach the screen via "Manage profiles"
|
||||||
instead of the removed tab.
|
instead of the removed tab.
|
||||||
|
7. **Active-profile picture now shows on Compose + sidebar.** Same root cause
|
||||||
|
as the earlier Home fix: `Avatar` was rendered without the `picture` prop.
|
||||||
|
Added `picture={active.picture}` to both the write and preview avatars in
|
||||||
|
`ComposeScreen.tsx` and to the active-profile avatar in `Sidebar.tsx`. The
|
||||||
|
picture now appears consistently wherever the active profile is shown.
|
||||||
|
|
||||||
### Files changed
|
### Files changed
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -54,7 +54,7 @@ export function Sidebar({ screen, onNavigate }: SidebarProps) {
|
||||||
<div className="sidebar-footer">
|
<div className="sidebar-footer">
|
||||||
{active ? (
|
{active ? (
|
||||||
<div className="sidebar-profile">
|
<div className="sidebar-profile">
|
||||||
<Avatar npub={active.npub} label={active.label} />
|
<Avatar npub={active.npub} label={active.label} picture={active.picture} />
|
||||||
<div className="sidebar-profile-meta">
|
<div className="sidebar-profile-meta">
|
||||||
<span className="sidebar-profile-name">{active.label}</span>
|
<span className="sidebar-profile-name">{active.label}</span>
|
||||||
<span className="mono" title={active.npub}>
|
<span className="mono" title={active.npub}>
|
||||||
|
|
|
||||||
|
|
@ -160,7 +160,7 @@ export function ComposeScreen() {
|
||||||
<div className="compose-profile">
|
<div className="compose-profile">
|
||||||
{active ? (
|
{active ? (
|
||||||
<>
|
<>
|
||||||
<Avatar npub={active.npub} label={active.label} />
|
<Avatar npub={active.npub} label={active.label} picture={active.picture} />
|
||||||
<div>
|
<div>
|
||||||
<span className="profile-name">{active.label}</span>
|
<span className="profile-name">{active.label}</span>
|
||||||
<code className="mono" title={active.npub}>
|
<code className="mono" title={active.npub}>
|
||||||
|
|
@ -294,7 +294,7 @@ export function ComposeScreen() {
|
||||||
<div className="compose-preview" data-testid="compose-preview">
|
<div className="compose-preview" data-testid="compose-preview">
|
||||||
<div className="compose-preview-head">
|
<div className="compose-preview-head">
|
||||||
{active ? (
|
{active ? (
|
||||||
<Avatar npub={active.npub} label={active.label} />
|
<Avatar npub={active.npub} label={active.label} picture={active.picture} />
|
||||||
) : (
|
) : (
|
||||||
<Badge tone="warning">No profile selected</Badge>
|
<Badge tone="warning">No profile selected</Badge>
|
||||||
)}
|
)}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue