Commit Graph

33 Commits

Author SHA1 Message Date
William Casarin
cee8ab792c algo: fix algo feed icon
temporary placeholder, but at least its less ugly

Signed-off-by: William Casarin <jb55@jb55.com>
2025-02-26 19:32:19 -08:00
jglad
030e76c046 hide nsec in account panel 2025-02-13 19:46:59 +01:00
kernelkind
1a0e232176 upload media button
Signed-off-by: kernelkind <kernelkind@gmail.com>
2025-01-24 15:43:48 -05:00
Ken Sedgwick
e436be400e add add relay GUI 2025-01-21 12:21:13 -08:00
kernelkind
1d6da3ba0d move columns ui
Signed-off-by: kernelkind <kernelkind@gmail.com>
2025-01-15 16:09:29 -05:00
kernelkind
a1520fec7e edit profile button
Signed-off-by: kernelkind <kernelkind@gmail.com>
2025-01-03 18:39:35 -05:00
kernelkind
45d07cc432 profile view improvements
Signed-off-by: kernelkind <kernelkind@gmail.com>
2025-01-03 18:39:35 -05:00
kernelkind
d7e7c75b89 use hashtag icon
closes https://github.com/damus-io/notedeck/issues/490

Signed-off-by: kernelkind <kernelkind@gmail.com>
2024-12-23 15:37:56 -05:00
kernelkind
785d102e80 show profile preview for external pubkeys
Closes: https://github.com/damus-io/notedeck/pull/589
Signed-off-by: kernelkind <kernelkind@gmail.com>
Signed-off-by: William Casarin <jb55@jb55.com>
2024-12-18 11:05:08 -08:00
William Casarin
ec755493d9 Introducing Damus Notedeck: a nostr browser
This splits notedeck into:

- notedeck
- notedeck_chrome
- notedeck_columns

The `notedeck` crate is the library that `notedeck_chrome` and
`notedeck_columns`, use. It contains common functionality related to
notedeck apps such as the NoteCache, ImageCache, etc.

The `notedeck_chrome` crate is the binary and ui chrome. It is
responsible for managing themes, user accounts, signing, data paths,
nostrdb, image caches etc. It will eventually have its own ui which has
yet to be determined.  For now it just manages the browser data, which
is passed to apps via a new struct called `AppContext`.

`notedeck_columns` is our columns app, with less responsibility now that
more things are handled by `notedeck_chrome`

There is still much work left to do before this is a proper browser:

- process isolation
- sandboxing
- etc

This is the beginning of a new era! We're just getting started.

Signed-off-by: William Casarin <jb55@jb55.com>
2024-12-12 20:08:55 -08:00
William Casarin
74c5f0c748 split notedeck into crates
This splits notedeck into crates, separating the browser chrome and
individual apps:

* notedeck: binary file, browser chrome
* notedeck_columns: our columns app
* enostr: same as before

We still need to do more work to cleanly separate the chrome apis
from the app apis. Soon I will create notedeck-notebook to see what
makes sense to be shared between the apps.

Some obvious ones that come to mind:

1. ImageCache

We will likely want to move this to the notedeck crate, as most apps
will want some kind of image cache. In web browsers, web pages do not
need to worry about this, so we will likely have to do something similar

2. Ndb

Since NdbRef is threadsafe and Ndb is an Arc<NdbRef>, it can be safely
copied to each app. This will simplify things. In the future we might
want to create an abstraction over this? Maybe each app shouldn't have
access to the same database... we assume the data in DBs are all public
anyways, but if we have unwrapped giftwraps that could be a problem.

3. RelayPool / Subscription Manager

The browser should probably maintain these. Then apps can use ken's
high level subscription manager api and not have to worry about
connection pool details

4. Accounts

Accounts and key management should be handled by the chrome. Apps should
only have a simple signer interface.

That's all for now, just something to think about!

