- Jan 04, 2025
-
-
nkdem authored
-
- Dec 15, 2024
-
-
Yuto Takano authored
Merges betterinformatics/edinburgh-community-solutions!90. ('kshitij/add-last-logged-in' into 'master') Adds a middleware to update the last logged in value for the user in the database ever hour. Allows us to run finer grained analytics for usage stats. ![Screenshot_2024-12-10_at_20.39.54](/uploads/c7eead2105f8f374edb7a900b0e3a8a8/Screenshot_2024-12-10_at_20.39.54.png)
-
Kshitij Sharma authored
-
Kshitij Sharma authored
-
- Dec 14, 2024
-
-
Kshitij Sharma authored
-
- Dec 10, 2024
-
-
Kshitij Sharma authored
-
- Oct 07, 2024
-
-
Kshitij Sharma authored
Merges betterinformatics/edinburgh-community-solutions!87. ('yutotakano/consistent-card-design' into 'master') I personally like the current homepage's hover effects on the category cards, not too jarring but clear enough. On the contrary, exam cards and document cards had no hover effects, which imo made the page feel a bit stationary and unresponsive to user actions. This MR fixes that (see screenshot below of a hover effect). In addition, two small features have been implemented: - Reduce the content shift on category pages when navigating back from an exam -- this is done by positioning the Loader component absolutely and in the corner instead of in the middle, which previously shifted the whole exam/document list down for a brief moment - Easier multi-selection of exams for download -- after ticking one exam for download, you can now click on anywhere on other exams to toggle their selection, instead of aiming at the small checkboxes. This makes it less likely to accidentally navigate to an exam and lose the selection. ![Screenshot](https://i.imgur.com/OiaHOym.png)
-
Kshitij Sharma authored
Merges betterinformatics/edinburgh-community-solutions!88. ('kshitij/time-hover-fix' into 'master') Add a hover tooltip on all dates that were previous formatted to be easily readable. ![Screenshot_2024-10-07_at_01.04.21](/uploads/30ce2fb6ca6d38bdd22e309da9f5704a/Screenshot_2024-10-07_at_01.04.21.png) ![Screenshot_2024-10-07_at_01.04.26](/uploads/213739b14a94258bf64da8da8c5eb284/Screenshot_2024-10-07_at_01.04.26.png)
-
Kshitij Sharma authored
-
- Oct 06, 2024
-
-
Yuto Takano authored
-
Yuto Takano authored
When navigating to a category page with the exams cached, the page exam section would shift downwards for a few seconds because of a Loader component. This was jarring and also prevented you from clicking on an exam quickly, despite the data already being there. This commit moves the loader to an absolute position just to the top right of the exam list, akin to how it is done in the home page. (Although, unlike the homepage, the exam data is only cached for SPA navigations and does not persist across page reloads -- maybe it's worth investigating using localstorage cache for exam data too, but at that point I feel like we're abusing browser local storage when there are other solutions out there)
-
Yuto Takano authored
This commit also adds a feature where clicking on an exam card when you have another exam ticked for download, will toggle the ticked state for the clicked card instead of navigating away. (This addresses a personal pain point when I want to download multiple exams but accidentally click outside of the checkbox, losing all selections)
-
- Sep 23, 2024
-
-
Kshitij Sharma authored
Merges !86. ('yutotakano/show-login-redirect-url' into 'master') This MR adds functionality to the login form to show the target/redirect page path as a small text. This makes sure that clicking around the website unauthenticated gives the user a clear understanding of why they aren't seeing any changes to the screen. It also makes explicit the redirect behaviour post-login so users aren't surprised.
-
Kshitij Sharma authored
Merges betterinformatics/edinburgh-community-solutions!85. ('yutotakano/add-biannual-stats' into 'master') Adds a new field in the backend response for `/api/stats`, and a corresponding frontend choice for biannual/semesterly statistics. This enables a more long-term analysis of trends. (The backend currently has a *a lot* of repeated code for `/api/stats` for each granularity type, eventually this'll need to be cleaned up...) ![Preview screenshot](https://i.imgur.com/jQnv9Gi.png)
-
Kshitij Sharma authored
Merges betterinformatics/edinburgh-community-solutions!84. ('yutotakano/fix-padlock-zindex' into 'master') LoadingOverlay by default has a zIndex of 400. The navigation bar for example has --mantine-z-index-app which is 100. (Which makes sense since if we're doing a full-page LoadingOverlay we want it to be shown over the navigation bar I think... although unsure now). Anyway, for now this commit reduces the CategoryCard overlays to have a zIndex of just 2, so it draws over the card itself but under the navigation bar and other elements.
-
Kshitij Sharma authored
Merges betterinformatics/edinburgh-community-solutions!83. ('upstream-integration' into 'master') Contains the following upstream changes: - Dependency updates - https://gitlab.ethz.ch/vseth/sip-com-apps/community-solutions/-/merge_requests/464 - https://gitlab.ethz.ch/vseth/sip-com-apps/community-solutions/-/merge_requests/465 - https://gitlab.ethz.ch/vseth/sip-com-apps/community-solutions/-/merge_requests/467 - https://gitlab.ethz.ch/vseth/sip-com-apps/community-solutions/-/merge_requests/469 - https://gitlab.ethz.ch/vseth/sip-com-apps/community-solutions/-/merge_requests/470 - https://gitlab.ethz.ch/vseth/sip-com-apps/community-solutions/-/merge_requests/471 - https://gitlab.ethz.ch/vseth/sip-com-apps/community-solutions/-/merge_requests/473 - https://gitlab.ethz.ch/vseth/sip-com-apps/community-solutions/-/merge_requests/475 - https://gitlab.ethz.ch/vseth/sip-com-apps/community-solutions/-/merge_requests/478 - Attempts to fix [Object object] in search results (& its reversion due to bugs) - https://gitlab.ethz.ch/vseth/sip-com-apps/community-solutions/-/merge_requests/462 - https://gitlab.ethz.ch/vseth/sip-com-apps/community-solutions/-/merge_requests/468 - Fix API responding with 403 instead of 401 when unauthorized - https://gitlab.ethz.ch/vseth/sip-com-apps/community-solutions/-/merge_requests/472 - Fix minor phrasing / grammar in user profile settings UI - https://gitlab.ethz.ch/vseth/sip-com-apps/community-solutions/-/merge_requests/474 - Dark mode - https://gitlab.ethz.ch/vseth/sip-com-apps/community-solutions/-/merge_requests/477 - https://gitlab.ethz.ch/vseth/sip-com-apps/community-solutions/-/merge_requests/480 - https://gitlab.ethz.ch/vseth/sip-com-apps/community-solutions/-/merge_requests/481 Contains further Better Informatics-specific commits on top, specifically all related to the new "dark mode" feature. - Because we don't use a TopHeader (unlike upstream which has two Headers), the color scheme toggle has to be placed on BottomHeader. This led to some icon/background coloring issues that has been fixed. - Due to our modifications on CategoryCard (hover effects, focus outline, different text layout), we have had to fix some colouring issues caused by the new dark mode. - Our ShimmerButton component (introduced earlier this year locally) needed some adjustments to work with dark mode. - Our course-specific knowledge base needed some adjustments to work with dark mode. - Our modified answer section component needed some adjustments to work with dark mode. - SegmentedControl's root background color is identical to the page background color in dark mode, making it very difficult to distinguish the element. The color has been changed, and will soon be ported to upstream as a fix. - The exam cutting snap bar is hardcoded to "black" color, which makes it difficult to see in dark mode. This has been fixed and will soon be ported to upstream as a fix.
-
- Sep 22, 2024
-
-
Yuto Takano authored
This was caused by a superfluous alignSelf: center attribute, which centered vertically the text on the left side. So if the right side login modal was taller than usual due to a long redirect URL, the left-side text would be shifted lower than other pages.
-
Yuto Takano authored
-
Yuto Takano authored
-
Yuto Takano authored
-
Yuto Takano authored
-
Yuto Takano authored
-
Yuto Takano authored
LoadingOverlay by default has a zIndex of 400. The navigation bar for example has --mantine-z-index-app which is 100. (Which makes sense since if we're doing a full-page LoadingOverlay we want it to be shown over the navigation bar I think... although unsure now). Anyway, for now this commit reduces the CategoryCard overlays to have a zIndex of just 2, so it draws over the card itself but under the navigation bar and other elements.
-
Yuto Takano authored
-
Yuto Takano authored
-
Yuto Takano authored
-
Yuto Takano authored
-
Yuto Takano authored
-
Yuto Takano authored
-
Yuto Takano authored
-
Yuto Takano authored
Mantine has deprecated using the color="" attribute on Text-based elements, in favour of c="". I *think* this is from around Mantine 7.0.0, although I can't find the specific changelog. Eventually this needs to be altered throughout the whole codebase, this commit only fixes the most prominent one encountered during the first-time user experience.
-
Yuto Takano authored
-
Yuto Takano authored
-
Yuto Takano authored
-
Yuto Takano authored
-
Yuto Takano authored
Because of the placement of the ColorSchemeToggle component, the alignment in the header was broken. This is fixed. Further, in upstream the toggle is located in the TopHeader which has a constant dark background regardless of the effective color scheme. In our deployment, we put this toggle in BottomHeader (since we don't have a TopHeader to simplify nav), which changes background color (also included in this commit) -- so the toggle icon also needed some changes to properly change color depending on the scheme.
-
- Sep 02, 2024
-
-
Yuto Takano authored
-
Yuto Takano authored
-
- Aug 11, 2024
-
-
Gamal Hassan authored
Beautify dark mode See merge request vseth/sip-com-apps/community-solutions!481
-
Gamal Hassan authored
-