Commit Graph

603 Commits

Author SHA1 Message Date
William Casarin
d729823f33 Merge 'Update account_login_view.rs' #366
alltheseas (1):
      Update account_login_view.rs
2024-10-22 10:35:57 -07:00
alltheseas
f83eb38342 Update account_login_view.rs
Changed "enter your key here" to include specific reference to npub, nsec, and nip05 as to show login options to the notedeck customer.

New text: "Enter your public key (npub, nip05), or private key (nsec) here..."
2024-10-18 12:11:32 -05:00
William Casarin
a2a8a9f66d cargo fmt
Signed-off-by: William Casarin <jb55@jb55.com>
2024-10-16 08:52:43 -07:00
William Casarin
b803693449 Merge Profile View
Noticing a small delay when clicking on macos with large nostrdb, still
need to investigate

kernelkind (14):
      init profile routing
      add profile preview and implement scrolling
      profile unsub
      click on thread pfp
      consolidate timelineTab ui to TimelineTabView
      generify Threads
      profile struct
      integrate profile view caching
      proper timelineTabs
      revert timeline no_scroll stuff
      fix unnecessary copy every frame
      reword comments and logs thread -> NotesHolder
      rename TimelineResponse -> ColumnNoteResponse
      NoteActionResponse for note preview pfp clicking
2024-10-16 08:42:18 -07:00
William Casarin
1a490eb069 use stable toolchain
this was overriding rustup to use nightly

Signed-off-by: William Casarin <jb55@jb55.com>
2024-10-16 08:41:31 -07:00
kernelkind
eedb4e1297 NoteActionResponse for note preview pfp clicking
Signed-off-by: kernelkind <kernelkind@gmail.com>
2024-10-15 13:21:39 -04:00
kernelkind
2d7da83872 rename TimelineResponse -> ColumnNoteResponse
Signed-off-by: kernelkind <kernelkind@gmail.com>
2024-10-15 12:35:06 -04:00
kernelkind
54d49f0110 reword comments and logs thread -> NotesHolder
Signed-off-by: kernelkind <kernelkind@gmail.com>
2024-10-15 11:54:05 -04:00
kernelkind
0a077ae797 fix unnecessary copy every frame
Signed-off-by: kernelkind <kernelkind@gmail.com>
2024-10-15 11:45:13 -04:00
kernelkind
e5ba897ce6 revert timeline no_scroll stuff
Signed-off-by: kernelkind <kernelkind@gmail.com>
2024-10-15 11:22:48 -04:00
kernelkind
dcb6620ddd proper timelineTabs
Signed-off-by: kernelkind <kernelkind@gmail.com>
2024-10-14 17:39:10 -04:00
kernelkind
6ffe33e924 integrate profile view caching
Signed-off-by: kernelkind <kernelkind@gmail.com>
2024-10-14 13:29:36 -04:00
kernelkind
705a4bdf05 profile struct
Signed-off-by: kernelkind <kernelkind@gmail.com>
2024-10-14 13:29:36 -04:00
kernelkind
780fba3093 generify Threads
Signed-off-by: kernelkind <kernelkind@gmail.com>
2024-10-14 13:29:31 -04:00
kernelkind
d11d8aa9d0 consolidate timelineTab ui to TimelineTabView
Signed-off-by: kernelkind <kernelkind@gmail.com>
2024-10-14 10:58:43 -04:00
kernelkind
34aef30fed click on thread pfp
Signed-off-by: kernelkind <kernelkind@gmail.com>
2024-10-11 17:58:29 -04:00
kernelkind
8e6a982843 profile unsub
Signed-off-by: kernelkind <kernelkind@gmail.com>
2024-10-11 17:47:03 -04:00
kernelkind
ce3f24abcd add profile preview and implement scrolling
Signed-off-by: kernelkind <kernelkind@gmail.com>
2024-10-11 16:37:17 -04:00
kernelkind
44948fdff0 init profile routing
Signed-off-by: kernelkind <kernelkind@gmail.com>
2024-10-11 16:37:17 -04:00
William Casarin
54dcbd724b Merge 'column titlebar #345'
William Casarin (2):
      update to use upstream egui-nav branch

kernelkind (13):
      basic add column impl
      remote sub new timeline
      add more add column options
      animate add column options
      push column picker immediately to new column
      move get first router to Columns
      tmp use kernelkind egui-nav
      title bar
      unsubscribe timeline on deletion
      fix deck author bug & rename titles
      tmp: kernelkind/egui-nav
      updated back arrow
      tmp: kernelkind/egui-nav
2024-10-11 12:56:15 +02:00
William Casarin
f7c6e2774e update to use upstream egui-nav branch
Signed-off-by: William Casarin <jb55@jb55.com>
2024-10-11 12:54:49 +02:00
kernelkind
b1549a52c7 tmp: kernelkind/egui-nav
Signed-off-by: kernelkind <kernelkind@gmail.com>
2024-10-08 21:43:31 -04:00
kernelkind
a2fc754e1b updated back arrow
Signed-off-by: kernelkind <kernelkind@gmail.com>
2024-10-08 21:38:43 -04:00
kernelkind
983640b85a tmp: kernelkind/egui-nav
Signed-off-by: kernelkind <kernelkind@gmail.com>
2024-10-08 21:37:16 -04:00
kernelkind
ee5aa32469 fix deck author bug & rename titles
Signed-off-by: kernelkind <kernelkind@gmail.com>
2024-10-08 19:10:25 -04:00
kernelkind
0d994172a0 unsubscribe timeline on deletion
Signed-off-by: kernelkind <kernelkind@gmail.com>
2024-10-07 14:02:37 -04:00
kernelkind
1bf9d5d934 title bar
add title bar to columns with title specific to the column type.
also add column deletion button

