feat(ui): update popup and course blocks (#506)
* feat(ui): add time and location to popup * feat(ui): memoize meeting times * feat(ui): remove resizing * feat(ui): add no select to copy course id button * feat(ui): complete update to popup and course blocks * chore: update settings page * chore: fix types * fix(ui): update spacing, padding, and remove last updated section * chore: fix type issues * fix(ui): update borders to offwhite/50 * fix(ui): apply proper offwhite styling * fix(ui): add unique key to async courses in bottom bar
This commit is contained in:
@@ -7,9 +7,6 @@ export interface IOptionsStore {
|
||||
/** whether we should enable course status chips (indicator for waitlisted, cancelled, and closed courses) */
|
||||
enableCourseStatusChips: boolean;
|
||||
|
||||
/** whether we should enable course's time and location in the extension's popup */
|
||||
enableTimeAndLocationInPopup: boolean;
|
||||
|
||||
/** whether we should automatically highlight conflicts on the course schedule page (adds a red strikethrough to courses that have conflicting times) */
|
||||
enableHighlightConflicts: boolean;
|
||||
|
||||
@@ -25,10 +22,9 @@ export interface IOptionsStore {
|
||||
|
||||
export const OptionsStore = createSyncStore<IOptionsStore>({
|
||||
enableCourseStatusChips: false,
|
||||
enableTimeAndLocationInPopup: false,
|
||||
enableHighlightConflicts: true,
|
||||
enableScrollToLoad: true,
|
||||
enableDataRefreshing: true,
|
||||
enableDataRefreshing: false,
|
||||
alwaysOpenCalendarInNewTab: false,
|
||||
});
|
||||
|
||||
@@ -40,7 +36,6 @@ export const OptionsStore = createSyncStore<IOptionsStore>({
|
||||
export const initSettings = async () =>
|
||||
({
|
||||
enableCourseStatusChips: await OptionsStore.get('enableCourseStatusChips'),
|
||||
enableTimeAndLocationInPopup: await OptionsStore.get('enableTimeAndLocationInPopup'),
|
||||
enableHighlightConflicts: await OptionsStore.get('enableHighlightConflicts'),
|
||||
enableScrollToLoad: await OptionsStore.get('enableScrollToLoad'),
|
||||
enableDataRefreshing: await OptionsStore.get('enableDataRefreshing'),
|
||||
|
||||
Reference in New Issue
Block a user