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

[EASI-4468] related systems column #2777

Merged
merged 18 commits into from
Aug 29, 2024
Merged

Conversation

samoddball
Copy link
Contributor

@samoddball samoddball commented Aug 23, 2024

EASI-4468

Description

  • add Related systems column
Screenshot 2024-08-26 at 12 38 23

How to test this change

  • this new column only appears on the home page under My open requests
  • create a system intake and attribute it to one or more systems
  • create a TRB requests and attribute it to one or more systems
  • nav to home page and cofirm the related systems are listed out and comma separated

PR Author Checklist

  • I have provided a detailed description of the changes in this PR.
  • I have provided clear instructions on how to test the changes in this PR.
  • I have updated tests or written new tests as appropriate in this PR.

PR Reviewer Guidelines

  • It's best to pull the branch locally and test it, rather than just looking at the code online!
  • When approving a PR, provide a reason why you're approving it
    • e.g. "Approving because I tested it locally and all functionality works as expected"
    • e.g. "Approving because the change is simple and matches the Figma design"
  • Don't be afraid to leave comments or ask questions, especially if you don't understand why something was done! (This is often a great time to suggest code comments or documentation updates)
  • Check that all code is adequately covered by tests - if it isn't feel free to suggest the addition of tests.

@samoddball samoddball changed the title Easi 4468/related systems column [EASI-4468] related systems column Aug 26, 2024
@samoddball samoddball marked this pull request as ready for review August 26, 2024 19:41
@samoddball samoddball requested review from a team as code owners August 26, 2024 19:41
@samoddball samoddball requested review from mynar7 and aterstriep and removed request for a team August 26, 2024 19:41
@@ -0,0 +1,3 @@
### Package `sqlqueries`
Copy link
Contributor Author

Choose a reason for hiding this comment

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

moved from an empty go file with same (similar) documentation

Comment on lines +577 to +585
func (s *Store) GetMySystemIntakes(ctx context.Context) ([]*models.SystemIntake, error) {
var intakes []*models.SystemIntake

err := namedSelect(ctx, s, &intakes, sqlqueries.SystemIntake.GetByUser, args{
"eua_user_id": appcontext.Principal(ctx).Account().Username,
})

return intakes, err
}
Copy link
Contributor Author

Choose a reason for hiding this comment

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

core BE change

Comment on lines +359 to +361
func GetMySystemIntakes(ctx context.Context, store *storage.Store) ([]*models.SystemIntake, error) {
return store.GetMySystemIntakes(ctx)
}
Copy link
Contributor Author

Choose a reason for hiding this comment

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

core BE change


import '../index.scss';

const calcSystemIntakeNextMeetingDate = (
Copy link
Contributor Author

Choose a reason for hiding this comment

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

core UI change


const columns: any = useMemo(() => {
const columns: Column<MergedRequestsForTable>[] = useMemo<
Copy link
Contributor Author

Choose a reason for hiding this comment

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

core UI changes in here

@@ -0,0 +1,10 @@
export interface MergedRequestsForTable {
Copy link
Contributor Author

Choose a reason for hiding this comment

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

new type for merged types

aterstriep
aterstriep previously approved these changes Aug 28, 2024
Copy link
Contributor

@aterstriep aterstriep left a comment

Choose a reason for hiding this comment

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

Nice job!

Can you take a look at the table code to see if you can make the column a bit wider to match the Figma? Probably not worth holding this up unless it's a quick fix. I'll go ahead and approve since everything else looks good on the frontend.

@samoddball
Copy link
Contributor Author

Nice job!

Can you take a look at the table code to see if you can make the column a bit wider to match the Figma? Probably not worth holding this up unless it's a quick fix. I'll go ahead and approve since everything else looks good on the frontend.

Good call! Thanks!

Column widened
Screenshot 2024-08-28 at 14 23 58

Copy link
Contributor

@aterstriep aterstriep left a comment

Choose a reason for hiding this comment

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

Thanks for making that change! Everything looks good 👍🏻

@samoddball samoddball merged commit c7dd74b into main Aug 29, 2024
12 checks passed
@samoddball samoddball deleted the EASI-4468/related_systems_column branch August 29, 2024 16:28
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.

2 participants