-
Notifications
You must be signed in to change notification settings - Fork 3
adjust / refactor channel detail header #1234
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
frontends/mit-open/src/pages/ChannelPage/UnitChannelSkeleton.tsx
Outdated
Show resolved
Hide resolved
frontends/mit-open/src/pages/ChannelPage/DefaultChannelSkeleton.tsx
Outdated
Show resolved
Hide resolved
frontends/mit-open/src/pages/ChannelPage/UnitChannelSkeleton.tsx
Outdated
Show resolved
Hide resolved
shanbady
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Code changes look good. I did notice 2 things. Seems like the "manage widgets" link in the settings/gear tooltip isnt working. I checked on rc and it seems its also broken there.
The other thing i noticed in mobile view for certain pages (ones with longer breadcrumbs), the breadcrumb appears to break apart .

looks like there is a separate ticket for removing the widget settings button https://github.com/mitodl/hq/issues/4730 |
|
@shanbady @ChristopherChudzicki Thanks for your reviews, this is ready for another look now. |
e89cf4b to
de9681e
Compare
shanbady
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
de9681e to
a75ba6b
Compare
* add DefaultChannelSkeleton and use it when the channel type is not unit * use separate templates for units and other channel types * remove usage of BannerPage * align styles * more fine tuning of the styles * fix tests * remove unnecessary page wrappers * consolidate breadcrumb target info * de-flake test * move consolidated elements to ChannelPageSkeleton * consolidate more elements * flaky test fix #2 * rename Skeleton -> Template * rename subHeader -> subheader * add new banner stories * fix issue with wrapping breadcrumbs on mobile

What are the relevant tickets?
Closes https://github.com/mitodl/hq/issues/4781
Description (What does it do?)
This PR refactors
ChannelPageSkeleton.tsxinto two separate files;DefaultChannelSkeleton.tsxandUnitChannelSkeleton.tsx. The reason for this is that the layout of theBannersections of the Unit channels is different enough that it was starting to become difficult to make changes to the Unit specific layout without affecting the other types of channels. This defines a clear separation so that Unit channels that have more extensive branding / styling can be customized without worrying about affecting the other types of channel pages. The use ofBannerPagewas replaced with simply using the newerBannercomponent. Slots were added toBannerto allow customization in the way the Unit channel pages need. Lastly the original problem noted in the issue above was addressed, which was just that the non-Unit channel page banners looked off from the design.Screenshots (if appropriate):
How can this be tested?
mit-openon this branchdocker compose exec web ./manage.py update_offered_bydocker compose exec web ./manage.py update_topicsdocker compose exec web ./manage.py update_departments_schools