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

WIP: sublet #274

Draft
wants to merge 40 commits into
base: master
Choose a base branch
from
Draft

WIP: sublet #274

wants to merge 40 commits into from

Conversation

jonrxu
Copy link
Contributor

@jonrxu jonrxu commented Mar 22, 2024

for vincent

@jonrxu jonrxu requested a review from vcai122 March 22, 2024 21:55
@jonrxu jonrxu changed the title NOT FOR MERGE: sublet WIP: sublet Mar 24, 2024
@jonrxu jonrxu marked this pull request as draft March 24, 2024 16:23
Copy link

codecov bot commented Mar 24, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 91.46%. Comparing base (0905840) to head (ce9e9ab).
Report is 4 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@
##           master     #274      +/-   ##
==========================================
- Coverage   91.50%   91.46%   -0.04%     
==========================================
  Files          60       60              
  Lines        2542     2542              
==========================================
- Hits         2326     2325       -1     
- Misses        216      217       +1     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Copy link
Contributor

@vcai122 vcai122 left a comment

Choose a reason for hiding this comment

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

Took a quick glance, overall looks pretty good so far! Make sure to keep in mind what integration/shared code with portal/future projects might look like.

Great work!!

@@ -0,0 +1,7 @@
"use client"
Copy link
Contributor

Choose a reason for hiding this comment

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

is this ui folder completely custom or from somewhere? if its from somewhere else is there anyway we can just yarn install and then import it?

Copy link
Contributor

Choose a reason for hiding this comment

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

is there any reason we manually put in the font files? (similar to the ui folder, can we just import the font?)

Copy link
Contributor

Choose a reason for hiding this comment

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

assuming this is just for testing?

Copy link
Contributor

Choose a reason for hiding this comment

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

should we consider using a icon library? (for sake of ease + easier to use in future)

Copy link
Contributor

Choose a reason for hiding this comment

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

if these landing page images and icons are going to be shared by both sublet and portal we should probably eventually just put them in a shared place so we only have 1 copy


// Throw a new error with the error message
throw new Error(errorMsg);
}
Copy link
Contributor

Choose a reason for hiding this comment

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

also if you are doing the same error checking each time also best to extract to a function

Copy link
Contributor

Choose a reason for hiding this comment

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

I assume these files are remnants from portal that you copied over?

fetchProperties()
.then((data) => {
setProperties(data);
})
Copy link
Contributor

Choose a reason for hiding this comment

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

nit: fetchProperties().then(setProperties); should also work

});

return formattedDate;
}
Copy link
Contributor

Choose a reason for hiding this comment

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

probably best to have this in a util folder (perhaps globally shared)

sublet/Pipfile Outdated
Copy link
Contributor

Choose a reason for hiding this comment

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

i don't think we need a pipfile here?

Copy link

gitguardian bot commented Sep 1, 2024

⚠️ GitGuardian has uncovered 1 secret following the scan of your pull request.

Please consider investigating the findings and remediating the incidents. Failure to do so may lead to compromising the associated services or software components.

🔎 Detected hardcoded secret in your pull request
GitGuardian id GitGuardian status Secret Commit Filename
9451515 Triggered Generic Password a8161b4 .github/workflows/cdkactions_build-and-deploy.yaml View secret
🛠 Guidelines to remediate hardcoded secrets
  1. Understand the implications of revoking this secret by investigating where it is used in your code.
  2. Replace and store your secret safely. Learn here the best practices.
  3. Revoke and rotate this secret.
  4. If possible, rewrite git history. Rewriting git history is not a trivial act. You might completely break other contributing developers' workflow and you risk accidentally deleting legitimate data.

To avoid such incidents in the future consider


🦉 GitGuardian detects secrets in your source code to help developers and security teams secure the modern development process. You are seeing this because you or someone else with access to this repository has authorized GitGuardian to scan your pull request.

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.

2 participants