Commit Graph

27 Commits

Author SHA1 Message Date
Ethan Lanting
c2328e461e feat(ui): color picker final touches (#491)
* fix: update CourseCellColorPicker.tsx background to white

* feat: add color picker to CalendarCourseCell component

* feat: add color picker functionality to update course colors

* fix: type issues with storybook components

* feat: add useColorPicker hook, isValidHexColor and updateCourseColors utilities

* refactor: color picker logic and UI components

* refactor: update useFlattenedCourseSchedule hook to include courseID property

* refactor: update storybook calendar components with updated props

* refactor: update color picker ui logic to account for position of cell

* fix: revert back to error handling for invalid rgb

* refactor: update jsdocs

* refactor: integrate ColorPickerContext into Calendar components and update props

* refactor: integrate ColorPickerContext into Calendar components and update related props

* refactor: change JSDocs comments and remove unused color inversion state

* refactor: update story components

* feat: add functionality for selecting secondary course colors

* refactor: enhance HexColorEditor to dynamically adjust tag icon color based on preview color

* refactor: simplify JSDoc comment in useColorPicker hook

* fix: revert Button component

* refactor: update CalendarCourseCell component positioning and styling

* fix: correct types in color.ts

* feat: add getDarkerShade function to compute darker shades of hex colors

* feat: add shadow to color picker button

* fix: update button size in ColorPatch component

* feat: implement debounced input for hex color editor and add useDebounce hook

* chore: utilize the logical and && operator instead of the ternary operator

* fix: imports and palette icon

* refactor: remove unused import

* fix: bug when course add fails with custom colors

* chore: run lint

* chore: run check-types

* feat: add HSL color type and conversion functions

* refactor: rename colorway to theme

* fix: hide color picker on screenshot

* fix: undo important syntax

* refactor: rename SomeFunction to DebouncedCallback

* refactor: remove inner function

* refactor: update return type to DebouncedCallback

* fix: adjust sizes for hash and palette button

* feat: create tests for hexToHSL and isValidHexColor

* refactor: update parameter type to use HexColor

* fix: increase size of palette button

* fix: update dependency array for hex code debounce

* fix: change colorPickerRef element ref

* feat: add Roboto Mono font

* fix: update input class to use monospace font

* feat: add getLighterShade function

* chore: run prettier and lint

* feat: synchronize local hex code with hexCode prop changes

---------

Co-authored-by: doprz <52579214+doprz@users.noreply.github.com>
2025-01-29 20:32:06 -06:00
Brianna-Flo
83d76f72da chore: One red color of #D10000 (#377)
* chore: change UTRP red color

* chore: change UTRP Red

* chore: change red update

* chore: utrp red, consistent capitalization

---------

Co-authored-by: Samuel Gunter <sgunter@utexas.edu>
2024-10-22 16:00:14 -05:00
Razboy20
e919e96c53 feat: proper injected styles (#164) 2024-03-14 00:10:41 -05:00
Razboy20
10eb9e4456 chore: prettier 2024-03-07 19:46:39 -06:00
Razboy20
60ab140c55 fix: build 2024-03-07 18:25:57 -06:00
Razboy20
2992e784b0 chore: merge and fix conflicts 2024-03-07 17:53:13 -06:00
Razboy20
8f360206fb chore: cleanup/resolve PR comments 2024-03-07 16:45:26 -06:00
Lukas Zenick
7f2a5893d4 feat: popup schedule select (#126)
* feat: sexy arrow animation

* feat: dropdown technically works

* fix: scss clarity

* feat: beautiful dropdown

* feat: proper switching; fix: no duplicates allowed

* fix: lag using async

* style: schedule options

* fix: can select same schedule again

* fix: annoying build error
2024-03-06 15:11:32 -06:00
doprz
863521fb3b feat: update Button to v2 design 2024-03-06 12:51:09 -06:00
Samuel Gunter
8b8433deaf feat: updated Text component to latest design specification (#70) 2024-03-06 10:24:41 -06:00
Samuel Gunter
bb727f70be feat: updated Text component to latest design specification (#70) 2024-02-03 10:20:58 -06:00
Razboy20
0560a01a55 refactor: Replace Webpack with Vite (#53) 2024-01-24 19:40:30 -06:00
Sriram Hariharan
ad85c2b816 adding tooltip with which class has conflicts 2023-03-22 22:48:14 -05:00
Sriram Hariharan
f28ab5182c better select styling for semesters for grade dist 2023-03-09 22:26:56 -06:00
Sriram Hariharan
7dd53f3a94 removed the necessity for hardcoded line height variables 2023-03-08 21:12:14 -06:00
Sriram Hariharan
353c43c987 lot of refactoring, reorganized course buttons. Now linking to professors directory page 2023-03-07 21:49:41 -06:00
Sriram Hariharan
ebeb7d692b created reusable button component, created course info header component, created utility type for Colors, removed typescript-css-modules plugin, and added a threshold to the infinite scroll hook 2023-03-06 22:45:34 -06:00
Sriram Hariharan
9b76f8afa0 line height text, refactored course schedule, added string representation functions to course meeting 2023-03-06 16:51:46 -06:00
Sriram Hariharan
295b466505 fixed bug with material icons, and reusable icon component 2023-03-05 19:54:59 -06:00
Sriram Hariharan
1f2374927d added material icons 2023-03-05 17:46:25 -06:00
Sriram Hariharan
6147289b40 created reusable text component, and setup typing for it automatically. also fixed bugs with autoload and scraper so that it would handle appending course name headers 2023-03-05 17:34:56 -06:00
Sriram Hariharan
e9c420a873 injecting into table, created table header, and buttons for each row 2023-03-03 21:57:00 -06:00
Sriram Hariharan
4ed52a3c9f analyzing page types and populating search inputs 2023-03-03 19:58:53 -06:00
Sriram Hariharan
723caca417 fixed some bugs, and updated dev dashboard useffect" 2023-03-03 18:58:19 -06:00
Sriram Hariharan
57d704b759 added colors and design system to docs 2023-03-03 15:47:35 -06:00
Sriram Hariharan
e9acddfa16 added colors and 2 main components for 2 different contexts 2023-03-03 11:40:54 -06:00
Sriram Hariharan
bce2717088 using my boilerplate yuh 2023-02-22 22:51:38 -06:00