Commit Graph

623 Commits

Author SHA1 Message Date
27094846f7 feat: open an injected course page on course block click in popup main (#146)
* feat: Imports to popupcourseblock.tsx

* changing the blocks to accept parameters for clicking functionality which may or may not open the calendar

* put the click parameter in the div of popupcourseblock

* safely calling for onCourseClick in the event it is an undefined function

* handled other calls of popupcourseblock with empty functions for now, and i think popupmain opens calendar now when the course block is clicked

* feat: Testing out passing params to handleOpenCalendar

* url that takes in params to open calendar with params

* further work on url params; from popup main to handleopencalendar to calendar using urlsearchparams

* feat: small calendar shifting after merge:

* fix: merge handling and then references to new click parameter

* fix: optional params

* feat: split into two functions instead

* fix: changing proper usage of handleOpenCalendarWithCourse

* feat: show course popup when calendar opened

* chore: remove useless commented out code

* feat: close popup on calendar nav, fix build errors, remove useless comments/logs

* chore: chromatic so dumb fr why aren't you chrome

* fix: refactor listeners to build properly

* feat: exit early when not in chrome extension

* fix: function return type

* fix: function return type x2

* fix: generic type for useState

* refactor: extract calendar opening on click functions

* refactor: chrome runtime mock, omit question mark if no query params, rename calendar event

* refactor: move course click event into component directly instead of prop

* refactor: removed useless wrapper functions, made popup course block more accessible

* fix: i dont wanna talk about it

---------

Co-authored-by: Samuel Gunter <sgunter@utexas.edu>
2024-03-16 15:57:50 -05:00
Razboy20
ed4fbe5651 refactor: ccpopup (#172)
* refactor: dialog animation improvements

* refactor: update ccpopup to match designs
2024-03-15 23:49:26 -05:00
Razboy20
d04818ccd8 refactor: update text and link components to be polymorphic (#171) 2024-03-15 22:06:36 -05:00
Samuel Gunter
61c43962fb chore: ignore storybook build (#169)
* chore: ignore storybook build

* chore: make storybook-static explicitly a directory match

Co-authored-by: doprz <52579214+doprz@users.noreply.github.com>

---------

Co-authored-by: doprz <52579214+doprz@users.noreply.github.com>
2024-03-15 20:36:36 -05:00
Samuel Gunter
b4ad6870bf feat: pad unique ids to 5 digits (#170)
* feat: pad unique ids to 5 digits

* feat: also pad in popup course block
2024-03-15 19:23:27 -05:00
Razboy20
ea297d09bb build: allow unocss to run through dev mode (#167)
* build: allow unocss to run through dev mode

* build: Update unocss dependencies to latest versions

Updated dependencies '@unocss/eslint-config', '@unocss/postcss', '@unocss/preset-uno', '@unocss/preset-web-fonts', '@unocss/reset', '@unocss/transformer-directives', '@unocss/transformer-variant-group' to version 0.58.6 for consistency and compatibility.

* refactor: add note to readme

* refactor: improve readme

* refactor: update readme (again)

* Update README.md

Updates the UTRP description text

---------

Co-authored-by: Isaiah David Rodriguez <51803892+IsaDavRod@users.noreply.github.com>
2024-03-15 16:30:42 -05:00
Razboy20
85769e9d2c refactor(UserSchedule): index by a unique id rather than name (#166)
* refactor(UserSchedule): index by a unique id rather than name

* refactor: Update parameter names in schedule function jsdocs

* refactor: change more instances of .name to .id

* refactor: Fix typo in variable name and update references

* refactor: Remove console.log statement

* fix(chromatic): Update ScheduleListItem story

* refactor: remove unused eslint rule
2024-03-14 23:09:04 -05:00
Som Gupta
5714ed16d7 fix: list component fixed (#162)
* fix: list component fixed

* style: ran prettier

* Update List.tsx

* refactor: remove console log

---------

Co-authored-by: Razboy20 <razboy20@gmail.com>
2024-03-14 00:17:47 -05:00
Razboy20
e919e96c53 feat: proper injected styles (#164) 2024-03-14 00:10:41 -05:00
Razboy20
442be8cbee feat: update dialog component to headlessui (#159) 2024-03-13 23:09:43 -05:00
Som Gupta
df7a7c65d6 fix: Fixed typescript error (#161)
* fix: fixed bug where activeSchedule doesn't update correctly

* refactor: always returning activeSchedule

* style: prettier

* fix: fixed typescript error

* style: prettier
2024-03-13 23:03:22 -05:00
Som Gupta
a409090b90 fix: fixed bug where activeSchedule doesn't update correctly (#158)
* fix: fixed bug where activeSchedule doesn't update correctly

* refactor: always returning activeSchedule

* style: prettier
2024-03-13 22:15:02 -05:00
Samuel Gunter
5cce1c79fc feat: calendar header formatting and data displaying (#160) 2024-03-13 21:38:40 -05:00
Razboy20
61c1e88dcf style: fix centering of radio item (#156) 2024-03-13 17:29:11 -05:00
Razboy20
038ebaa268 feat: list reordering (#154) 2024-03-13 16:45:32 -05:00
Samuel Gunter
91f62e1943 fix: correct parsing of noon (#155) 2024-03-13 16:09:31 -05:00
Samuel Gunter
7986549fdd feat: fix save as button dividers (#153)
* feat: fix save as button dividers

* fix: only show left divider when there are async classes
2024-03-13 16:08:58 -05:00
Razboy20
1d8da6579e refactor(popup): match styles/reduce paint flicker (#136)
* refactor: match popup styles/reduce paint flicker

* fix: useSchedules hook

* feat: popup 

* fix: repaint issue on popup body

* fix: initial active schedule

* fix: center justification

* fix: reactivity error
2024-03-13 12:33:54 -05:00
Casey Charleston
0dff12232c feat: async text hiding on Calendar's Bottom Bar when there are no async courses (#152)
* feat: async text not visible when no async courses

* refactor: converted useState to boolean

* fix: remove unused import

* fix: maintain component height when hiding is enabled

* refactor: match stylings to figma

* refactor: padding change to match when there are courses to display

---------

Co-authored-by: Razboy20 <razboy20@gmail.com>
2024-03-12 23:13:27 -05:00
Sriram Hariharan
a5e9e3c214 feat: update badge count when schedule changes (#150)
* feat: update badge count when schedule changes

* fix: fixed linting issues
2024-03-12 00:59:14 -05:00
Sriram Hariharan
8e181b3010 feat: added scrapedAt property (#149)
* feat: added scrapedAt property

* fix: type-check
2024-03-12 00:57:00 -05:00
Abhinav Chadaga
44af9e16e4 feat: abhinavchadaga/reusable-popup-prompt (#148)
* feat: some work on popup prompt

* feat: add some stuff

* feat: reusable prompt component

Takes a title, description, and button children.

* fix: pr feedback

* fix: import ReactElement
2024-03-12 00:01:56 -05:00
Som Gupta
7760e3acf4 refactor: doesn't crash tab, and doesn't cause errors (#143)
* refactor: doesn't crash tab, and doesn't cause errors

* Revert "fix: options page (#131)"

This reverts commit dc100b5d3a.

* refactor: Simplify CourseSchedule constructor

* refactor: Refactor CourseSchedule constructor (again)

* Reapply "fix: options page (#131)"

This reverts commit 969c5a234f.

---------

Co-authored-by: Razboy20 <razboy20@gmail.com>
2024-03-11 23:59:15 -05:00
Dhruv
a8ea3bc683 fix: conflict row bug (#130)
* fix: temp fixes, need to still work on it

* fix: im a god at css otl

* fix: handle edge case where they have conflicting classes in their schedule

* fix: got it working

* fix: don't change the font size of course names

* fix: remove unused prop

* fix: lint errs

* fix: remove unused code
2024-03-11 23:41:20 -05:00
Lukas Zenick
4c61ebd3fc fix: Calendar View/Scaling Issues (#144)
* fix: calendar looks normal now; scaling

* fix: array indexing

* chore: eslint

* chore: lint

* feat: team Links and scrolling
2024-03-11 23:34:38 -05:00
Lukas Zenick
591687eee8 fix: injection not working from som/elie commit (#145) 2024-03-11 15:53:45 -05:00
Razboy20
261d2f2e84 refactor: match dropdown to figma & fix issues (#142) 2024-03-09 23:16:56 -06:00
Razboy20
3839bff29e feat: add chrome.storage api mocks for storybook use (#141) 2024-03-09 23:15:50 -06:00
Razboy20
78a6939929 fix: chromatic builds on PRs (#140) 2024-03-09 21:20:41 -06:00
Som Gupta
3406e9a0e2 fix: fixed issues involving course meeting objects not being recognized as course meeting objects (#132)
* fix: coursemeeting objects now created properly. course popup works on calendar

* refactor: removed duplicated getTimeString method in useFlattenedHook

* refactor: meeting constructor

---------

Co-authored-by: Razboy20 <razboy20@gmail.com>
2024-03-09 20:21:38 -06:00
Lukas Zenick
c51e6881d1 fix: Schedule Switching Bugs (#138)
* style: course selection fix

* fix: generic bugs on course selection

* fix: schedule switch lag when popup is open for too long

* fix: storybook bug

* chore: remove unnecessary dependency
2024-03-09 19:54:51 -06:00
Lukas Zenick
d70011016a fix: non-determinstic options page generation (#137)
* fix: non-determinstic options page generation

* fix: remove console log
2024-03-09 15:01:37 -06:00
Razboy20
f67280127a refactor: remove listWidth prop from List component and associated components (#135) 2024-03-09 00:37:31 -06:00
Razboy20
f932168f66 refactor: replace logo image imports with LogoIcon component (#134) 2024-03-09 00:36:52 -06:00
Lukas Zenick
dc100b5d3a fix: options page (#131)
* fix: options page

* chore: rename title of options page

---------

Co-authored-by: Razboy20 <razboy20@gmail.com>
2024-03-08 20:58:52 -06:00
Razboy20
10eb9e4456 chore: prettier 2024-03-07 19:46:39 -06:00
Razboy20
2f537b4f3e fix: theme colors 2024-03-07 18:36:55 -06:00
Razboy20
11303daebc fix: chromatic build 2024-03-07 18:34:35 -06:00
Razboy20
60ab140c55 fix: build 2024-03-07 18:25:57 -06:00
Razboy20
51bbd6590b revert: color palette for calendar (#118) 2024-03-07 18:20:46 -06:00
Razboy20
346b9ced97 chore: remove unused components
(and duplicated calendar components)
2024-03-07 18:08:25 -06:00
Razboy20
2992e784b0 chore: merge and fix conflicts 2024-03-07 17:53:13 -06:00
doprz
2593b371d5 chore: lint and format repo - 1 lint error left 2024-03-07 16:45:35 -06:00
Razboy20
8f360206fb chore: cleanup/resolve PR comments 2024-03-07 16:45:26 -06:00
doprz
0c44849e15 feat: refactor all components in injected 2024-03-06 15:12:44 -06:00
doprz
f93a98e46a fix: delete storybook timestamp file 2024-03-06 15:12:44 -06:00
doprz
e5443122b4 feat: refactor all components in common 2024-03-06 15:12:44 -06:00
doprz
28f192472b feat: refactor calendar 2024-03-06 15:12:40 -06:00
Abhinav Chadaga
745f9dd6fb feat: abhinavchadaga/course-catalog-popup (#128)
* some work

* some work on course popup

update the stories and create the header component

* use chip component in header

* complete CourseHeaderAndActions Component

added course buttons, using proper subcomponents now.

* Change test course to 314

* Add rmp callback

* some unocss updates

* add course button onclick handlers

* add todo for calendar button

* Rename CoursePopup

Old one to "Old", remove "2" from new one

* description stuff done

* Modify story to use proper course info

* Add Grade Distribution Stuff

* Minor tweaks

change style in header

* Add TODO

replace current grade colors with a tailwind palette

* Fix syllabi url

Remove unused variable and unnecessary args to url

* Bunch of renaming

* Kinda complete the handlers

* change grade distribution colors to match updated figma

* change from reducer pattern to state variables, remove chartData from state

* add additional story

* disabled add when course is not open

* use array fill

* Some changes with the instructor names

* trying to get the CES stuff to work

* CES button is working

* remove a todo

* add actual color for dminus

* fix description, start no distribution state

* post merge fixes

* small fixes

* fix: import as type

* fix: some better typescript stuff i think

* fix: manifest.ts

* fix: pr feedback

* fix: remove old CoursePopup component

* fix: course catalog injected popup story should useScott's 314 class since it actually has data

* fix: build error in background.ts:

* chore: run eslint autofix on CourseCatalogInjectedPopup.stories.ts

* chore: run prettier on CourseCatalogInjectedPopup.stories.ts
2024-03-06 15:12:14 -06:00
Abhinav Chadaga
471e55dcea feat: color palette for calendar (#118)
* feat: work on the palette

* feat: palette basically done?

* fix: lint warnings and errors

* fix: minor fixes

* fix: color patch colors and shades

* fix: prettier issue

* chore: use TS satisfies

* chore: remove eslint-disable comment

---------

Co-authored-by: doprz <52579214+doprz@users.noreply.github.com>
2024-03-06 15:12:13 -06:00