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

Designs for alerts table #8488

Open
linear bot opened this issue May 7, 2024 · 2 comments
Open

Designs for alerts table #8488

linear bot opened this issue May 7, 2024 · 2 comments

Comments

@linear
Copy link

linear bot commented May 7, 2024

Attributes:

  • Name
  • State
  • Last state update
  • Source
  • Channels/emails
  • Algo type
  • Alert on or off
Copy link
Author

linear bot commented May 7, 2024

Copy link

greptile-apps bot commented May 7, 2024

To implement the designs for an alerts table with the specified attributes, follow these steps:

  1. Backend Model Update: Ensure the alert model in /backend/alerts/alerts.go includes fields for Name, State, Last state update, Source, Channels/emails, and Algo type. If any fields are missing, update the model accordingly.

  2. GraphQL Schema: Update the GraphQL schema in /backend/private-graph/graph/model/models_gen.go to include the new or updated fields. This ensures that the frontend can query the updated alert data.

  3. Frontend Display: Modify the Alerts page component in /frontend/src/pages/Alerts/Alerts.tsx to include a table that displays the specified attributes. Use utility functions from /frontend/src/pages/Alerts/utils if necessary to format data for display.

  4. Data Fetching: Ensure the GraphQL queries in the frontend correctly fetch the new or updated fields from the backend.

  5. Styling: Update CSS in /frontend/src/pages/Alerts/Alerts.module.css to match the design requirements for the alerts table.

These steps provide a high-level overview. Implementation details will depend on the current codebase structure and the specific requirements for each attribute.

References

/backend/alerts
/backend/private-graph/graph/model
/frontend/src/pages/Alerts

Ask Greptile

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

No branches or pull requests

0 participants