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

Alert plan integration #599

Merged
merged 26 commits into from
Apr 14, 2024
Merged

Alert plan integration #599

merged 26 commits into from
Apr 14, 2024

Conversation

luke-rt
Copy link
Member

@luke-rt luke-rt commented Mar 1, 2024

Alert + Plan api connection

@luke-rt luke-rt requested a review from esinx March 1, 2024 21:48
@luke-rt luke-rt self-assigned this Mar 1, 2024
frontend/plan/components/alert/AlertForm.tsx Outdated Show resolved Hide resolved
frontend/plan/components/alert/AlertForm.tsx Outdated Show resolved Hide resolved
frontend/plan/components/alert/AlertForm.tsx Outdated Show resolved Hide resolved
frontend/plan/components/alert/AlertForm.tsx Outdated Show resolved Hide resolved
backend/alert/util.py Outdated Show resolved Hide resolved
Copy link
Member

@esinx esinx left a comment

Choose a reason for hiding this comment

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

Good work Luke!! Just a few minor typescript details and we should be good to go, make sure to finish your todos / resolve hardcoded components

frontend/plan/components/alert/AlertButton.tsx Outdated Show resolved Hide resolved
frontend/plan/components/alert/Alerts.tsx Outdated Show resolved Hide resolved
frontend/plan/components/modals/AlertFormModal.tsx Outdated Show resolved Hide resolved
frontend/plan/components/modals/AlertFormModal.tsx Outdated Show resolved Hide resolved
frontend/plan/pages/index.tsx Outdated Show resolved Hide resolved
frontend/plan/components/selector/SectionList.tsx Outdated Show resolved Hide resolved
@luke-rt luke-rt marked this pull request as ready for review March 22, 2024 01:57
@esinx
Copy link
Member

esinx commented Mar 25, 2024

Could we use hash instead of query for having alerts tab open by default? Queries are often used for determining what content to be displayed(hence search "query"), whereas hashes are used for determining the landing position of the user.

Copy link
Contributor

@joyliu-q joyliu-q left a comment

Choose a reason for hiding this comment

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

Left some preliminary comments, please make sure to incorporate feedback from Courses leads.

backend/docker-compose.yaml Show resolved Hide resolved
frontend/plan/actions/index.js Show resolved Hide resolved
frontend/plan/actions/index.js Outdated Show resolved Hide resolved
method: "POST",
credentials: "include",
mode: "same-origin",
headers: {
Copy link
Contributor

Choose a reason for hiding this comment

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

Why isn't this a constant? getCsrf()

frontend/plan/actions/index.js Show resolved Hide resolved
frontend/plan/actions/index.js Outdated Show resolved Hide resolved
if (!res.ok) {
throw new Error(JSON.stringify(res));
} else {
// update on front end
Copy link
Contributor

Choose a reason for hiding this comment

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

Unnnecessary comment

Copy link
Member

@esinx esinx left a comment

Choose a reason for hiding this comment

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

I want more perfection.
Good work.

frontend/plan/pages/index.tsx Outdated Show resolved Hide resolved
frontend/plan/pages/index.tsx Outdated Show resolved Hide resolved
@esinx esinx self-requested a review April 14, 2024 17:56
@esinx esinx merged commit 177eff6 into master Apr 14, 2024
9 of 10 checks passed
@esinx esinx deleted the alert-plan-integration branch April 14, 2024 17:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

3 participants