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

improve UI for workspaces + internal fixes #193

Merged
merged 9 commits into from
Nov 10, 2024
Merged

improve UI for workspaces + internal fixes #193

merged 9 commits into from
Nov 10, 2024

Conversation

dinmukhamedm
Copy link
Member

@dinmukhamedm dinmukhamedm commented Nov 10, 2024

  • Improved UI for workspaces
  • Add timestamp to clickhouse evaluation_scores
  • Migrate get evaluations queries to drizzle

Important

Improved workspace UI, added timestamps to evaluation scores, and migrated evaluation queries to Drizzle with database schema updates.

  • UI Improvements:
    • Enhanced workspace UI with tier display in workspace/page.tsx, projects.tsx, and workspaces-navbar.tsx.
    • Updated project-card.tsx for better project display.
    • Adjusted button styles in button.tsx.
  • Backend Changes:
    • Added timestamp to evaluation_scores in evaluation_scores.rs and 001000-initial.sql.
    • Removed get_evaluation_datapoint from evaluations.rs and main.rs.
    • Migrated evaluation queries to Drizzle in route.ts and page.tsx.
  • Database:
    • Updated evaluation_scores table schema in 001000-initial.sql.
    • Modified foreign key constraints in 0004_worthless_kitty_pryde.sql.
  • Miscellaneous:
    • Fixed foreign key naming in 0002_snapshot.json and 0003_snapshot.json.

This description was created by Ellipsis for ee7dee6. It will automatically update as commits are pushed.

dinmukhamedm and others added 9 commits November 9, 2024 14:36
temporarily rename the CH table to old_evaluation_results
query table evaluation_results with timestamp
* fix some migrations
* Migrate get evaluations query to Drizzle on API Frontend

* Change  code to follow some feedbacks

* add with query get evaluation result

* delete some unused code

* refac: move calling db to page file from api route

* delete unuse code on auth checking

---------

Co-authored-by: Vidya Haikal <vidya.haikal@hukumonline.com>
Co-authored-by: Dinmukhamed Mailibay <47117969+dinmukhamedm@users.noreply.github.com>
Copy link
Contributor

@ellipsis-dev ellipsis-dev bot left a comment

Choose a reason for hiding this comment

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

👍 Looks good to me! Reviewed everything up to ee7dee6 in 59 seconds

More details
  • Looked at 931 lines of code in 22 files
  • Skipped 0 files when reviewing.
  • Skipped posting 3 drafted comments based on config settings.
1. app-server/src/routes/evaluations.rs:96
  • Draft comment:
    Using unwrap() after try_join! is unnecessary and can lead to panics if the result is an error. Consider using pattern matching to handle the result more gracefully.
  • Reason this comment was not posted:
    Comment was on unchanged code.
2. frontend/app/api/projects/[projectId]/evaluations/[evaluationId]/route.ts:28
  • Draft comment:
    Ensure that jsonb_object_agg is supported by the database being used, as it is a PostgreSQL-specific function. If not, consider replacing it with an equivalent function.
  • Reason this comment was not posted:
    Comment did not seem useful.
3. frontend/app/project/[projectId]/evaluations/[evaluationId]/page.tsx:57
  • Draft comment:
    Ensure that jsonb_object_agg is supported by the database being used, as it is a PostgreSQL-specific function. If not, consider replacing it with an equivalent function.
  • Reason this comment was not posted:
    Marked as duplicate.

Workflow ID: wflow_igaKF9YjIgEZA4er


You can customize Ellipsis with 👍 / 👎 feedback, review rules, user-specific overrides, quiet mode, and more.

@dinmukhamedm dinmukhamedm merged commit 9cccb42 into main Nov 10, 2024
1 check passed
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