Skip to content

Add samples to projects window #187

Description

@akaDuality

The most important part of the app is to teach people. We can provide our samples for learning purpose.

It can be achieved by on-demand resources.

Tasks

  • Load single document
  • Create sample json and put it to samples folder at Samples repository
  • Add cache
  • Output samples document by loading preview only
  • Add tab for samples
  • Calc available languages on the fly
  • Apply language selection
  • Select language according to current locale
  • Divide sections by projects
  • Reset language submenu after loading
  • Save document when close the one
  • Save document to language folder
  • Strange behaviour after saving
  • Show samples if there in no user's documents
  • Remember selected language
  • Remember last opened tab
  • Remove samples that is not presented in structure.json?

Image loading

  • Add icon to show that loading is needed
  • Prefetch and cache samples structure
  • Add loading state for previews and for document
  • Update images after loading
  • Save preview to .heic
  • Support old-versioned .png preview
  • Check why cloud document's won't read preview
  • Image disappears when black-white appearance changes
  • Update samples to new structure
  • Load documents' previews in parallel
  • Draw elements over preview's image #224

UI tests

  • Structure loading
  • Language can be changed, but remember last selection between tab's switches and restarting

Preview

Infrastructure

  • Add file version property to make graceful updates
  • Add file size to track downloading progress
  • Create a tool that create json with samples structures
  • Add this tool to GitHub CI
  • Add more samples for Pizza, remove samples for Drinkit (we should make more samples for different languages)
  • Reload document if version changed. Add version to regular document?

Activity

  1. added this to the Release milestone on Jan 7, 2023
  2. drucelweisse commented on Jan 19, 2023

    @drucelweisse
    Collaborator

    It seems to work only with iOS apps. Is there an intent to support that in release?

  3. akaDuality commented on Jan 20, 2023

    @akaDuality
    MemberAuthor

    It looks like important part of first onboarding.

    We can put samples to some CDN (or just find the way how to download everything from github) and download it after first install

  4. drucelweisse commented on Jan 24, 2023

    @drucelweisse
    Collaborator

    It seems that the way to do this task is download documents from some CDN via URLSession. Unfortunately github doesn't serve files and treats it as folder(which is technically true). And then we can use NSDocumentController.duplicate function to create a copy https://developer.apple.com/documentation/appkit/nsdocumentcontroller/1514982-duplicatedocument

  5. akaDuality commented on Jan 27, 2023

    @akaDuality
    MemberAuthor

    @drucelweisse we can host documents at Github pages :D

  6. self-assigned this
    on Jan 28, 2023
  7. pinned this issue on Jan 29, 2023
  8. unpinned this issue on Apr 3, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Type

No type

Projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions