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

Show route to staff users #698

Merged
merged 3 commits into from
Jul 1, 2024
Merged

Conversation

rachaelcodes
Copy link
Contributor

Context

Some of the AI team have requested that we show the route selected in the front end, but the design is not yet ready for users.

Changes proposed in this pull request

This shows the route taken by core_api but only to staff users.

View for regular users

regular user

View for staff users

staff user

Guidance to review

Try this out locally with streamed chats, unstreamed chats and looking back at old chats locally.
Make sure you run collectstatic to update the css and do a hard reset of the page if nothing shows.
Confirm you can see the route with a superuser.
Create a new user in /admin who does not have staff status, log in as them locally and check that you cannot see the route.

Relevant links

https://technologyprogramme.atlassian.net/browse/REDBOX-436

Things to check

  • I have added any new ENV vars in all deployed environments
  • I have tested any code added or changed
  • I have run integration tests

@rachaelcodes rachaelcodes marked this pull request as ready for review July 1, 2024 14:39
Copy link
Contributor

@brunns brunns left a comment

Choose a reason for hiding this comment

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

LGTM.

@gecBurton gecBurton merged commit d7562a5 into main Jul 1, 2024
8 checks passed
@rachaelcodes rachaelcodes deleted the feature/show-route-to-admin-users branch July 2, 2024 07:05
@rachaelcodes rachaelcodes mentioned this pull request Jul 2, 2024
3 tasks
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