Browse Source

Merge pull request 'Pull only PlanAction records for this issuer' (#6) from pull-only-plans into master

Reviewed-on: https://gitea.anomalistdesign.com/trent_larson/kick-starter-for-time-pwa/pulls/6
try-cypress
anomalist 2 years ago
parent
commit
d6253ca737
  1. 10
      README.md
  2. 18
      project.yaml
  3. 5
      src/views/ProjectsView.vue

10
README.md

@ -42,11 +42,15 @@ New users require registration. This can be done with a claim payload like this
};
```
On the test server, the user starting 0x000 has rights to register others, and the keys for that test User #0 are found in the codebase. You can invoke registration by User #0 on the `/account` page:
On the test server, the user starting 0x000 has rights to register others, so you can start playing one of two ways:
* Edit the `src/views/AccountViewView.vue` file and uncomment the lines referring to "test".
- Import the keys for that test User #0 by importing this seed phrase: `seminar accuse mystery assist delay law thing deal image undo guard initial shallow wrestle list fragile borrow velvet tomorrow awake explain test offer control`
* Use the [Vue Devtools browser extension](https://devtools.vuejs.org/) and type this into the console: `$vm.ctx.testRegisterUser()`
- Register someone else under User #0 on the `/account` page:
* Edit the `src/views/AccountViewView.vue` file and uncomment the lines referring to "test".
* Use the [Vue Devtools browser extension](https://devtools.vuejs.org/) and type this into the console: `$vm.ctx.testRegisterUser()`

18
project.yaml

@ -1,6 +1,18 @@
- top screens from img/screens.pdf :
- discover
- view
- view all :
- also extract plan identifier (instead of claim ID) assignee:trent
- search bar isn't highlighted & icon on right doesn't show
- no tab bar across bottom
- view one
- change lookup to pull from new /api/ext/plan with plan identifier assignee:trent
- edit
- make sure to save with plan identifier if it isn't already
- new
- commit
- make sure to save with plan identifier if it isn't already
blocks: ref:https://raw.githubusercontent.com/trentlarson/lives-of-gifts/master/project.yaml#kickstarter%20for%20time
- replace user-affecting console.logs with error messages
- commit screen
- discover screen

5
src/views/ProjectsView.vue

@ -82,7 +82,10 @@ export default class ProjectsView extends Vue {
async LoadProjects(identity: IIdentifier) {
const endorserApiServer = AppString.DEFAULT_ENDORSER_API_SERVER;
const url = endorserApiServer + "/api/claim/?claimContents=" + identity.did;
const url =
endorserApiServer +
"/api/claim/?claimType=PlanAction&issuer=" +
identity.did;
const token = await accessToken(identity);
const headers = {
"Content-Type": "application/json",

Loading…
Cancel
Save