DEV Community

Kelvin Wangonya
Kelvin Wangonya

Posted on

4 1

Progress: creating/deleting channels, switching active channel and chat history

My laptop died on me last week so things have been a bit slow. I have made a bit of progress since my last post though.

Creating/deleting channels

I added commands to enable creating and deleting channels.
/+channel channel_name creates a new channel.

newchan

/-channel channel_name deletes it.
delchan

Switching active channel

Now that we can create more channels, we'll likely want to switch between them to send messages to the right channel. Clicking on tab changes focus from the input field to the channels window. Channels are highlighted using the up and down keys and selected using enter.

Chat history

Selecting a new channel clears the screen and shows messages belonging to that channel. Chat history is saved in an in-memory sqlite3 database.

chat-history

Other changes

One more change I made was with the authentication. Previously, a user could log in from inside the app interface. Now, users have to log in to access the app.

auth1

After logging in for the first time, subsequent logins will be automatic.
auth2

Postmark Image

Speedy emails, satisfied customers

Are delayed transactional emails costing you user satisfaction? Postmark delivers your emails almost instantly, keeping your customers happy and connected.

Sign up

Top comments (0)

A Workflow Copilot. Tailored to You.

Pieces.app image

Our desktop app, with its intelligent copilot, streamlines coding by generating snippets, extracting code from screenshots, and accelerating problem-solving.

Read the docs

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay