Skip to content
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

Improved user viewer #40

Draft
wants to merge 54 commits into
base: master
Choose a base branch
from
Draft

Conversation

HenrikEngen
Copy link
Member

@HenrikEngen HenrikEngen commented Jul 7, 2024

There is currently a problem where modifyUser doesnt work, but this will be solved as soon as phoenixjs gets updated.

Todos from issue #10:

  • Show current avatar state(accepted? pending? rejected?)
  • Refactor each tab into its own tsx file(This should fix the problem with loading all data at once)
  • Show age in user information
  • Show all previous crew applications in a new tab
  • Add button for activating accounts manually
  • Add buttons for deleting avatar
  • Add tab showing ticket purchases

Dependencies:

Pictures:

image
image
image
image
image
image
image
image
image
image

@HenrikEngen HenrikEngen added the enhancement New feature or request label Jul 7, 2024
@HenrikEngen HenrikEngen requested a review from petterroea July 7, 2024 21:37
@HenrikEngen HenrikEngen self-assigned this Jul 7, 2024
@HenrikEngen HenrikEngen linked an issue Jul 8, 2024 that may be closed by this pull request
@petterroea
Copy link
Contributor

Can you add a picture showing how the page looks like when actually modifying the user :p

HenrikEngen added a commit that referenced this pull request Aug 4, 2024
… of the name is first- and lastname as mentioned in #40
@HenrikEngen HenrikEngen force-pushed the feature/improvedUserView_2 branch from 8e49611 to 52accb5 Compare August 4, 2024 10:21
@HenrikEngen HenrikEngen requested a review from petterroea August 4, 2024 12:59
Copy link
Contributor

@petterroea petterroea left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Getting there!!!!

* positions.jsx has been changed.
  * Merged the two previous tables together (Current positions and previous positions).
  * Changed table layout to include information from both previous tables.
  * Added a icon to indicate that the position is permanent and cant be removed.
  * Added a delete position confirmation window if you accidently click on the position.
* details.jsx has been changed.
  * Polished the layout.
* Added new components to dashboard.jsx.
* Remade and polished the position viewer.
* Added card for Discord in viewer/externalConnections.jsx.
* Removed unused imports from viewer/details.jsx.
* Small changes to labels in viewer/details.jsx.
* Fixed imports in viewer/index.jsx.
* Minor changes to unrelated file agenda/index.jsx.
* Minor changes to utils/user.jsx.
* Minor changes to dashboard.jsx.
* Updated package related files.
* Changed logic in positions.jsx to fix the loading bug.
* Changed all checks from two equal symbols to three.
* Added search/filter, and sorting in user/list.jsx.
* Added age in birthdate in user/details.jsx.
* Changed padding for InputSelect to match height of other input elements.
* Added .toLowerCase() to input to prevent zero results when writing capitalized characters.
* Changed logic in positions.jsx to fix the loading bug.
* Changed all checks from two equal symbols to three.
* Added a windowManager as a global component, to replace the old window system which was created per page.
* Added UI for editing users, the new windowManager is being used. Developed in API and JS in the feature/editUser branch.
* Added UI for activiating users, the new windowManager is being used. Not developed in API and JS yet.

* windowManager is a parent/root component in src/container/index.jsx
* minor changes to dashboard.jsx to fix mobile and tablet views, added new components.
* minor changes to theme.js, added more colors.

+ windowManager will replace the old window system when creating and editing agenda entries.
+ windowManager will replace the old window system when confirming deleting temporary roles from a user in user/positions.
…ic to user details view to handle errors and lack of permissions.
* Described code
* Minor changes to notice.jsx styling
* Changed code logic in user/viewer/index.jsx
* Added errorhandling in user/viewer/index.jsx if authenticated user is unable to view requested user.
 * Added pre- and postfunctions in the new windowManager
 * Added visible property to <Notice />to easilier control when it should show or not.
 * Added error handling to editUserDetails.jsx
 * Added refresh logic when you are modifing a user in details.jsx (postFunctions)
 * Added a icon to show when a role is active for a user not, and added windowManager in user/viewer/positions.jsx.
 * Changed styling for border-bottom in <WindowContentHeaderContainer />
 * Changed deletePosition.jsx window to use the new windowManager.
…nfirm function. Affects activateUser, deleteAvatar, deletePosition, editUser. Moved the logic mentioned above to their actual files.
…and memberList.jsx, added position details.jsx, added and modified components in dashboard.jsx, added new colors in theme.js
@HenrikEngen HenrikEngen force-pushed the feature/improvedUserView_2 branch from a7283f2 to 738ef7e Compare January 26, 2025 17:22
@HenrikEngen HenrikEngen marked this pull request as draft February 20, 2025 10:07
HenrikEngen added a commit that referenced this pull request Mar 8, 2025
… of the name is first- and lastname as mentioned in #40
HenrikEngen added a commit that referenced this pull request Mar 8, 2025
… of the name is first- and lastname as mentioned in #40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

User view improvements
2 participants