Signed-off-by: kernelkind <kernelkind@gmail.com>
2024-10-07 14:02:33 -04:00
kernelkind
0a22210c89 tmp use kernelkind egui-nav
Signed-off-by: kernelkind <kernelkind@gmail.com>
2024-10-07 12:42:51 -04:00
kernelkind
45223dbc25 move get first router to Columns
Signed-off-by: kernelkind <kernelkind@gmail.com>
2024-10-01 12:59:00 -04:00
kernelkind
57069ff7c0 push column picker immediately to new column
instead of pushing to temporary column first

Signed-off-by: kernelkind <kernelkind@gmail.com>
2024-10-01 12:51:14 -04:00
kernelkind
ebe4bf3046 animate add column options
Signed-off-by: kernelkind <kernelkind@gmail.com>
2024-09-30 10:27:48 -04:00
kernelkind
80be174f41 add more add column options
Signed-off-by: kernelkind <kernelkind@gmail.com>
2024-09-30 10:27:48 -04:00
kernelkind
e2dd1b3298 remote sub new timeline
Signed-off-by: kernelkind <kernelkind@gmail.com>
2024-09-30 10:27:48 -04:00
kernelkind
731f206424 basic add column impl
Signed-off-by: kernelkind <kernelkind@gmail.com>
2024-09-30 10:27:48 -04:00
Ken Sedgwick
a17b2dcb17 Untangle zoom when in TextEdit
Addresses ([#140])

I don't think the zoom code in handle_key_events was necessary because
gui zooming already appears to be handled by egui::gui_zoom.

Description of keybindings:
59d71831fd/crates/egui/src/gui_zoom.rs (L5-L26)

Zooming using the described keybindings works fine with a textedit
focused.

This PR removes the ContextAction::SetPixelsPerPoint aggressively;
maybe it should remain for other future uses?
2024-09-27 12:44:42 -07:00
William Casarin
6c94987a7a Merge multi-subscriber #287
kernelkind (2):
      multi subscriber impl
      implement multi_subscriber for Thread
2024-09-26 14:04:25 -07:00
kernelkind
7d9a23c87d route back after clicking 'post' button
Signed-off-by: kernelkind <kernelkind@gmail.com>
2024-09-26 13:51:04 -07:00
William Casarin
5ddeb0e383 remove dead code in side panel
Signed-off-by: William Casarin <jb55@jb55.com>
2024-09-26 13:49:51 -07:00
William Casarin
56af979c21 panel: rasterize damus logo
Image is set to double the pixel size to reduce artifacts.

Signed-off-by: William Casarin <jb55@jb55.com>
2024-09-26 13:43:53 -07:00
William Casarin
7fe3d5e99f Merge side panel update #327
A few merge conflicts resolved, and changes the image to svg

kernelkind (7):
      initial compose note view
      change side panel width to 64.0
      Add AnimationHelper
      update sidebar to match new design
      remove app from sidebar
      remove profile_preview_controller
      add logo to side panel

Closes: https://github.com/damus-io/notedeck/pull/327
2024-09-26 13:21:11 -07:00
kernelkind
9c572e18a3 add logo to side panel
Signed-off-by: kernelkind <kernelkind@gmail.com>
2024-09-26 13:17:21 -07:00
William Casarin
7e4bddcacb Merge hitbox improvements #319
Ken Sedgwick (6):
      debug: implemented fmt::Debug for Pubkey
      debug: implemented fmt::Debug for NoteId
      hitbox: more naming cleanup
      hitbox: extend the hitbox to the full width of the container
      hitbox: handle hits on quoted notes correctly
      hitbox: cache note size instead of rect

Closes: https://github.com/damus-io/notedeck/pull/319
2024-09-26 12:54:09 -07:00
Ken Sedgwick
21298b43f5 hitbox: cache note size instead of rect 2024-09-26 12:52:12 -07:00
Ken Sedgwick
c25fde4a06 hitbox: handle hits on quoted notes correctly 2024-09-26 12:51:33 -07:00
Ken Sedgwick
5b7c9c9234 hitbox: extend the hitbox to the full width of the container 2024-09-26 12:42:57 -07:00
Ken Sedgwick
1f64350197 hitbox: more naming cleanup 2024-09-26 12:42:35 -07:00
Ken Sedgwick
35e8e536e6 debug: implemented fmt::Debug for NoteId 2024-09-26 12:42:35 -07:00
Ken Sedgwick
f00b301e88 debug: implemented fmt::Debug for Pubkey 2024-09-26 12:42:35 -07:00
William Casarin
dbb164970c remove PostActionExecutor
Just use PostAction::execute

Signed-off-by: William Casarin <jb55@jb55.com>
2024-09-26 12:41:38 -07:00
William Casarin
13d6873eb1 Merge note context menu #328
This merges kernel's note context menu with a bunch of refactorings on
top, closing #328 and #318

William Casarin (7):
      refactor: remove processs_note_selection
      refactor: make options_button a NoteOptions
      note: switch to muted menu_options_button color
      context: move note context button to its own file
      context: fix hitbox, float on far right
      context: set cursor icon on hover

kernelkind (3):
      Add 'more options' to each note
      can left click note more options button
      process 'more options' for previews
2024-09-26 12:33:56 -07:00