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

feat(tup-cms): tup-348 portal nav #58

Merged
merged 11 commits into from
Nov 3, 2022
Merged

feat(tup-cms): tup-348 portal nav #58

merged 11 commits into from
Nov 3, 2022

Conversation

wesleyboar
Copy link
Member

@wesleyboar wesleyboar commented Oct 20, 2022

Overview

Support Portal nav in TUP. Basically, mirror Core Portal's.

Related

Changes

  • newer Core CMS image
    • to let custom app override portal nav markup url
  • add custom app for portal nav
    • template mimics Portal's
    • view passes user
    • overwrite Core CMS url for portal nav markup

Testing

Setup

Run Portal & CMS:

  1. npx nx run tup-ui:serve
  2. cd apps/tup-cms
  3. docker-compose -f docker-compose.dev.yml build --no-cache
  4. docker-compose -f docker-compose.dev.yml up --force-recreate

Test

  1. Load https://localhost:8000.
  2. (top right) See "⃝ Log in" link.
  3. Click "⃝ Log in" link.
  4. See "Log In" form.
  5. Log in.
  6. (top right) See "  your_username".
  7. Click username.
  8. See "  My Dashboard" and "  Log Out" links.
  9. Log out.
  10. Verify log out.
    • Refresh page to refresh state of server app.

Known Issues:
4. Form has font issues. No ticket.
4. Form has no responsiveness. No ticket.
6. 8. No icons when user is logged in. No ticket.
10. Initial log out does not log user out of CMS. No ticket.
10. Initial log out does not update header. (Why not?) No ticket.

UI

step
status
known issue
image
1. 2.
logged out
0 logged out
3. 4.
logged out
1 log in form
5. 6. 7. 8. 9.
logged in
2 logged in
10.
logged out
portal nav bug
3a logged out - portal nav bug
10.
logged out
cms admin bug
3b logged out - cms admin bug

Copy link
Member Author

@wesleyboar wesleyboar left a comment

Choose a reason for hiding this comment

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

Notes for reviewers (and myself).

@@ -1,5 +1,6 @@
from django.urls import path, include

custom_urls = [
path('core/markup/nav/', include('apps.portal_nav.urls', namespace='portal_nav')),
Copy link
Member Author

@wesleyboar wesleyboar Oct 21, 2022

Choose a reason for hiding this comment

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

apps/tup-cms/Dockerfile Outdated Show resolved Hide resolved
Copy link
Collaborator

@jarosenb jarosenb left a comment

Choose a reason for hiding this comment

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

Does your PR address this weird thing in dev.tup?
image

The `nx format:write` is braking django HTML single-line comments into multi-line comments 😠.
Since 28dd2f0, single-line commits will not be broken by nx format.
@jarosenb jarosenb merged commit 53cf118 into main Nov 3, 2022
@jarosenb jarosenb deleted the task/TUP-348-portal-nav branch November 3, 2022 17:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants