Skip to content
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

Updates AppBar styles to be consistent on desktop #11008

Conversation

marcellamaki
Copy link
Member

@marcellamaki marcellamaki commented Jul 25, 2023

Following a conversation with in Slack with Endless/LE and after checking in with @tomiwaoLE - we decided that the desktop navigation experience should be consistent across browser and app, and the new "app navigation" should be only for app + mobile/tablet screen size combination.

Summary

Adjusts the

References

Remediates #11079

Slack conversation

Browser (no changes) App (desktop view uses "traditional" nav)
browser-same app-updated

Reviewer guidance

Confirm in app and desktop that the new criteria are met - the only thing that should be different is that on app + desktop, we have the traditional top bar menu tab navigation, not the "app" menu. Everything else should remain the same.


Testing checklist

  • Contributor has fully tested the PR manually
  • If there are any front-end changes, before/after screenshots are included
  • Critical user journeys are covered by Gherkin stories
  • Critical and brittle code paths are covered by unit tests

PR process

  • PR has the correct target branch and milestone
  • PR has 'needs review' or 'work-in-progress' label
  • If PR is ready for review, a reviewer has been added. (Don't use 'Assignees')
  • If this is an important user-facing change, PR or related issue has a 'changelog' label
  • If this includes an internal dependency change, a link to the diff is provided

Reviewer checklist

  • Automated test coverage is satisfactory
  • PR is fully functional
  • PR has been tested for accessibility regressions
  • External dependency files were updated if necessary (yarn and pip)
  • Documentation is updated
  • Contributor is in AUTHORS.md

Copy link
Member

@rtibbles rtibbles left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just a couple of questions.

@@ -331,4 +331,8 @@
font-size: 14px;
}

// .subpage-nav {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What did this CSS class definition do to deserve this purgatory? Maybe just delete it if it is unneeded?

},
showSoudNotice() {
return this.isLearnerOnlyImport && (this.isSuperuser || this.isAdmin || this.isCoach);
},
showAppNavView() {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is there anywhere else that this is needed? I am wondering if just having a micro-composable defining this might be good to share between the two components, so that it's always consistent.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The only other place this is used is in AppBar on line 22 https://github.com/learningequality/kolibri/pull/11008/files#diff-2d30fc6599689a247a3fada5ab24f57827027d082c7af44fe001d961a3018553R22. I could make a composable for this if it's worth it? The other conditions on that page around app/desktop display are related but not the same.

@rtibbles rtibbles changed the base branch from develop to release-v0.16.x August 2, 2023 19:10
@marcellamaki marcellamaki force-pushed the desktop-navigation-breakpoints branch from 6825366 to 5a37699 Compare August 21, 2023 16:28
@rtibbles rtibbles merged commit b2bd70b into learningequality:release-v0.16.x Aug 22, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants