Skip to content

Render slack sse#2

Open
jamesAllenJahner3rd wants to merge 98 commits intomainfrom
RenderSlackSSE
Open

Render slack sse#2
jamesAllenJahner3rd wants to merge 98 commits intomainfrom
RenderSlackSSE

Conversation

@jamesAllenJahner3rd
Copy link
Copy Markdown
Owner

No description provided.

…l.Css

 - tsconfig needed to include .d.ts
 - Added fractions for margins to the tailwind config file
 - Updated and added button,  btn-primary, btn-secondary CSS properties
- Updated the NAV bar so that now there are a folder different NAV bars for different people visiting the site. This removes the navarre from the main layout. Required to create multiple layouts, sub layouts, each having their own NAV bar for different areas of the website.
 - How to create a route group public in order to have a NAV bar on the main page since I don't have 1 the root layout.
  - Adding actions for the update the email and update password.
   - Added user settings page
   - Added app error and, an error library To help with client errors and passing errors to toast.
- log out link changed back to a button
fix the error that was changing the css tailwind the small when clicked while md.
- I updated user to a better description loggedinuser
- To get it authentication account is on the user side so it no longer needs to be asynchronous so that got changed also
- The logout handler link CSS got moved to the H3 element instead
src/app/components/nav/MembersNav.tsx
- One problem was that every time I clicked on one of the menu links when in a medium screen the menu links Would change their CSS. So I had to use the window.inner in the guard to disallow that if it is not a small screen.
-I updated all the links to have the hypertext references
src/lib/appwrite.ts
 - It looks like the appwrite was almost completely rewritten. I moved call account and the new client setting endpoints and setting projects to the appwrite. And it returns a new account for the client
  - There's a couple times where I need to get the client so I create a get client function
 - I moved a userLogin Function into it
 I note that delete sessions wasn't working so I stop using it. And I didn't need to create a constant to do the email pat a session because that just happened and sent to the server but and in this returns the current user
 src/app/members/layout.tsx
 - tailwind h-100vh can be replaced by h-screen
 - I needed this to center because everything else is going to be need needs to be centered
- I learned that onSubmit should be in the form not the button.
 - Also I had to change <Form>to <form>, because<Form> Is on the server side, and upright needed this to be on the client side to keep track of cookies.
 - I added the on change attribute so the password will update as you type and the toast will notify you when it's wrong but I also had to make sure that it only did it while you were trying change it. Otherwise it would spam you with toast when you Enter the page.
  - OK handle password update is now on the client side It takes to form data compares it with your old password and duplicated password slash confirmation password Make sure it's correct then updates the password. The password checks were moved into the function also instead of being separated
   - Handle email is on the client side and it takes the form data compares the your two emails to make sure they equal each other and then updates the email
   - Also added a deletion option so it will " delete " the account. But like websites it only disabled it.
Created a page to view the user's characters includes dash board
- can click on charac image and it'll bring up the selected character and all the info
-Removed tables DB function from upright library so I wouldn be trying to pass a promise
- Updated the members layout to have the wrapper slightly bigger to fit the character viewing page
…on for the scroll bar size.

- Added a limit to the toaster container so it will query the toast so not to overwhelm the user it's right there
- I updated user to a better description loggedinuser
- To get it authentication account is on the user side so it no longer needs to be asynchronous so that got changed also
- The logout handler link CSS got moved to the H3 element instead
src/app/components/nav/MembersNav.tsx
- One problem was that every time I clicked on one of the menu links when in a medium screen the menu links Would change their CSS. So I had to use the window.inner in the guard to disallow that if it is not a small screen.
-I updated all the links to have the hypertext references
src/lib/appwrite.ts
 - It looks like the appwrite was almost completely rewritten. I moved call account and the new client setting endpoints and setting projects to the appwrite. And it returns a new account for the client
  - There's a couple times where I need to get the client so I create a get client function
 - I moved a userLogin Function into it
 I note that delete sessions wasn't working so I stop using it. And I didn't need to create a constant to do the email pat a session because that just happened and sent to the server but and in this returns the current user
 src/app/members/layout.tsx
 - tailwind h-100vh can be replaced by h-screen
 - I needed this to center because everything else is going to be need needs to be centered
…class level DTS and back story and it will display all those and the weapons and armor that you can use.

- Get character list right now is hard coded. But it finds a list of characters in the database and return to that list.
- Update password was updated to use get authenticated account instead of the account variable
- Login page Change the input submit to a button type So I dynamically change it and disable it if the email or password is incorrect
- Added Require to some of the inputs.
Height- 100 VH can be height-screen
I added a login user function variable to better take advantage of toast
Updated some images on the main page
… you state. Updated the table I and database for the characters because I combined databases into one- types were added:

CharacterClass
database imports were updated from tableDB to TablesDB,GetClient

**create-character page:
-Types were removed and are now being imported from another page.
-UseStates have been combined into a character UseState
- The form needed his own state for the class and level and the character classes and character abilities were complex and they still needed their own state.
- The list downloaded from the database were renamed to be more clear
- For the full I made a raise of the class names, Deities, and Races. Which allows me to dynamically render the list of each of those as options for the select tag
- The fetch data was simplified using promise all and importing get list from the database library
- Now each class will have its associated level. You can add classes and levels. As of now the subtracting classes is disabled. The items chart is disabled The class skills are disabled
… you state. Updated the table I and database for the characters because I combined databases into one- types were added:

CharacterClass
database imports were updated from tableDB to TablesDB,GetClient

**create-character page:
-Types were removed and are now being imported from another page.
-UseStates have been combined into a character UseState
- The form needed his own state for the class and level and the character classes and character abilities were complex and they still needed their own state.
- The list downloaded from the database were renamed to be more clear
- For the full I made a raise of the class names, Deities, and Races. Which allows me to dynamically render the list of each of those as options for the select tag
- The fetch data was simplified using promise all and importing get list from the database library
- Now each class will have its associated level. You can add classes and levels. As of now the subtracting classes is disabled. The items chart is disabled The class skills are disabled
…. created a server sdk version of appwrite.ts
…ender. To stop a time on page load in production.

Also took the time to add comments as I went through them.
 setCharacter((character) => ({
                ...character,
                deityDescription: match.description,
                deityImage: match.image,
            }));
… the form this summary and the character class logic
useclassabilities.Tsx was erased so I'm ready to use it.
Added a That's why the abilities to filter the class abilities for the character
…ormation if the class level is brought down to zero.
jamesAllenJahner3rd and others added 27 commits January 22, 2026 12:50
Move outside so it only has to be created.
Added fall back for display avatar. Created a normalized variable for the user information.
Simplified the Data sent to database to include the  normalized object
And the slack  member page- I moved the client and databases outside loadingMessages() so it wouldn't be continually updating
…oad message function so it keep reloading unnecessarily. Also added a reference to keep track of messages make sure there's not duplicates which should save db calls.

src\app\api\slack\events\route.ts:
Re added broadcast because it got deleted when I started trying to just poll.
src/lib/sse.ts:
Changed a variable "c" to a more descriptive "controller"
src/app/api/slack/stream/route.ts: fix to stop sse disconnect errors
src/app/members/slack/page.tsx: display the bots' users name
added a query to get the characters image
src/app/members/slack/page.tsx: update username
updated some comments
 created the begin of the Factions page
…s hook

- Updated the select charac page so that it doesn't overwrite what's local storage On the first load
…e list of users for the

src/app/actions/settings/getSessions.ts - Created a new action to get the list of sessions for a user
Went through and deleted a bunch  console logs
src/app/components/HamburgerMenu.tsx - Update the hamburger menu to be above admin Navbar
src/app/components/nav/MembersNav.tsx - Added to tell whether a user is an admin To so I can hide the admin tab
src/app/members/layout.tsx - Had to move the character selected state to the layout so that the NAV can have access to it too
src/app/members/page.tsx- Added an image to tell a new user how to use the page
src/app/members/character/page.tsx - added the ability to delete a character
 - Added the admin command to get a list of users and get a user's session data
 src/lib/appwrite-node.ts - New functions from the server
@appwrite
Copy link
Copy Markdown

appwrite bot commented Mar 6, 2026

EldarLandsLARP

Project ID: 68bb084a0032b02608c4

Sites (1)
Site Status Logs Preview QR
 EldarlandsLARP
68bc6329000dca3a9850
Ready Ready View Logs Preview URL QR Code
Functions (2)
Function ID Status Logs
 slack-broadcast 69687db0000e87979d30 Ready Ready View Logs
 slack-events 69687c8e001e2e994c2a Ready Ready View Logs

Tip

Schedule functions to run as often as every minute with cron expressions

@netlify
Copy link
Copy Markdown

netlify bot commented Mar 6, 2026

Deploy Preview for eldarlandslarp failed. Why did it fail? →

Name Link
🔨 Latest commit 9411f8f
🔍 Latest deploy log https://app.netlify.com/projects/eldarlandslarp/deploys/69ab88cccf697a000827417d

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant