Skip to content

Conversation

@Vandita2020
Copy link
Contributor

@Vandita2020 Vandita2020 commented Feb 26, 2025

Problem

This PR adds the functionality to open pattern in serverless-land website. It addresses an issue with the metadata.json file path for the extension by specifying the path after the build step in the copyFile.ts file.

Solution

Changes:

  1. Removed the webview functionality and instead open the browser to preview the patterns.
  2. Removed the Github button.
  3. Added a link at the bottom of pattern quick pick to explore the serverless land website.
  4. Ensured the proper path for the metadata file is accessible and it gets executed properly after the build.
  5. Added another entry point at the AWS Explorer high-level, accessible when clicking the three-dot menu.

  • Treat all work as PUBLIC. Private feature/x branches will not be squash-merged at release time.
  • Your code changes must meet the guidelines in CONTRIBUTING.md.
  • License: I confirm that my contribution is made under the terms of the Apache 2.0 license.

@github-actions
Copy link

  • This pull request modifies code in src/* but no tests were added/updated.
    • Confirm whether tests should be added or ensure the PR description explains why tests are not required.
  • This pull request implements a feat or fix, so it must include a changelog entry (unless the fix is for an unreleased feature). Review the changelog guidelines.
    • Note: beta or "experiment" features that have active users should announce fixes in the changelog.
    • If this is not a feature or fix, use an appropriate type from the title guidelines. For example, telemetry-only changes should use the telemetry type.

@Vandita2020 Vandita2020 marked this pull request as ready for review February 26, 2025 22:38
@Vandita2020 Vandita2020 requested a review from a team as a code owner February 26, 2025 22:38
@Vandita2020 Vandita2020 changed the title feat(lambda): web-view functionality and fixes for serverless land feat(lambda): link for serverlessland and fixes for serverless land Feb 28, 2025
getLogger().warn('README.md file not found in the project directory')
return
}
await new Promise((resolve) => setTimeout(resolve, 2000))
Copy link
Contributor

Choose a reason for hiding this comment

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

why do we need a sleep? We also have a sleep util

Copy link
Contributor Author

Choose a reason for hiding this comment

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

We need sleep to give time for README preview to load, so that it opens correctly. I have used sleep util now. Thanks!

Copy link
Contributor

Choose a reason for hiding this comment

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

? Use waitUntil to check for the file to exist. sleep() is a poor user experience, and also fragile (some systems could be very slow temporarily, for various reasons).

Copy link
Member

@roger-zhangg roger-zhangg left a comment

Choose a reason for hiding this comment

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

would be great if 'Open in Serverless Land' is imported, other LGTM

@Vandita2020 Vandita2020 force-pushed the bug_bash_changes branch 2 times, most recently from 6f02177 to 0b04764 Compare March 4, 2025 19:05
Comment on lines +74 to +78
target: path.join(
'../../node_modules/aws-core-vscode',
'src',
'awsService',
'appBuilder',
Copy link
Contributor

Choose a reason for hiding this comment

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

join() isn't needed here either. I see that you are following the existing pattern of this file, but this file really should be updated.

@justinmk3 justinmk3 merged commit eef3aed into aws:feature/serverlessland Mar 4, 2025
16 of 17 checks passed
Vandita2020 added a commit to Vandita2020/aws-toolkit-vscode that referenced this pull request Mar 5, 2025
## Problem
This PR adds the functionality to open pattern in serverless-land
website. It addresses an issue with the `metadata.json` file path for
the extension by specifying the path after the build step in the
`copyFile.ts` file.

## Solution
Changes:
1. Removed the webview functionality and instead open the browser to
preview the patterns.
2. Removed the Github button.
3. Added a link at the bottom of pattern quick pick to explore the
[serverless land
website](https://serverlessland.com/patterns?services=lambda).
4. Ensured the proper path for the metadata file is accessible and it
gets executed properly after the build.
5. Added another entry point at the AWS Explorer high-level, accessible
when clicking the three-dot menu.
nkomonen-amazon pushed a commit to nkomonen-amazon/aws-toolkit-vscode that referenced this pull request Mar 5, 2025
## Problem
This PR adds the functionality to open pattern in serverless-land
website. It addresses an issue with the `metadata.json` file path for
the extension by specifying the path after the build step in the
`copyFile.ts` file.

## Solution
Changes:
1. Removed the webview functionality and instead open the browser to
preview the patterns.
2. Removed the Github button.
3. Added a link at the bottom of pattern quick pick to explore the
[serverless land
website](https://serverlessland.com/patterns?services=lambda).
4. Ensured the proper path for the metadata file is accessible and it
gets executed properly after the build.
5. Added another entry point at the AWS Explorer high-level, accessible
when clicking the three-dot menu.
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.

4 participants