-
Notifications
You must be signed in to change notification settings - Fork 8
feat: Sidebar UI #153
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
feat: Sidebar UI #153
Conversation
still wip. preview here: https://sideroom.netlify.app |
0906751
to
74901b8
Compare
currently just a copy of threads
chat only includes threads originiating from a channel, while index has everything. (not sure how if these... loose threads are meant to be a feature.
copied changes to relevant files: muni-town#158 -> UserSession.svelte muni-town#154 -> SpaceBar.svelte muni-town#145 -> SpaceBar.svelte
d521be0
to
47f0d52
Compare
All done now. Meld is an amazing marvel of software. |
@erlend-sh I saw your thoughts on this change in a few places. Mind weighing in here with your thoughts. Would be great if you could test this out on your device as well. Btw, what device are you using mainly? |
This first iteration LGTM 👍 The big change for next iteration is that the toggle between index/chat should change the main content view, I.e. it should work the same way the toggle between chat/threads currently does. My main device is an old iPad Pro (maybe 2019), though that might change soon since it’s pretty busted heh. |
Awesome job @sameoldlab! This is going to make the mobile experience so much better. I've got a review queued up for you with a couple of small nits around naming and a few other about things I think we can just get rid of. I'd like to get @erlend-sh to weigh in on a few design change ideas I had after playing around with it. Mainly, my proposal is to get rid of the old Sidebar area proposed changes
Main area proposed changes (these do not all need to be done here)
I'm sure there are a few things I'm missing but we can add to this list later if we like the proposal. We can also break this up into multiple parts if need be.
|
Agreed. The plan is to follow up with #103 by having the index/chat toggle mirrored like so: My UX notes are all over the place right now so I’ll try to put a cohesive doc together for a linear story. |
@michaelwschultz is the demo video running with some of the changes you suggested already applied? |
This one was @erlend-sh's suggestion. Personally, I also prefer always having it expanded but can see a reason for the alternative. I could add some stronger persistence for whatever users choose to localStorage.
I'm planning to do these in a follow up PR. Changing those involves refactoring TimelineView.svelte component into multiple smaller files. So if I can do the refactor first and merge that, the rest will continue with much smaller merge conflicts (ideally 0) than the ones here.
Do you mean extending into where the Room Selection is currently? If so, would depend on locking the sidebar visible. I had an earlier commit (never fully designed it) with a single row across the top. Maybe something like that could work for this.
Assuming you mean channel settings? I think it would lose locality to what it affects placed in the bottom bar. There's also settings for groups and rooms (if admin) inside the sidebar currently. I do think the UI could take more advantage of tooltip menus to remove all of these... but that'd be separate issue from the sidebar.
Yeah, I could see that working better. But would also mean those are hidden when the spaces collapse.
Yes. Might need to rebuild the mobile drawer to get this working (currently using a class from Daisy UI), so not sure how long it would take.
Yeah, could put this in a different issue. It sounds like you want to get rid of the far right button group in the TimelineView? I agree with most (probably all?) of it. I made a mistake splitting files and changing them together in this PR, so trying to avoid making it worse now. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Here are a few bits that just need some clean up. Once these are addressed let's get this merged in!
src/lib/components/IndexMode.svelte
Outdated
<!-- | ||
Pages | ||
Threads | ||
Links | ||
---> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@erlend-sh I'm not sure index
makes sense as a tab name. The icon looks like an inbox which I kinda like. But these aren't notifications. It's just other "stuff". Maybe this is the "garden" area?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The icon I’ve been using in mock-ups is an ℹ️ as a hybrid of index/info. Open to suggestions though.
src/lib/components/IndexMode.svelte
Outdated
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No matter what we end up calling these sidebar sections, I think 'Mode' isn't the right word. If we're going to remove the tabs in the current header. We could just call these ChatTab and IndexTab.
import { Button, ToggleGroup } from "bits-ui"; | ||
import ThemeSelector from "$lib/components/ThemeSelector.svelte"; | ||
import { Space } from "@roomy-chat/sdk"; | ||
// import TooltipPortal from "$lib/components/TooltipPortal.svelte"; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nit: remove
<!-- | ||
<TooltipPortal | ||
text={activeTooltip} | ||
visible={!!activeTooltip} | ||
x={tooltipPosition.x} | ||
y={tooltipPosition.y} | ||
/> | ||
--> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nit: remove commented code
Co-authored-by: Michael Schultz <michaelwschultz@gmail.com>
IndexMode -> SidebarIndex ChatMode -> SidebarChat
Initial version of sidebar UI update.
Displays all threads in Index Mode, leaving space for additional data to be moved here in future PRs.
closes #129