Skip to content

Preparation for release#91

Merged
Saterz merged 96 commits into
developerfrom
fix/improve-database-security
Sep 14, 2025
Merged

Preparation for release#91
Saterz merged 96 commits into
developerfrom
fix/improve-database-security

Conversation

@Saterz

@Saterz Saterz commented Sep 12, 2025

Copy link
Copy Markdown
Member

This pull requests revamps the whole UI of CubeIndex improves the database security and introduces minimal features and bug fixes.

I still have a lot of things to do so it is not actually ready at the time I'm writing this - 12/09/2025

For the love of Christ, please, someone tell me to make multiple pull requests when I have so many ideas. This one is too big! Thank God I'm the only one working on this.
Saterz_

Saterz added 30 commits August 24, 2025 19:32
…ionality

- Introduced a new 'bought_from' field in the UserCubes interface to track the shop where the user purchased the cube.
- Updated the addCube component to include 'bought_from' in the form, allowing users to select from a list of vendors.
- Enhanced the userCubeCard component to display the 'bought_from' information, improving user experience.
- Refactored the API to handle the new 'bought_from' field during cube addition and updates.
- Removed the outdated update-cube-collection API route to streamline functionality.
…uttons

- Added AddToCollectionButton and RateCubeButton components to the CubeCard for improved user interaction.
- Integrated userCubeDetail to provide personalized data for the cube, enhancing the user experience.
- Refactored button logic to streamline the addition and rating of cubes, improving maintainability and clarity in the CubeCard layout.
- Updated the addToCollectionButton to accept an optional addClass prop for better styling flexibility.
- Introduced a new RateCubeButton component for improved user interaction when rating cubes.
- Enhanced the rateCube component with additional validation, character limit tracking for comments, and improved accessibility features.
- Updated the API to handle comment length validation, ensuring better user feedback during the rating process.
- Refactored the modal dialog structure for the rating feature to enhance user experience and maintainability.
- Removed the existingNote prop from ManageCubeStatus, simplifying the component's interface.
- Integrated the Portal component for improved modal handling in ManageCubeStatus.
- Updated StaffCubeCard to remove the unapprove functionality and adjusted the reason state management.
- Refactored the cube status display to enhance clarity and maintainability.
- Deleted the unapproveCube component and related API endpoint to streamline functionality.
- Introduced a new script command "host" to allow Vite to run the development server with host binding, enhancing accessibility for local development.
…ation flow

- Removed unnecessary profile ID generation and simplified the profile insertion logic in the auth callback.
- Updated the redirect logic to direct users to the signup profile step, enhancing the user experience during the authentication process.
- Eliminated redundant error handling for user retrieval in the confirm route, improving code clarity.
…a and filtering options

- Updated user achievements loading to include rarity information and improved data structure for better accessibility.
- Enhanced the user cubes display by adding vendor information to the cubes fetched from the database.
- Introduced new components for pagination, sorting, and filtering in the achievements view, improving user interaction and experience.
- Refactored the achievements page to support dynamic filtering and sorting, allowing users to customize their view of achievements.
…oved layout

- Introduced an extended profile interface to include additional user metrics such as achievements and cube counts.
- Updated the user card layout to support compact and arrow visibility options for better user experience.
- Implemented number formatting for user metrics to display in a more readable compact format.
- Enhanced accessibility features with improved aria labels for user profile links.
- Refactored the achievements and cubes pagination controls to align with the new user card structure.
- Added `onchange` event handlers to `ItemsPerPageSelector`, `SortSelector`, `TriStateCheckbox`, and `SearchBar` components for improved interactivity.
- Updated component props to include optional `onchange` functions, allowing parent components to respond to user input changes.
- Refactored the `onChange` logic in `SortSelector` to trigger user-defined change handlers, enhancing flexibility in handling sorting changes.
- Improved state management in the `cubes` page to reflect user-driven filter changes, ensuring a more dynamic user experience.
…l indicators

- Added a "NEW" ribbon to the CubeCard component for newly verified cubes, improving visual distinction.
- Removed the redundant newRibbon prop from CubeCardSkeleton, simplifying its interface.
- Refactored CubeCard to streamline the rendering of top snippets, enhancing maintainability.
… handling

- Wrapped the alert message in a Portal component to enhance modal handling and improve user experience.
- Maintained existing functionality while ensuring the alert displays correctly in the application layout.
- Added availability status to explore cards, allowing users to see which features are currently accessible.
- Enhanced the layout of the explore page for better responsiveness and visual appeal.
- Removed the accessories page and its related server logic, streamlining the explore section.
- Introduced a new Userbar component that displays user profile information and allows sharing via generated snippets.
- Implemented a new API endpoint to fetch user profile data and metrics for the Userbar.
- Added a Tag component for visual indicators in the Userbar and other areas of the application.
- Enhanced the navbar to include a link to the Userbar, improving navigation and accessibility for users.
…ofile management

- Added error handling for missing code in the confirmation process, ensuring better user feedback.
- Streamlined the session exchange process with Supabase, improving clarity in the code.
- Enhanced profile verification logic to handle existing profiles more effectively, including redirection based on username availability.
- Simplified the profile creation process for new users, ensuring a smoother onboarding experience.
…detection

- Added a new Svelte action `inView` that triggers callbacks when an element enters or leaves the viewport.
- Created `WhenVisible` component to utilize the `inView` action, allowing content to be conditionally displayed based on visibility.
- Introduced `FeatureSection` component for marketing purposes, showcasing features with responsive design.
- Added tests for `FeatureSection` to ensure proper rendering and layout behavior.
- Updated the main page to include multiple `FeatureSection` instances, enhancing the user experience with visual storytelling.
- Included new SVG illustrations for achievements, collection, community, pricing, and ratings to support the new features.
- Adjusted minimum height and padding for better responsiveness on different screen sizes.
- Modified button sizes and spacing for consistency across forms.
- Enhanced stepper layout for improved visibility and usability.
- Updated checkbox alignment and styling for better accessibility.
- Enhanced error handling in shareButton.svelte to ensure proper error messages are generated.
- Made useronchange in sortSelector.svelte optional for better flexibility.
- Updated redirect path in userbar/+page.server.ts to point to the correct login route.
- Adjusted padding in explore/users/+page.svelte for improved layout consistency.
… information

- Added conditional rendering for moderator notes visible only to the submitting user.
- Implemented trim selector for cubes with multiple trims, enhancing user interaction.
- Introduced related cubes and same series sections to provide users with more context and options.
- Updated ShareButton component to include a label for better accessibility.
…d sorting, filtering, and pagination features

- Added sorting options for cubes and ratings by recent, name, rating, and type.
- Implemented filtering capabilities for user cubes and ratings based on type, condition, and status.
- Introduced quick stats for owned cubes, wishlist counts, and unique types in the user collection.
- Enhanced social page with search functionality and pagination for followers and following lists.
- Improved UI elements for better user experience, including responsive design adjustments and clearer labeling.
…upabase client usage and enhancing cache control
…ponent for improved code organization and maintainability
… improved performance and visual consistency on the homepage
…fact paths and service worker behavior for better routing handling
…h new schema definitions for improved database structure and functionality
@Saterz Saterz marked this pull request as ready for review September 14, 2025 17:36
@Saterz Saterz merged commit 2b86f1c into developer Sep 14, 2025
4 checks passed
@Saterz Saterz deleted the fix/improve-database-security branch September 21, 2025 16:40
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.

[Feature] Hide registration options and route for logged-in users

1 participant