Signed-off-by: William Casarin <jb55@jb55.com>
2024-12-11 11:24:29 -08:00
kernelkind
4cd3515a78 add decks UI to side panel
Signed-off-by: kernelkind <kernelkind@gmail.com>
2024-12-10 13:51:46 -05:00
kernelkind
b581501620 add missing light mode icons
Closes: #502
Signed-off-by: kernelkind <kernelkind@gmail.com>
2024-11-29 12:10:46 -08:00
William Casarin
409e8c2e3a icon: fix app icon
Updated to roberto's fixed icon, I also added some padding so that it
looks right int the app switcher.

Closes: https://github.com/damus-io/notedeck/pull/503
Closes: https://github.com/damus-io/notedeck/pull/496
Signed-off-by: William Casarin <jb55@jb55.com>
2024-11-29 10:08:00 -08:00
William Casarin
18eba128f6 set app icon to damus logo
Signed-off-by: William Casarin <jb55@jb55.com>
2024-11-26 13:25:30 -08:00
kernelkind
f982c65862 macos packaging
Signed-off-by: kernelkind <kernelkind@gmail.com>
2024-11-25 16:42:20 -05:00
kernelkind
309477dca4 support view
Signed-off-by: kernelkind <kernelkind@gmail.com>
2024-10-25 15:23:35 -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
80be174f41 add more add column options
Signed-off-by: kernelkind <kernelkind@gmail.com>
2024-09-30 10:27:48 -04: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
kernelkind
9c572e18a3 add logo to side panel
Signed-off-by: kernelkind <kernelkind@gmail.com>
2024-09-26 13:17:21 -07:00
kernelkind
f2993a61b7 kind 6 repost impl
Signed-off-by: kernelkind <kernelkind@gmail.com>
2024-09-17 11:04:05 -04:00
William Casarin
989f88c989 fonts: add thai support
Signed-off-by: William Casarin <jb55@jb55.com>
2024-09-03 11:45:59 -07:00
kernelkind
c0b1a01b5d Account switcher
Signed-off-by: kernelkind <kernelkind@gmail.com>
2024-05-27 10:48:28 -07:00
kernelkind
f489ed3b9e Migrate to new AccountManagementView conception
Signed-off-by: kernelkind <kernelkind@gmail.com>
2024-05-27 10:48:28 -07:00
kernelkind
17d0c97c78 Create side panel & global popup
Create a side panel UI element for desktop with three buttons for:
adding a column, settings, and account management. The account
management button is temporary pending a better design. It is the only
one that is interactable at the moment. When the user clicks it, the
global popup window will be shown and the AccountManagementView will be
presented on the window. The user can click on the X on the top right of
the window to close it.

Signed-off-by: kernelkind <kernelkind@gmail.com>
Signed-off-by: William Casarin <jb55@jb55.com>
2024-05-27 10:48:28 -07:00
kernelkind
349e3baa99 Add relay view
Signed-off-by: kernelkind <kernelkind@gmail.com>
Signed-off-by: William Casarin <jb55@jb55.com>
2024-04-19 14:13:11 -07:00
kernelkind
a927c56870 Create account login panel
Signed-off-by: kernelkind <kernelkind@gmail.com>
2024-04-01 10:15:42 -07:00
William Casarin
ea952c4c58 actionbar: support both dark and light buttons
since there is no way to do icon masks, we simply use two different
textures for dark and light mode reply buttons.

I used this command to create the dark mode button:

convert reply.png -channel RGB -negate reply-dark.png

Signed-off-by: William Casarin <jb55@jb55.com>
2024-03-21 14:28:49 +01:00
William Casarin
08fad55773 weird actionbar experiment 2024-03-12 10:11:27 +00:00
William Casarin
16323abe93 assets: add some fonts
some taken from gossip for testing
2024-01-04 07:59:28 -08:00
William Casarin
f7c5fd0cfc fonts: add onest 2023-07-05 14:53:25 -07:00
William Casarin
696caa1f1c Initial commit 2022-11-05 22:12:17 -07:00