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

refactor: Add GitDataSource, FileDataSource, toast for errors #18385

Merged
merged 17 commits into from
Oct 8, 2021

Conversation

tgriesser
Copy link
Member

Rather than having a random utils/ folder, for consistency decided to make GitDataSource. Along those lines, moved the loader helpers into UtilDataSource & file lookups into FileDataSource.

Also added a vue-toast util to show a helpful popup when we have a GraphQL error (intended for dev only)

image

@cypress-bot
Copy link
Contributor

cypress-bot bot commented Oct 7, 2021

Thanks for taking the time to open a PR!

Copy link
Contributor

@lmiller1990 lmiller1990 left a comment

Choose a reason for hiding this comment

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

Nice!

Just need to fix the types on CI 💯

dedupExchange,
errorExchange({
onError (error) {
const message = `
Copy link
Contributor

Choose a reason for hiding this comment

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

Nice, I wonder if we can adapt this pattern to something more general for any type of error.

Copy link
Member Author

Choose a reason for hiding this comment

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

Yeah, this was only currently intended for errors in local dev since normal errors will have UI

@tgriesser tgriesser requested a review from a team as a code owner October 7, 2021 15:21
@tgriesser tgriesser requested review from jennifer-shehane and BlueWinds and removed request for a team October 7, 2021 15:21
@tgriesser tgriesser merged commit bda7e5e into unified-desktop-gui Oct 8, 2021
@tgriesser tgriesser deleted the tgriesser/refactor/git-data-source branch October 8, 2021 00:47
tgriesser added a commit that referenced this pull request Oct 10, 2021
* unified-desktop-gui: (40 commits)
  feat: index.html configurability and storybook support (#18242)
  fix: remove .json check from require_async, prevent child_process spawn (#18416)
  percy snapshot the tooltip visually, prevent it from being hidden
  fix: failing tests from #18372 (#18414)
  fix: `everyNthFrame` should only be applied for Chrome 89+ (#18392)
  feat(app): render spec list, command log, iframe (#18372)
  fix: drag and drop to be correct directory (#18400)
  refactor: Add GitDataSource, FileDataSource, toast for errors (#18385)
  docs: General updates to contributing guide (#18283)
  Add shorter --ct alias for --component
  Add --e2e and --component CLI options
  chore: Update Chrome (beta) to 95.0.4638.40 (#18389)
  chore: use circleci timings split for e2e tests (#18367)
  fix: fixed title (#18370)
  chore(deps): update dependency electron to v14 🌟 (#18384)
  chore(server): share client route (#18215)
  fix: Prevent Cypress from crashing when argument parsing "spec: {}" (#18312)
  chore: update husky dev dependency to v7 (#18345)
  feat: add defineConfig function to help type config (#18302)
  chore: Update Chrome (stable) to 94.0.4606.71 (#18324)
  ...
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.

None yet

3 participants